com.dotmarketing.cache
Class NavMenuCache

java.lang.Object
  extended by com.dotmarketing.cache.NavMenuCache

public class NavMenuCache
extends java.lang.Object

This class is used to cache menu items for nav.jsp menu

Author:
carlos, Jason Tesser

Constructor Summary
NavMenuCache()
           
 
Method Summary
static void add(java.lang.String porletId, java.util.List<MenuItem> menus)
          To add a new DOM tree related to the portletId to the cache
static void clearCache()
           
static java.util.List<MenuItem> get(java.lang.String porletId)
          To retrieve a DOM tree from the cache
static java.lang.String[] getGroups()
           
static java.lang.String getPrimaryGroup()
           
static void invalidate(java.lang.String porletId)
          To invalidate (remove) the DOM tree entry related to this portletId from the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavMenuCache

public NavMenuCache()
Method Detail

add

public static void add(java.lang.String porletId,
                       java.util.List<MenuItem> menus)
To add a new DOM tree related to the portletId to the cache

Parameters:
portletId - The value is used as a key to identify the DOM tree
doc - The DOM tree to be stored into the cache.

get

public static java.util.List<MenuItem> get(java.lang.String porletId)
To retrieve a DOM tree from the cache

Parameters:
portletId -
Returns:

invalidate

public static void invalidate(java.lang.String porletId)
To invalidate (remove) the DOM tree entry related to this portletId from the cache

Parameters:
portletId -

clearCache

public static void clearCache()

getGroups

public static java.lang.String[] getGroups()

getPrimaryGroup

public static java.lang.String getPrimaryGroup()


Copyright © 2013 dotCMS Inc. All Rights Reserved.