fr.paris.lutece.plugins.unittree.web.action
Class DefaultUnitSearchFields

java.lang.Object
  extended by fr.paris.lutece.plugins.unittree.web.action.DefaultUnitSearchFields
All Implemented Interfaces:
IUnitSearchFields, Serializable
Direct Known Subclasses:
UnitUserSearchFields

public abstract class DefaultUnitSearchFields
extends Object
implements IUnitSearchFields, Serializable

DefaultUnitSearchFields

See Also:
Serialized Form

Constructor Summary
DefaultUnitSearchFields()
           
 
Method Summary
 String getCurrentPageIndex()
          Current page index
 int getDefaultItemsPerPage()
          Default items per page
 int getItemsPerPage()
          Get the items per page
 String getSortedAttributeName()
          Get the sorted attribute name
 boolean isAscSort()
          Check if it is an asc sort
 boolean isInDepthSearch()
          Check if it is an in depth search
 void setAscSort(javax.servlet.http.HttpServletRequest request)
          Set the asc sort from the HTTP request
 void setCurrentPageIndex(String strCurrentPageIndex)
          Current page index
 void setDefaultItemsPerPage(int nDefaultItemsPerPage)
          Default items per page
 void setInDepthSearch(javax.servlet.http.HttpServletRequest request)
          Check if if it an in depth search.
 void setItemsPerPage(int nItemsPerPage)
          Set the items per page
 void setSortedAttributeName(javax.servlet.http.HttpServletRequest request)
          Set the sorted attribute name from the HTTP request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.unittree.web.action.IUnitSearchFields
fillModelForUserSearchForm
 

Constructor Detail

DefaultUnitSearchFields

public DefaultUnitSearchFields()
Method Detail

getCurrentPageIndex

public String getCurrentPageIndex()
Current page index

Specified by:
getCurrentPageIndex in interface IUnitSearchFields
Returns:
current page index

getDefaultItemsPerPage

public int getDefaultItemsPerPage()
Default items per page

Specified by:
getDefaultItemsPerPage in interface IUnitSearchFields
Returns:
default items per page

setCurrentPageIndex

public void setCurrentPageIndex(String strCurrentPageIndex)
Current page index

Specified by:
setCurrentPageIndex in interface IUnitSearchFields
Parameters:
strCurrentPageIndex - current page index

setDefaultItemsPerPage

public void setDefaultItemsPerPage(int nDefaultItemsPerPage)
Default items per page

Specified by:
setDefaultItemsPerPage in interface IUnitSearchFields
Parameters:
nDefaultItemsPerPage - default items per page

getItemsPerPage

public int getItemsPerPage()
Get the items per page

Specified by:
getItemsPerPage in interface IUnitSearchFields
Returns:
the items per page

setItemsPerPage

public void setItemsPerPage(int nItemsPerPage)
Set the items per page

Specified by:
setItemsPerPage in interface IUnitSearchFields
Parameters:
nItemsPerPage - the items per page

setInDepthSearch

public void setInDepthSearch(javax.servlet.http.HttpServletRequest request)
Check if if it an in depth search.
It will check if the request possesses the parameter isInDepthSearch

Specified by:
setInDepthSearch in interface IUnitSearchFields
Parameters:
request - the HTTP request

isInDepthSearch

public boolean isInDepthSearch()
Check if it is an in depth search

Specified by:
isInDepthSearch in interface IUnitSearchFields
Returns:
true if it is an in depth search, false otherwise

getSortedAttributeName

public String getSortedAttributeName()
Get the sorted attribute name

Specified by:
getSortedAttributeName in interface IUnitSearchFields
Returns:
the sorted attibute name

setSortedAttributeName

public void setSortedAttributeName(javax.servlet.http.HttpServletRequest request)
Set the sorted attribute name from the HTTP request

Specified by:
setSortedAttributeName in interface IUnitSearchFields
Parameters:
request - the HTTP request

isAscSort

public boolean isAscSort()
Check if it is an asc sort

Specified by:
isAscSort in interface IUnitSearchFields
Returns:
true if it is an asc sort, false otherwise

setAscSort

public void setAscSort(javax.servlet.http.HttpServletRequest request)
Set the asc sort from the HTTP request

Specified by:
setAscSort in interface IUnitSearchFields
Parameters:
request - the HTTP request


Copyright © 2013 Mairie de Paris. All Rights Reserved.