java.lang.Object
fr.paris.lutece.plugins.document.business.portlet.PortletOrder

public class PortletOrder extends Object
PortletOrder
  • Field Details

    • DATE_UPDATE_PORTLET

      public static final int DATE_UPDATE_PORTLET
    • PAGE_NAME

      public static final int PAGE_NAME
    • PAGE_ID

      public static final int PAGE_ID
    • PORTLET_NAME

      public static final int PORTLET_NAME
    • SORT_ASC

      public static final int SORT_ASC
  • Constructor Details

    • PortletOrder

      public PortletOrder()
      Constructor
    • PortletOrder

      public PortletOrder(boolean bSortAsc, int nTypeOrder)
      Constructor
      Parameters:
      bSortAsc - true if it must be sorted ascendingly, false otherwise
      nTypeOrder - the order type
  • Method Details

    • setSortAsc

      public void setSortAsc(boolean bSortAsc)
      Set the way of sorting the portlets
      Parameters:
      bSortAsc - true if it must be sorted ascendingly, false otherwise
    • isSortAsc

      public boolean isSortAsc()
      Return true if it must be sorted ascendingly, false otherwise
      Returns:
      true if it must be sorted ascendingly, false otherwise
    • setTypeOrder

      public void setTypeOrder(int nTypeOrder)
      Set the order type
      Parameters:
      nTypeOrder - the order type
    • getTypeOrder

      public int getTypeOrder()
      Get the order type
      Returns:
      the order type
    • getSQLOrderBy

      public String getSQLOrderBy()
      Get the SQL query for ordering the portlet
      Returns:
      the SQL query