Class PortletFilter
java.lang.Object
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter
PortletFilter class
- Author:
- merlinfe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the start of the publication periodGet the end of the publication periodGet the exclusive upper bound used by the SQL condition: the day after the end of the period, because date_begin_publishing holds a timeGet the id of the pageString[]Get the page name listGet the portlet typeString[]Get the portlet title filterGet the search valueGet the SQL query for searchingGet the SQL condition keeping the portlets that hold at least one publication overlapping the publication period.booleanTell whether a publication period is setbooleanGet the display latest portlets filter attributevoidsetDateBeginPublishing(Date dateBeginPublishing) Set the start of the publication period: only portlets with a publication still running at that date are keptvoidsetDateEndPublishing(Date dateEndPublishing) Set the end of the publication period: only portlets with a publication started on or before that date are keptvoidsetDisplayLatestPortlets(boolean bIsDisplayLatestPortlets) Set the display latest portlets filter attributevoidSet the id of the pagevoidsetPageName(String[] aPageTitle) Set the page name listvoidsetPortletFilterType(String portletFilterType) Set the portlet typevoidsetPortletName(String[] aPortletTitle) Set the portlet title filtervoidsetSearchValue(String strSearchValue) Set the search value
-
Field Details
-
CONSTANTE_SPACE_STRING
- See Also:
-
PAGE_NAME
-
PORTLET_NAME
-
PAGE_ID
-
-
Constructor Details
-
PortletFilter
public PortletFilter()
-
-
Method Details
-
setPageName
Set the page name list- Parameters:
aPageTitle- The list of titles of pages
-
getPageName
Get the page name list- Returns:
- The page name list
-
setPortletName
Set the portlet title filter- Parameters:
aPortletTitle- The portlet title filter
-
getPortletName
Get the portlet title filter- Returns:
- The portlet title filter
-
setIdPage
Set the id of the page- Parameters:
nIdPage- The id of the page
-
getIdPage
Get the id of the page- Returns:
- The id of the page
-
setDisplayLatestPortlets
public void setDisplayLatestPortlets(boolean bIsDisplayLatestPortlets) Set the display latest portlets filter attribute- Parameters:
bIsDisplayLatestPortlets- the display latest portlets filter attribute
-
isDisplayLatestPortlets
public boolean isDisplayLatestPortlets()Get the display latest portlets filter attribute- Returns:
- The display latest portlets filter attribute
-
setPortletFilterType
Set the portlet type- Parameters:
portletFilterType- The portlet type
-
getPortletFilterType
Get the portlet type- Returns:
- The portlet type
-
getSQLFilter
Get the SQL query for searching- Returns:
- the SQL query
-
setSearchValue
Set the search value- Parameters:
strSearchValue- the search value
-
getSearchValue
Get the search value- Returns:
- the search value
-
setDateBeginPublishing
Set the start of the publication period: only portlets with a publication still running at that date are kept- Parameters:
dateBeginPublishing- the start of the period, or null for no lower bound
-
getDateBeginPublishing
Get the start of the publication period- Returns:
- the start of the period, or null
-
setDateEndPublishing
Set the end of the publication period: only portlets with a publication started on or before that date are kept- Parameters:
dateEndPublishing- the end of the period, or null for no upper bound
-
getDateEndPublishing
Get the end of the publication period- Returns:
- the end of the period, or null
-
hasPublicationPeriod
public boolean hasPublicationPeriod()Tell whether a publication period is set- Returns:
- true if at least one bound of the publication period is set
-
getSQLPublicationPeriodFilter
Get the SQL condition keeping the portlets that hold at least one publication overlapping the publication period. The parameters to bind are, in order, the start of the period (if set) then the day after its end (if set).- Returns:
- the SQL condition, or null if no publication period is set
-
getDateEndPublishingExclusive
Get the exclusive upper bound used by the SQL condition: the day after the end of the period, because date_begin_publishing holds a time- Returns:
- the day after the end of the period, or null
-