Class ContentService

java.lang.Object
fr.paris.lutece.portal.service.content.ContentService
Direct Known Subclasses:
PageContentService, XPageAppService

public abstract class ContentService extends Object
Interface for pages provider services.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
    Returns the Content Service name
    abstract String
    getPage(jakarta.servlet.http.HttpServletRequest request, int nMode)
    Returns the HTML (or XML) code for a page for a given mode.
    Return the name of the plugin
    abstract boolean
    isInvoked(jakarta.servlet.http.HttpServletRequest request)
    Analyzes request's parameters to see if the request should be handled by the current Content Service
    void
    setPluginName(String strPluginName)
    Set the plugin name of the content service

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContentService

      public ContentService()
  • Method Details

    • getPage

      public abstract String getPage(jakarta.servlet.http.HttpServletRequest request, int nMode) throws UserNotSignedException, SiteMessageException
      Returns the HTML (or XML) code for a page for a given mode. The Service should use request parameters to identify the page content to provide.
      Parameters:
      request - The HTTP request containing content parameters
      nMode - The current mode.
      Returns:
      The HTML (or XML) code of the page.
      Throws:
      UserNotSignedException - the UserNotSignedException
      SiteMessageException - occurs when a site message need to be displayed
    • isInvoked

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

      public abstract String getName()
      Returns the Content Service name
      Returns:
      The name as a String
    • getPluginName

      public String getPluginName()
      Return the name of the plugin
      Returns:
      The name of the plugin
    • setPluginName

      public void setPluginName(String strPluginName)
      Set the plugin name of the content service
      Parameters:
      strPluginName - the plugin name