Class MainTreeMenuService
java.lang.Object
fr.paris.lutece.plugins.menus.service.MainTreeMenuService
MainTreeMenuAllPagesService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheServicestatic MainTreeMenuServiceGet the instance of the serviceReturn the root MenuItemintgetRootParentTree(int nPageId) Define the root tree id of a pagegetTreeMenuItems(int nCurrentPageId, int nParentCurrentPageId) Return the TreeMenuItems from root MenuItem
-
Constructor Details
-
MainTreeMenuService
public MainTreeMenuService()
-
-
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 idnRootParentTree- The parent page of the current page- 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
Get the cacheService- Returns:
- the MainTreeMenuCacheService
-