Class MainTreeMenuAllPagesService
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.service.MainTreeMenuAllPagesService
-
public class MainTreeMenuAllPagesService extends java.lang.ObjectMainTreeMenuAllPagesService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_DEPTH_MAIN_LEVEL_ALLPAGESstatic java.lang.StringPROPERTY_DEPTH_TREE_LEVEL_ALLPAGES
-
Constructor Summary
Constructors Constructor Description MainTreeMenuAllPagesService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MainTreeMenuAllPagesCacheServicegetCacheService()Get the cacheServicestatic MainTreeMenuAllPagesServicegetInstance()Get the instance of the serviceMenuItemgetMainMenuItems()Return the root MenuItemintgetRootParentTree(int nPageId)Define the root tree id of a pageMenuItemgetTreeMenuItems(int nCurrentPageId)Return the TreeMenuItems from root MenuItem
-
-
-
Field Detail
-
PROPERTY_DEPTH_MAIN_LEVEL_ALLPAGES
public static final java.lang.String PROPERTY_DEPTH_MAIN_LEVEL_ALLPAGES
- See Also:
- Constant Field Values
-
PROPERTY_DEPTH_TREE_LEVEL_ALLPAGES
public static final java.lang.String PROPERTY_DEPTH_TREE_LEVEL_ALLPAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static MainTreeMenuAllPagesService getInstance()
Get the instance of the service- Returns:
- The instance of the service
-
getMainMenuItems
public MenuItem getMainMenuItems()
Return the root MenuItem- Returns:
- the root MenuItem
-
getTreeMenuItems
public MenuItem getTreeMenuItems(int nCurrentPageId)
Return the TreeMenuItems from root MenuItem- Parameters:
nCurrentPageId- The current page id- Returns:
- the TreeMenuItems from root MenuItem
-
getRootParentTree
public int getRootParentTree(int nPageId)
Define the root tree id of a page- Parameters:
nPageId- The page identifier- Returns:
- The parent page identifier or root tree
-
getCacheService
public MainTreeMenuAllPagesCacheService getCacheService()
Get the cacheService- Returns:
- the MainTreeMenuAllPagesCacheService
-
-