Class WhatsNew
java.lang.Object
fr.paris.lutece.plugins.whatsnew.business.WhatsNew
- All Implemented Interfaces:
IWhatsNew,fr.paris.lutece.portal.business.XmlContent
- Direct Known Subclasses:
WhatsNewTypeDocument,WhatsNewTypePage,WhatsNewTypePortlet
WhatsNew
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the date of the last update of the whatsnew objectReturns the description of the whatsnew objectintGet the document IDintGet the page IDintGet the portlet IDgetTitle()Returns the title of the whatsnew objectgetType()Get the typeReturns the type of the whatsnew objectgetXml(javax.servlet.http.HttpServletRequest request) Builds the XML content of this whatsnew object and returns itgetXmlDocument(javax.servlet.http.HttpServletRequest request) Adds the XML header to the XML content of this whatsnew object and returns itvoidsetDateUpdate(Timestamp date) Sets the date of the last update of the whatsnew objectvoidsetDescription(String strDescription) Sets the description of the whatsnew object to the specified StringvoidsetDocumentId(int nDocumentId) Set the document IDvoidsetPageId(int nPageId) Set the page IDvoidsetPortletId(int nPortletId) Set the portlet IDvoidSets the title of the whatsnew object to the specified StringvoidSet the typevoidsetWhatsNewType(WhatsNewType whatsNewType) Sets the type of the whatsnew object to the specified StringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.whatsnew.business.IWhatsNew
buildUrl, getTemplateModeratedElement, setWhatsNewType
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
-
Constructor Details
-
WhatsNew
public WhatsNew()Creates a new WhatsNew object.
-
-
Method Details
-
getWhatsNewType
Returns the type of the whatsnew object- Specified by:
getWhatsNewTypein interfaceIWhatsNew- Returns:
- the type of the whatsnew object
-
getTitle
Returns the title of the whatsnew object -
getDescription
Returns the description of the whatsnew object- Specified by:
getDescriptionin interfaceIWhatsNew- Returns:
- the description of the whatsnew object
-
getDateUpdate
Returns the date of the last update of the whatsnew object- Specified by:
getDateUpdatein interfaceIWhatsNew- Returns:
- the date of the last update of the whatsnew object
-
setWhatsNewType
Sets the type of the whatsnew object to the specified String- Specified by:
setWhatsNewTypein interfaceIWhatsNew- Parameters:
whatsNewType- the new type of the whatsnew object
-
setTitle
Sets the title of the whatsnew object to the specified String -
setDescription
Sets the description of the whatsnew object to the specified String- Specified by:
setDescriptionin interfaceIWhatsNew- Parameters:
strDescription- the new description of the whatsnew object
-
setDateUpdate
Sets the date of the last update of the whatsnew object- Specified by:
setDateUpdatein interfaceIWhatsNew- Parameters:
date- the date update of the whatsnew object
-
getDocumentId
public int getDocumentId()Get the document ID- Specified by:
getDocumentIdin interfaceIWhatsNew- Returns:
- Returns the _nDocumentId.
-
setDocumentId
public void setDocumentId(int nDocumentId) Set the document ID- Specified by:
setDocumentIdin interfaceIWhatsNew- Parameters:
nDocumentId- The _nDocumentId to set.
-
getPageId
public int getPageId()Get the page ID -
setPageId
public void setPageId(int nPageId) Set the page ID -
getPortletId
public int getPortletId()Get the portlet ID- Specified by:
getPortletIdin interfaceIWhatsNew- Returns:
- Returns the _nPortletId.
-
setPortletId
public void setPortletId(int nPortletId) Set the portlet ID- Specified by:
setPortletIdin interfaceIWhatsNew- Parameters:
nPortletId- The _nPortletId to set.
-
getType
Get the type -
setType
Set the type -
getXmlDocument
Adds the XML header to the XML content of this whatsnew object and returns it- Specified by:
getXmlDocumentin interfaceIWhatsNew- Specified by:
getXmlDocumentin interfacefr.paris.lutece.portal.business.XmlContent- Parameters:
request- The HTTP Servlet request- Returns:
- the Xml document with header
-
getXml
Builds the XML content of this whatsnew object and returns it
-