Class AliasPortlet

java.lang.Object
fr.paris.lutece.portal.business.portlet.Portlet
fr.paris.lutece.portal.business.portlet.AliasPortlet
All Implemented Interfaces:
XmlContent

public class AliasPortlet extends Portlet
This class represents business objects AliasPortlet
  • Constructor Details

    • AliasPortlet

      public AliasPortlet()
      Sets the identifier of the portlet type to the value specified in the AliasPortletHome class
  • Method Details

    • setAliasId

      public void setAliasId(int nAliasId)
      Sets the alias identifier of the portlet with the specified int value
      Parameters:
      nAliasId - the Alias identifier
    • getAliasId

      public int getAliasId()
      Returns the alias identifier of the portlet
      Returns:
      the Alias identifier
    • isContentGeneratedByXmlAndXsl

      public boolean isContentGeneratedByXmlAndXsl()
      Check if the content of this portlet is generated by xml and xsl, or if it manage its own content generation
      Overrides:
      isContentGeneratedByXmlAndXsl in class Portlet
      Returns:
      True if the content must be generated from XML and XSL, false if it must be generated by the Portlet.getHtmlContent(HttpServletRequest request) method
    • getHtmlContent

      public String getHtmlContent(jakarta.servlet.http.HttpServletRequest request)
      Returns the html content code of the Alias portlet
      Overrides:
      getHtmlContent in class Portlet
      Parameters:
      request - The HTTP servlet request
      Returns:
      the Html content code of the Alias portlet content
    • getXml

      public String getXml(jakarta.servlet.http.HttpServletRequest request) throws SiteMessageException
      Returns the Xml code of the Alias portlet without XML heading
      Parameters:
      request - The HTTP servlet request
      Returns:
      the Xml code of the Alias portlet content
      Throws:
      SiteMessageException - occurs when a site message need to be displayed
    • getXmlDocument

      public String getXmlDocument(jakarta.servlet.http.HttpServletRequest request) throws SiteMessageException
      Returns the Xml code of the Alias portlet with XML heading
      Parameters:
      request - The HTTP Servlet request
      Returns:
      the Xml code of the Alias portlet
      Throws:
      SiteMessageException - occurs when a site message need to be displayed
    • getXslParams

      public Map<String,String> getXslParams()
      Gets the XSl parameters of the alias portlet and returns them in form of a dictionnary
      Overrides:
      getXslParams in class Portlet
      Returns:
      the Xsl params
    • update

      public void update()
      Updates the current instance of the AliasPortlet object
    • remove

      public void remove()
      Removes the current instance of the AliasPortlet object
      Specified by:
      remove in class Portlet