Class DefaultUnitSearchFields
java.lang.Object
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCurrent page indexintDefault items per pageintGet the items per pageGet the sorted attribute namebooleanCheck if it is an asc sortbooleanCheck if it is an in depth searchvoidsetAscSort(jakarta.servlet.http.HttpServletRequest request) Set the asc sort from the HTTP requestvoidsetCurrentPageIndex(String strCurrentPageIndex) Current page indexvoidsetDefaultItemsPerPage(int nDefaultItemsPerPage) Default items per pagevoidsetInDepthSearch(jakarta.servlet.http.HttpServletRequest request) Check if if it an in depth search.voidsetItemsPerPage(int nItemsPerPage) Set the items per pagevoidsetSortedAttributeName(jakarta.servlet.http.HttpServletRequest request) Set the sorted attribute name from the HTTP requestMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.unittree.web.action.IUnitSearchFields
fillModelForUserSearchForm
-
Constructor Details
-
DefaultUnitSearchFields
public DefaultUnitSearchFields()
-
-
Method Details
-
getCurrentPageIndex
Current page index- Specified by:
getCurrentPageIndexin interfaceIUnitSearchFields- Returns:
- current page index
-
getDefaultItemsPerPage
public int getDefaultItemsPerPage()Default items per page- Specified by:
getDefaultItemsPerPagein interfaceIUnitSearchFields- Returns:
- default items per page
-
setCurrentPageIndex
Current page index- Specified by:
setCurrentPageIndexin interfaceIUnitSearchFields- Parameters:
strCurrentPageIndex- current page index
-
setDefaultItemsPerPage
public void setDefaultItemsPerPage(int nDefaultItemsPerPage) Default items per page- Specified by:
setDefaultItemsPerPagein interfaceIUnitSearchFields- Parameters:
nDefaultItemsPerPage- default items per page
-
getItemsPerPage
public int getItemsPerPage()Get the items per page- Specified by:
getItemsPerPagein interfaceIUnitSearchFields- Returns:
- the items per page
-
setItemsPerPage
public void setItemsPerPage(int nItemsPerPage) Set the items per page- Specified by:
setItemsPerPagein interfaceIUnitSearchFields- Parameters:
nItemsPerPage- the items per page
-
setInDepthSearch
public void setInDepthSearch(jakarta.servlet.http.HttpServletRequest request) Check if if it an in depth search.
It will check if the request possesses the parameter isInDepthSearch- Specified by:
setInDepthSearchin interfaceIUnitSearchFields- Parameters:
request- the HTTP request
-
isInDepthSearch
public boolean isInDepthSearch()Check if it is an in depth search- Specified by:
isInDepthSearchin interfaceIUnitSearchFields- Returns:
- true if it is an in depth search, false otherwise
-
getSortedAttributeName
Get the sorted attribute name- Specified by:
getSortedAttributeNamein interfaceIUnitSearchFields- Returns:
- the sorted attibute name
-
setSortedAttributeName
public void setSortedAttributeName(jakarta.servlet.http.HttpServletRequest request) Set the sorted attribute name from the HTTP request- Specified by:
setSortedAttributeNamein interfaceIUnitSearchFields- Parameters:
request- the HTTP request
-
isAscSort
public boolean isAscSort()Check if it is an asc sort- Specified by:
isAscSortin interfaceIUnitSearchFields- Returns:
- true if it is an asc sort, false otherwise
-
setAscSort
public void setAscSort(jakarta.servlet.http.HttpServletRequest request) Set the asc sort from the HTTP request- Specified by:
setAscSortin interfaceIUnitSearchFields- Parameters:
request- the HTTP request
-