Class PortletOrder
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.portlet.PortletOrder
-
public class PortletOrder extends Object
PortletOrder
-
-
Field Summary
Fields Modifier and Type Field Description static intDATE_UPDATE_PORTLETstatic intPAGE_IDstatic intPAGE_NAMEstatic intPORTLET_NAMEstatic intSORT_ASC
-
Constructor Summary
Constructors Constructor Description PortletOrder()ConstructorPortletOrder(boolean bSortAsc, int nTypeOrder)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSQLOrderBy()Get the SQL query for ordering the portletintgetTypeOrder()Get the order typebooleanisSortAsc()Return true if it must be sorted ascendingly, false otherwisevoidsetSortAsc(boolean bSortAsc)Set the way of sorting the portletsvoidsetTypeOrder(int nTypeOrder)Set 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 String getSQLOrderBy()
Get the SQL query for ordering the portlet- Returns:
- the SQL query
-
-