Class XPageAppService

java.lang.Object
fr.paris.lutece.portal.service.content.ContentService
fr.paris.lutece.portal.service.content.XPageAppService

public class XPageAppService extends ContentService
This class delivers Extra pages (xpages) to web components. An XPage is a page where the content is provided by a specific class, but should be integrated into the portal struture and design. XPageApps are identified by a key name. To display an XPage into the portal just call the following url :
Portal.jsp?page=keyname&param1=value1& ...&paramN=valueN
See Also:
  • Field Details

  • Constructor Details

    • XPageAppService

      public XPageAppService()
  • Method Details

    • registerXPageApplication

      public static void registerXPageApplication(XPageApplicationEntry entry) throws LuteceInitException
      Register an application by its entry defined in the plugin xml file
      Parameters:
      entry - The application entry
      Throws:
      LuteceInitException - If an error occured
    • getName

      public String getName()
      Returns the Content Service name
      Specified by:
      getName in class ContentService
      Returns:
      The name as a String
    • isInvoked

      public boolean isInvoked(jakarta.servlet.http.HttpServletRequest request)
      Analyzes request parameters to see if the request should be handled by the current Content Service
      Specified by:
      isInvoked in class ContentService
      Parameters:
      request - The HTTP request
      Returns:
      true if this ContentService should handle this request
    • getPage

      public String getPage(jakarta.servlet.http.HttpServletRequest request, int nMode) throws UserNotSignedException, SiteMessageException
      Build the XPage content.
      Specified by:
      getPage in class ContentService
      Parameters:
      request - The HTTP request.
      nMode - The current mode.
      Returns:
      The HTML code of the page.
      Throws:
      UserNotSignedException - The User Not Signed Exception
      SiteMessageException - occurs when a site message need to be displayed
    • getApplicationEntry

      public static XPageApplicationEntry getApplicationEntry(String strName)
      Gets Application entry by name
      Parameters:
      strName - The application's name
      Returns:
      The entry
    • getXPageApplicationsList

      public static Collection<XPageApplicationEntry> getXPageApplicationsList()
      Gets applications list
      Returns:
      A collection of applications
    • getApplicationInstance

      public static XPageApplication getApplicationInstance(XPageApplicationEntry entry)
      Get an XPage instance
      Parameters:
      entry - The Xpage entry
      Returns:
      An instance of a given XPage