public class WhatsNewPortlet
extends 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_UNPUBLISHEDTAG_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 and Description |
|---|
WhatsNewPortlet()
Sets the identifier of the portlet type to the value specified in the WhatsNewPortletHome class
|
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
getXml(javax.servlet.http.HttpServletRequest request)
Returns the XML content of the portlet without the XML header
|
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
|
addPortletTags, 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, setUrlUpdatepublic WhatsNewPortlet()
public boolean getShowDocuments()
public void setShowDocuments(boolean bShowDocuments)
bShowDocuments - The new boolean that indicates if the user wants to see the articlespublic boolean getShowPortlets()
public void setShowPortlets(boolean bPortlets)
bPortlets - The new boolean that indicates if the user wants to see the portletspublic boolean getShowPages()
public void setShowPages(boolean bPages)
bPages - The new boolean that indicates if the user wants to see the pagespublic int getPeriod()
public void setPeriod(int nPeriod)
nPeriod - The period to set (number of days)public int getNbElementsMax()
public void setNbElementsMax(int nElementsMax)
nElementsMax - The maximum number of elements to see in the portlet.public int getElementsOrder()
public void setElementsOrder(int nOrder)
nOrder - The maximum number of elements to see in the portlet.public boolean getAscSort()
public void setAscSort(boolean bIsAscSort)
bIsAscSort - true if it is sorting ascendinglypublic String getXmlDocument(javax.servlet.http.HttpServletRequest request)
request - The HTTP Servlet requestpublic boolean getDynamic()
public void setDynamic(boolean bIsDynamic)
bIsDynamic - true if it is dynamic, false otherwisepublic String getXml(javax.servlet.http.HttpServletRequest request)
request - The HTTP Servlet requestpublic void update()
public void remove()
remove in class fr.paris.lutece.portal.business.portlet.PortletCopyright © 2015 City of Paris. All rights reserved.