Class PortletOrder


  • public class PortletOrder
    extends java.lang.Object
    PortletOrder
    • Constructor Summary

      Constructors 
      Constructor Description
      PortletOrder()
      Constructor
      PortletOrder​(boolean bSortAsc, int nTypeOrder)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSQLOrderBy()
      Get the SQL query for ordering the portlet
      int getTypeOrder()
      Get the order type
      boolean isSortAsc()
      Return true if it must be sorted ascendingly, false otherwise
      void setSortAsc​(boolean bSortAsc)
      Set the way of sorting the portlets
      void setTypeOrder​(int nTypeOrder)
      Set the order type
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • 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 Detail

      • 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 java.lang.String getSQLOrderBy()
        Get the SQL query for ordering the portlet
        Returns:
        the SQL query