Class PortletOrder
java.lang.Object
fr.paris.lutece.plugins.blog.business.portlet.PortletOrder
PortletOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the SQL query for ordering the portletintGet the order typebooleanReturn true if it must be sorted ascendingly, false otherwisevoidsetSortAsc(boolean bSortAsc) Set the way of sorting the portletsvoidsetTypeOrder(int nTypeOrder) Set the order type
-
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 otherwisenTypeOrder- 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
Get the SQL query for ordering the portlet- Returns:
- the SQL query
-