Class MenusService
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.service.MenusService
-
public class MenusService extends java.lang.ObjectThis Service manages contactListt actions (create, delete, modify ...) and notify listeners.- Author:
- lenaini
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMARKER_SITE_PATHstatic intMODE_ADMINstatic intMODE_SITE
-
Constructor Summary
Constructors Constructor Description MenusService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MenusServicegetInstance()Returns the instance of the singletonjava.lang.StringgetSitePath(int nMode)Define the site path : Portal Url when mode isn't admin mode, otherwise AdminPortalUrlvoidinit()Initializes the Menus service
-
-
-
Field Detail
-
MODE_SITE
public static final int MODE_SITE
- See Also:
- Constant Field Values
-
MODE_ADMIN
public static final int MODE_ADMIN
- See Also:
- Constant Field Values
-
MARKER_SITE_PATH
public static final java.lang.String MARKER_SITE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
Initializes the Menus service
-
getInstance
public static MenusService getInstance()
Returns the instance of the singleton- Returns:
- The instance of the singleton
-
getSitePath
public java.lang.String getSitePath(int nMode)
Define the site path : Portal Url when mode isn't admin mode, otherwise AdminPortalUrl- Parameters:
nMode- the mode define by the request- Returns:
- site path depending on the mode
-
-