Class CustomMenuService
java.lang.Object
fr.paris.lutece.plugins.menus.service.CustomMenuService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.util.ReferenceListgetAvailableMenusReferenceList(CustomMenu currentCustomMenu, String strFilterCriteria) Get the available menus reference listfr.paris.lutece.util.ReferenceListgetAvailablePagesReferenceList(String strFilterCriteria) Get the available menus reference listfr.paris.lutece.util.ReferenceListgetAvailableXpagesReferenceList(String strFilterCriteria) Get the available xpages reference listgetLabelPageById(String strSourceItemId) getSitePath(int nMode) Define the site path : Portal Url when mode isn't admin mode, otherwise AdminPortalUrlvoidinitializedService(jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext.
-
Field Details
-
MODE_SITE
public static final int MODE_SITE- See Also:
-
MODE_ADMIN
public static final int MODE_ADMIN- See Also:
-
MARKER_SITE_PATH
- See Also:
-
-
Constructor Details
-
CustomMenuService
public CustomMenuService()
-
-
Method Details
-
getSitePath
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
-
getAvailableXpagesReferenceList
Get the available xpages reference list- Returns:
- the reference list
-
getAvailablePagesReferenceList
Get the available menus reference list- Returns:
- the reference list
-
getLabelPageById
-
initializedService
public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext. It ensures that this CDI beans are instantiated at the application startup.This method is triggered automatically by CDI when the
ApplicationScopedcontext is initialized, which typically occurs during the startup of the application server.- Parameters:
context- theServletContextthat is initialized. This parameter is observed and injected automatically by CDI when theApplicationScopedcontext is initialized.
-