fr.paris.lutece.plugins.document.business.portlet
Class PortletOrder

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

public class PortletOrder
extends java.lang.Object

PortletOrder


Field Summary
static int DATE_UPDATE_PORTLET
           
static int PAGE_ID
           
static int PAGE_NAME
           
static int PORTLET_NAME
           
static int SORT_ASC
           
 
Constructor Summary
PortletOrder()
          Constructor
PortletOrder(boolean bSortAsc, int nTypeOrder)
          Constructor
 
Method Summary
 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
clone, equals, finalize, 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


Copyright © 2012 Mairie de Paris. All Rights Reserved.