fr.paris.lutece.plugins.whatsnew.business.portlet
Class WhatsNewPortlet

java.lang.Object
  extended by fr.paris.lutece.portal.business.portlet.Portlet
      extended by 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
STATUS_PUBLISHED, STATUS_UNPUBLISHED
 
Fields inherited from interface fr.paris.lutece.portal.business.XmlContent
TAG_CHILD_PAGES_LIST, TAG_CURRENT_PAGE_ID, 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
WhatsNewPortlet()
          Sets the identifier of the portlet type to the value specified in the WhatsNewPortletHome class
 
Method Summary
 boolean getAscSort()
          Check if the portlet is sorting ascendingly
 boolean getDynamic()
          Check if the whatsnew is dynamic
 int getElementsOrder()
          Get the element order
 int getNbElementsMax()
          Get the maximum number of elements to see in the portlet
 int getPeriod()
          Get the period
 boolean getShowDocuments()
          Check if the portlet must show the documents or not
 boolean getShowPages()
          Check if the portlet must show the pages or not
 boolean getShowPortlets()
          Check if the portlet must show the portlets or not
 java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
          Returns the XML content of the portlet without the XML header
 java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
          Returns the XML content of the portlet with the XML header
 void remove()
          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 update()
          Updates the current instance of the form portlet object
 
Methods inherited from class fr.paris.lutece.portal.business.portlet.Portlet
addPortletTags, copy, getAcceptAlias, getColumn, getDateUpdate, getDisplayPortletTitle, getHomeClassName, getId, getName, getOrder, getPageId, getPluginName, getPortletTypeId, getPortletTypeName, getRole, getStatus, getStyleId, getUrlCreation, getUrlUpdate, getXslFile, getXslParams, getXslSource, setAcceptAlias, setColumn, setDateUpdate, setDisplayPortletTitle, setHomeClassName, setId, setName, setOrder, setPageId, setPluginName, setPortletTypeId, setPortletTypeName, setRole, setStatus, setStyleId, setUrlCreation, setUrlUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhatsNewPortlet

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

Method Detail

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 java.lang.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 java.lang.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

Overrides:
remove in class fr.paris.lutece.portal.business.portlet.Portlet


Copyright © 2011 Mairie de Paris. All Rights Reserved.