Class MainTreeMenuAllPagesService
java.lang.Object
fr.paris.lutece.plugins.menus.service.MainTreeMenuAllPagesService
MainTreeMenuAllPagesService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheServicestatic MainTreeMenuAllPagesServiceGet the instance of the serviceReturn the root MenuItemintgetRootParentTree(int nPageId) Define the root tree id of a pagegetTreeMenuItems(int nCurrentPageId) Return the TreeMenuItems from root MenuItem
-
Field Details
-
PROPERTY_DEPTH_MAIN_LEVEL_ALLPAGES
- See Also:
-
PROPERTY_DEPTH_TREE_LEVEL_ALLPAGES
- See Also:
-
-
Constructor Details
-
MainTreeMenuAllPagesService
public MainTreeMenuAllPagesService()
-
-
Method Details
-
getInstance
Get the instance of the service- Returns:
- The instance of the service
-
getMainMenuItems
Return the root MenuItem- Returns:
- the root MenuItem
-
getTreeMenuItems
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
-
getFullTreeMenuItems
- Returns:
- MenuItem root of tree
-
getCacheService
Get the cacheService- Returns:
- the MainTreeMenuAllPagesCacheService
-