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

This class represents business object WhatsNewPortlet


Field Summary
static int ELEMENT_ORDER_ALPHA
           
static int ELEMENT_ORDER_DATE_ASC
           
static int ELEMENT_ORDER_DATE_DESC
           
 
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
 int getElementsOrder()
           
 int getNbElementsMax()
           
 int getPeriod()
           
 boolean getShowDocuments()
           
 boolean getShowPages()
           
 boolean getShowPortlets()
           
 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 WhatsNewPortlet object
 void setElementsOrder(int nOrder)
           
 void setNbElementsMax(int nElementsMax)
           
 void setPeriod(int nPeriod)
           
 void setShowDocuments(boolean bShowDocuments)
           
 void setShowPages(boolean bPages)
           
 void setShowPortlets(boolean bPortlets)
           
 void update()
          Update of this portlet
 
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, getStatus, getStyleId, getUrlCreation, getUrlUpdate, getXslFile, getXslParams, getXslSource, setAcceptAlias, setColumn, setDateUpdate, setDisplayPortletTitle, setHomeClassName, setId, setName, setOrder, setPageId, setPluginName, setPortletTypeId, setPortletTypeName, setStatus, setStyleId, setUrlCreation, setUrlUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_ORDER_DATE_DESC

public static final int ELEMENT_ORDER_DATE_DESC
See Also:
Constant Field Values

ELEMENT_ORDER_DATE_ASC

public static final int ELEMENT_ORDER_DATE_ASC
See Also:
Constant Field Values

ELEMENT_ORDER_ALPHA

public static final int ELEMENT_ORDER_ALPHA
See Also:
Constant Field Values
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()
Returns:
Returns the boolean that indicates if the user wants to see the documents.

setShowDocuments

public void setShowDocuments(boolean bShowDocuments)
Parameters:
bArticles - The new boolean that indicates if the user wants to see the articles..

getShowPortlets

public boolean getShowPortlets()
Returns:
Returns the boolean that indicates if the user wants to see the portlets.

setShowPortlets

public void setShowPortlets(boolean bPortlets)
Parameters:
bPortlets - The new boolean that indicates if the user wants to see the portlets.

getShowPages

public boolean getShowPages()
Returns:
Returns the boolean that indicates if the user wants to see the pages.

setShowPages

public void setShowPages(boolean bPages)
Parameters:
bPages - The new boolean that indicates if the user wants to see the pages.

getPeriod

public int getPeriod()
Returns:
Returns the period (number of days).

setPeriod

public void setPeriod(int nPeriod)
Parameters:
nPeriod - The period to set (number of days).

getNbElementsMax

public int getNbElementsMax()
Returns:
Returns the nbElementsMax.

setNbElementsMax

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

getElementsOrder

public int getElementsOrder()
Returns:
Returns the maximum number of elements to see in the portlet.

setElementsOrder

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

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

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()
Update of this portlet


remove

public void remove()
Removes the current instance of the WhatsNewPortlet object

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


Copyright © 2009 Mairie de Paris. All Rights Reserved.