Class WhatsNewPortlet
java.lang.Object
fr.paris.lutece.portal.business.portlet.Portlet
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
FLAG_DISPLAY_ON_LARGE_DEVICE, FLAG_DISPLAY_ON_NORMAL_DEVICE, FLAG_DISPLAY_ON_SMALL_DEVICE, FLAG_DISPLAY_ON_XLARGE_DEVICE, STATUS_PUBLISHED, STATUS_UNPUBLISHEDFields 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
ConstructorsConstructorDescriptionSets the identifier of the portlet type to the value specified in the WhatsNewPortletHome class -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the portlet is sorting ascendinglybooleanCheck if the whatsnew is dynamicintGet the element orderintGet the maximum number of elements to see in the portletintGet the periodbooleanCheck if the portlet must show the documents or notbooleanCheck if the portlet must show the pages or notbooleanCheck if the portlet must show the portlets or notgetXml(javax.servlet.http.HttpServletRequest request) Returns the XML content of the portlet without the XML headergetXmlDocument(javax.servlet.http.HttpServletRequest request) Returns the XML content of the portlet with the XML headervoidremove()Removes the current instance of the the form portlet objectvoidsetAscSort(boolean bIsAscSort) Set the sorting attributevoidsetDynamic(boolean bIsDynamic) Set the attribute dynamic of the whatsnewvoidsetElementsOrder(int nOrder) Set the element ordervoidsetNbElementsMax(int nElementsMax) Set maximum number of elements to see in the portletvoidsetPeriod(int nPeriod) Set the periodvoidsetShowDocuments(boolean bShowDocuments) Set true if the portlet must show the documentsvoidsetShowPages(boolean bPages) Set true if the portlet must show the pagesvoidsetShowPortlets(boolean bPortlets) Set true if the portlet must show the portletsvoidupdate()Updates the current instance of the form portlet objectMethods inherited from class fr.paris.lutece.portal.business.portlet.Portlet
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, setUrlUpdate
-
Constructor Details
-
WhatsNewPortlet
public WhatsNewPortlet()Sets the identifier of the portlet type to the value specified in the WhatsNewPortletHome class
-
-
Method Details
-
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
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
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- Specified by:
removein classfr.paris.lutece.portal.business.portlet.Portlet
-