Class WhatsNewPortlet

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

public class WhatsNewPortlet extends fr.paris.lutece.portal.business.portlet.Portlet
WhatsNewPortlet
  • Field Summary

    Fields inherited from class fr.paris.lutece.portal.business.portlet.Portlet

    FLAG_DISPLAY_ON_LARGE_DEVICE, FLAG_DISPLAY_ON_NORMAL_DEVICE, FLAG_DISPLAY_ON_SMALL_DEVICE, FLAG_DISPLAY_ON_XLARGE_DEVICE, STATUS_PUBLISHED, STATUS_UNPUBLISHED

    Fields inherited from interface fr.paris.lutece.portal.business.XmlContent

    TAG_CHILD_PAGES_LIST, TAG_CURRENT_PAGE_ID, TAG_DISPLAY_ON_LARGE_DEVICE, TAG_DISPLAY_ON_NORMAL_DEVICE, TAG_DISPLAY_ON_SMALL_DEVICE, TAG_DISPLAY_ON_XLARGE_DEVICE, TAG_DISPLAY_PORTLET_TITLE, TAG_MENU, TAG_MENU_INDEX, TAG_MENU_LIST, TAG_MODE, TAG_PAGE, TAG_PAGE_DESCRIPTION, TAG_PAGE_ID, TAG_PAGE_IMAGE, TAG_PAGE_LEVEL, TAG_PAGE_NAME, TAG_PARENT_PAGE_ID, TAG_PLUGIN_NAME, TAG_PORTLET, TAG_PORTLET_ID, TAG_PORTLET_NAME, TAG_SUBLEVEL_INDEX, TAG_SUBLEVEL_MENU, TAG_SUBLEVEL_MENU_LIST
  • Constructor Summary

    Constructors
    Constructor
    Description
    Sets the identifier of the portlet type to the value specified in the WhatsNewPortletHome class
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the portlet is sorting ascendingly
    boolean
    Check if the whatsnew is dynamic
    int
    Get the element order
    int
    Get the maximum number of elements to see in the portlet
    int
    Get the period
    boolean
    Check if the portlet must show the documents or not
    boolean
    Check if the portlet must show the pages or not
    boolean
    Check if the portlet must show the portlets or not
    getXml(javax.servlet.http.HttpServletRequest request)
    Returns the XML content of the portlet without the XML header
    getXmlDocument(javax.servlet.http.HttpServletRequest request)
    Returns the XML content of the portlet with the XML header
    void
    Removes the current instance of the the form portlet object
    void
    setAscSort(boolean bIsAscSort)
    Set the sorting attribute
    void
    setDynamic(boolean bIsDynamic)
    Set the attribute dynamic of the whatsnew
    void
    setElementsOrder(int nOrder)
    Set the element order
    void
    setNbElementsMax(int nElementsMax)
    Set maximum number of elements to see in the portlet
    void
    setPeriod(int nPeriod)
    Set the period
    void
    setShowDocuments(boolean bShowDocuments)
    Set true if the portlet must show the documents
    void
    setShowPages(boolean bPages)
    Set true if the portlet must show the pages
    void
    setShowPortlets(boolean bPortlets)
    Set true if the portlet must show the portlets
    void
    Updates the current instance of the form portlet object

    Methods inherited from class fr.paris.lutece.portal.business.portlet.Portlet

    canBeCachedForAnonymousUsers, canBeCachedForConnectedUsers, copy, getAcceptAlias, getColumn, getDateUpdate, getDeviceDisplayFlags, getDisplayPortletTitle, getHomeClassName, getHtmlContent, getId, getName, getOrder, getPageId, getPluginName, getPortletTypeId, getPortletTypeName, getRole, getStatus, getStyleId, getUrlCreation, getUrlUpdate, getXslFile, getXslParams, getXslSource, hasDeviceDisplayFlag, isContentGeneratedByXmlAndXsl, setAcceptAlias, setColumn, setDateUpdate, setDeviceDisplayFlags, setDisplayPortletTitle, setHomeClassName, setId, setName, setOrder, setPageId, setPluginName, setPortletTypeId, setPortletTypeName, setRole, setStatus, setStyleId, setUrlCreation, setUrlUpdate

    Methods inherited from class java.lang.Object

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

    • WhatsNewPortlet

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

    • getShowDocuments

      public boolean getShowDocuments()
      Check if the portlet must show the documents or not
      Returns:
      Returns the boolean that indicates if the user wants to see the documents
    • setShowDocuments

      public void setShowDocuments(boolean bShowDocuments)
      Set true if the portlet must show the documents
      Parameters:
      bShowDocuments - The new boolean that indicates if the user wants to see the articles
    • getShowPortlets

      public boolean getShowPortlets()
      Check if the portlet must show the portlets or not
      Returns:
      Returns the boolean that indicates if the user wants to see the portlets
    • setShowPortlets

      public void setShowPortlets(boolean bPortlets)
      Set true if the portlet must show the portlets
      Parameters:
      bPortlets - The new boolean that indicates if the user wants to see the portlets
    • getShowPages

      public boolean getShowPages()
      Check if the portlet must show the pages or not
      Returns:
      Returns the boolean that indicates if the user wants to see the pages
    • setShowPages

      public void setShowPages(boolean bPages)
      Set true if the portlet must show the pages
      Parameters:
      bPages - The new boolean that indicates if the user wants to see the pages
    • getPeriod

      public int getPeriod()
      Get the period
      Returns:
      Returns the period (number of days)
    • setPeriod

      public void setPeriod(int nPeriod)
      Set the period
      Parameters:
      nPeriod - The period to set (number of days)
    • getNbElementsMax

      public int getNbElementsMax()
      Get the maximum number of elements to see in the portlet
      Returns:
      Returns the nbElementsMax.
    • setNbElementsMax

      public void setNbElementsMax(int nElementsMax)
      Set maximum number of elements to see in the portlet
      Parameters:
      nElementsMax - The maximum number of elements to see in the portlet.
    • getElementsOrder

      public int getElementsOrder()
      Get the element order
      Returns:
      Returns order of the elements to show.
    • setElementsOrder

      public void setElementsOrder(int nOrder)
      Set the element order
      Parameters:
      nOrder - The maximum number of elements to see in the portlet.
    • getAscSort

      public boolean getAscSort()
      Check if the portlet is sorting ascendingly
      Returns:
      true if it is sorting ascendingly
    • setAscSort

      public void setAscSort(boolean bIsAscSort)
      Set the sorting attribute
      Parameters:
      bIsAscSort - true if it is sorting ascendingly
    • getXmlDocument

      public String getXmlDocument(javax.servlet.http.HttpServletRequest request)
      Returns the XML content of the portlet with the XML header
      Parameters:
      request - The HTTP Servlet request
      Returns:
      The XML content of this portlet
    • getDynamic

      public boolean getDynamic()
      Check if the whatsnew is dynamic
      Returns:
      true if it is dynamic, false otherwise
    • setDynamic

      public void setDynamic(boolean bIsDynamic)
      Set the attribute dynamic of the whatsnew
      Parameters:
      bIsDynamic - true if it is dynamic, false otherwise
    • getXml

      public String getXml(javax.servlet.http.HttpServletRequest request)
      Returns the XML content of the portlet without the XML header
      Parameters:
      request - The HTTP Servlet request
      Returns:
      The Xml content of this portlet
    • update

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

      public void remove()
      Removes the current instance of the the form portlet object
      Specified by:
      remove in class fr.paris.lutece.portal.business.portlet.Portlet