Class PortletFilter

java.lang.Object
fr.paris.lutece.plugins.blog.business.portlet.PortletFilter

public class PortletFilter extends Object
PortletFilter class
Author:
merlinfe
  • Field Details

    • CONSTANTE_SPACE_STRING

      public static final String CONSTANTE_SPACE_STRING
      See Also:
    • PAGE_NAME

      public static final String PAGE_NAME
    • PORTLET_NAME

      public static final String PORTLET_NAME
    • PAGE_ID

      public static final String PAGE_ID
  • Constructor Details

    • PortletFilter

      public PortletFilter()
  • Method Details

    • setPageName

      public void setPageName(String[] aPageTitle)
      Set the page name list
      Parameters:
      aPageTitle - The list of titles of pages
    • getPageName

      public String[] getPageName()
      Get the page name list
      Returns:
      The page name list
    • setPortletName

      public void setPortletName(String[] aPortletTitle)
      Set the portlet title filter
      Parameters:
      aPortletTitle - The portlet title filter
    • getPortletName

      public String[] getPortletName()
      Get the portlet title filter
      Returns:
      The portlet title filter
    • setIdPage

      public void setIdPage(Integer nIdPage)
      Set the id of the page
      Parameters:
      nIdPage - The id of the page
    • getIdPage

      public Integer 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

      public void setPortletFilterType(String portletFilterType)
      Set the portlet type
      Parameters:
      portletFilterType - The portlet type
    • getPortletFilterType

      public String getPortletFilterType()
      Get the portlet type
      Returns:
      The portlet type
    • getSQLFilter

      public String getSQLFilter()
      Get the SQL query for searching
      Returns:
      the SQL query
    • setSearchValue

      public void setSearchValue(String strSearchValue)
      Set the search value
      Parameters:
      strSearchValue - the search value
    • getSearchValue

      public String getSearchValue()
      Get the search value
      Returns:
      the search value
    • setDateBeginPublishing

      public void setDateBeginPublishing(Date dateBeginPublishing)
      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

      public Date getDateBeginPublishing()
      Get the start of the publication period
      Returns:
      the start of the period, or null
    • setDateEndPublishing

      public void setDateEndPublishing(Date dateEndPublishing)
      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

      public Date 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

      public String 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

      public Date 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