com.alogient.cameleon.extension.wicket
Class NavigationCache

java.lang.Object
  extended by com.alogient.cameleon.extension.wicket.NavigationCache

public class NavigationCache
extends Object


Field Summary
protected  org.slf4j.Logger log
          The log for this class
 
Constructor Summary
NavigationCache(AbstractCameleonApplication application, boolean isSecurityAware)
           
 
Method Summary
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getFirstMenuInstance(Class<? extends AbstractCameleonPage<? extends com.alogient.cameleon.sdk.content.model.AbstractCameleonModel>> cameleonPageClazz)
           
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getFirstMenuInstance(com.alogient.cameleon.sdk.content.vo.menu.MenuVo menu, Class<? extends AbstractCameleonPage<? extends com.alogient.cameleon.sdk.content.model.AbstractCameleonModel>> cameleonPageClazz)
           
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenu()
           
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenu(com.alogient.cameleon.sdk.content.vo.CultureVo cultureVo)
           
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenu(String path)
           
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromNavId(com.alogient.cameleon.sdk.content.vo.CultureVo cultureVo, Integer navId)
          Tries to find recursively a menu with a certain navid
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromNavId(Integer navId)
          Tries to find recursively a menu with a certain navid
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromNavId(List<com.alogient.cameleon.sdk.content.vo.menu.MenuVo> menus, int navId)
          Tries to find recursively a menu with a certain navid
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromPageId(Integer pageId)
          Tries to find recursively a menu with a certain pageid
 com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromPageId(List<com.alogient.cameleon.sdk.content.vo.menu.MenuVo> menus, int pageId)
          Tries to find recursively a menu with a certain navid
 String getTemplateNameFromRoute(String route)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
The log for this class

Constructor Detail

NavigationCache

public NavigationCache(AbstractCameleonApplication application,
                       boolean isSecurityAware)
Method Detail

shutdown

public void shutdown()

getMenu

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenu()

getMenu

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenu(com.alogient.cameleon.sdk.content.vo.CultureVo cultureVo)

getMenu

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenu(String path)

getTemplateNameFromRoute

public String getTemplateNameFromRoute(String route)
Parameters:
route - the specific route
Returns:
the template associated to the route

getMenuFromNavId

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromNavId(Integer navId)
Tries to find recursively a menu with a certain navid

Parameters:
navId - The target navid
Returns:
The menu if it was found

getMenuFromNavId

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromNavId(com.alogient.cameleon.sdk.content.vo.CultureVo cultureVo,
                                                                         Integer navId)
Tries to find recursively a menu with a certain navid

Parameters:
navId - The target navid
Returns:
The menu if it was found

getMenuFromNavId

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromNavId(List<com.alogient.cameleon.sdk.content.vo.menu.MenuVo> menus,
                                                                         int navId)
Tries to find recursively a menu with a certain navid

Parameters:
menus - The list of menu to search in
navId - The target navid
Returns:
The menu if it was found

getMenuFromPageId

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromPageId(Integer pageId)
Tries to find recursively a menu with a certain pageid

Parameters:
pageId - The target pageid
Returns:
The menu if it was found

getMenuFromPageId

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getMenuFromPageId(List<com.alogient.cameleon.sdk.content.vo.menu.MenuVo> menus,
                                                                          int pageId)
Tries to find recursively a menu with a certain navid

Parameters:
menus - The list of menu to search in
pageId - The target pageId
Returns:
The menu if it was found

getFirstMenuInstance

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getFirstMenuInstance(Class<? extends AbstractCameleonPage<? extends com.alogient.cameleon.sdk.content.model.AbstractCameleonModel>> cameleonPageClazz)

getFirstMenuInstance

public com.alogient.cameleon.sdk.content.vo.menu.MenuVo getFirstMenuInstance(com.alogient.cameleon.sdk.content.vo.menu.MenuVo menu,
                                                                             Class<? extends AbstractCameleonPage<? extends com.alogient.cameleon.sdk.content.model.AbstractCameleonModel>> cameleonPageClazz)


Copyright © 2011 Alogient. All Rights Reserved.