Class CustomMenuService

java.lang.Object
fr.paris.lutece.plugins.menus.service.CustomMenuService

@ApplicationScoped public class CustomMenuService extends Object
  • Field Details

  • Constructor Details

    • CustomMenuService

      public CustomMenuService()
  • Method Details

    • getSitePath

      public 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
    • getAvailableMenusReferenceList

      public fr.paris.lutece.util.ReferenceList getAvailableMenusReferenceList(CustomMenu currentCustomMenu, String strFilterCriteria)
      Get the available menus reference list
      Returns:
      the reference list
    • getAvailableXpagesReferenceList

      public fr.paris.lutece.util.ReferenceList getAvailableXpagesReferenceList(String strFilterCriteria)
      Get the available xpages reference list
      Returns:
      the reference list
    • getAvailablePagesReferenceList

      public fr.paris.lutece.util.ReferenceList getAvailablePagesReferenceList(String strFilterCriteria)
      Get the available menus reference list
      Returns:
      the reference list
    • getLabelPageById

      public String getLabelPageById(String strSourceItemId)
    • initializedService

      public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      This method observes the initialization of the ApplicationScoped context. It ensures that this CDI beans are instantiated at the application startup.

      This method is triggered automatically by CDI when the ApplicationScoped context is initialized, which typically occurs during the startup of the application server.

      Parameters:
      context - the ServletContext that is initialized. This parameter is observed and injected automatically by CDI when the ApplicationScoped context is initialized.