fr.paris.lutece.plugins.whatsnew.business
Class WhatsNew

java.lang.Object
  extended by fr.paris.lutece.plugins.whatsnew.business.WhatsNew
All Implemented Interfaces:
fr.paris.lutece.portal.business.XmlContent

public class WhatsNew
extends java.lang.Object
implements fr.paris.lutece.portal.business.XmlContent

This class represents business object WhatsNew


Field Summary
static java.lang.String PARAMETER_DOCUMENT_ID
          parameters.
static int TYPE_DOCUMENT
           
static int TYPE_PAGE
           
static int TYPE_PORTLET
          constants to refer to the styles
 
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
WhatsNew()
          Creates a new WhatsNew object.
 
Method Summary
 java.sql.Timestamp getDateUpdate()
          Returns the date of the last update of the whatsnew object
 java.lang.String getDescription()
          Returns the description of the whatsnew object
 int getDocumentId()
           
 int getPageId()
           
 int getPortletId()
           
 java.lang.String getPropertiesPrefix()
          Returns portlet's properties prefix
 java.lang.String getTitle()
          Returns the title of the whatsnew object
 int getType()
          Returns the type of the whatsnew object
 java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
          Builds the XML content of this whatsnew object and returns it
 java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
          Adds the XML header to the XML content of this whatsnew object and returns it
 void setDateUpdate(java.sql.Timestamp date)
          Sets the date of the last update of the whatsnew object
 void setDescription(java.lang.String strDescription)
          Sets the description of the whatsnew object to the specified String
 void setDocumentId(int nDocumentId)
           
 void setPageId(int nPageId)
           
 void setPortletId(int nPortletId)
           
 void setTitle(java.lang.String strTitle)
          Sets the title of the whatsnew object to the specified String
 void setType(int nType)
          Sets the type of the whatsnew object to the specified String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_DOCUMENT_ID

public static final java.lang.String PARAMETER_DOCUMENT_ID
parameters.

See Also:
Constant Field Values

TYPE_PORTLET

public static final int TYPE_PORTLET
constants to refer to the styles

See Also:
Constant Field Values

TYPE_PAGE

public static final int TYPE_PAGE
See Also:
Constant Field Values

TYPE_DOCUMENT

public static final int TYPE_DOCUMENT
See Also:
Constant Field Values
Constructor Detail

WhatsNew

public WhatsNew()
Creates a new WhatsNew object.

Method Detail

getType

public int getType()
Returns the type of the whatsnew object

Returns:
the type of the whatsnew object

getTitle

public java.lang.String getTitle()
Returns the title of the whatsnew object

Returns:
the title of the whatsnew object

getDescription

public java.lang.String getDescription()
Returns the description of the whatsnew object

Returns:
the description of the whatsnew object

getDateUpdate

public java.sql.Timestamp getDateUpdate()
Returns the date of the last update of the whatsnew object

Returns:
the date of the last update of the whatsnew object

setType

public void setType(int nType)
Sets the type of the whatsnew object to the specified String

Parameters:
nType - the new type of the whatsnew object

setTitle

public void setTitle(java.lang.String strTitle)
Sets the title of the whatsnew object to the specified String

Parameters:
strTitle - the new title of the whatsnew object

setDescription

public void setDescription(java.lang.String strDescription)
Sets the description of the whatsnew object to the specified String

Parameters:
strDescription - the new description of the whatsnew object

setDateUpdate

public void setDateUpdate(java.sql.Timestamp date)
Sets the date of the last update of the whatsnew object

Parameters:
date - the date update of the whatsnew object

getDocumentId

public int getDocumentId()
Returns:
Returns the _nDocumentId.

setDocumentId

public void setDocumentId(int nDocumentId)
Parameters:
nArticleId - The _nArticleId to set.

getPageId

public int getPageId()
Returns:
Returns the _nPageId.

setPageId

public void setPageId(int nPageId)
Parameters:
nPageId - The _nPageId to set.

getPortletId

public int getPortletId()
Returns:
Returns the _nPortletId.

setPortletId

public void setPortletId(int nPortletId)
Parameters:
nPortletId - The _nPortletId to set.

getXml

public java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
Builds the XML content of this whatsnew object and returns it

Specified by:
getXml in interface fr.paris.lutece.portal.business.XmlContent
Parameters:
request - The HTTP Servlet request
Returns:
the Xml content of this whatsnew object

getXmlDocument

public java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
Adds the XML header to the XML content of this whatsnew object and returns it

Specified by:
getXmlDocument in interface fr.paris.lutece.portal.business.XmlContent
Parameters:
request - The HTTP Servlet request
Returns:
the Xml document with header

getPropertiesPrefix

public java.lang.String getPropertiesPrefix()
Returns portlet's properties prefix

Returns:
prefix


Copyright © 2008 Mairie de Paris. All Rights Reserved.