Class MainTreeMenuService
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.service.MainTreeMenuService
-
public class MainTreeMenuService extends java.lang.ObjectMainTreeMenuAllPagesService
-
-
Constructor Summary
Constructors Constructor Description MainTreeMenuService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MainTreeMenuCacheServicegetCacheService()Get the cacheServicestatic MainTreeMenuServicegetInstance()Get the instance of the serviceMenuItemgetMainMenuItems()Return the root MenuItemintgetRootParentTree(int nPageId)Define the root tree id of a pageMenuItemgetTreeMenuItems(int nCurrentPageId, int nParentCurrentPageId)Return the TreeMenuItems from root MenuItem
-
-
-
Method Detail
-
getInstance
public static MainTreeMenuService 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, int nParentCurrentPageId)
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
public MainTreeMenuCacheService getCacheService()
Get the cacheService- Returns:
- the MainTreeMenuCacheService
-
-