Interface IUnitSearchFields
- All Known Implementing Classes:
DefaultUnitSearchFields,UnitUserSearchFields
public interface IUnitSearchFields
IUnitPluginAction
-
Method Summary
Modifier and TypeMethodDescriptionvoidfillModelForUserSearchForm(List<fr.paris.lutece.portal.business.user.AdminUser> listUsers, String strBaseUrl, jakarta.servlet.http.HttpServletRequest request, Map<String, Object> model, Unit unit) Fill the model for the user search formCurrent 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 request
-
Method Details
-
getItemsPerPage
int getItemsPerPage()Get the items per page- Returns:
- the items per page
-
setItemsPerPage
void setItemsPerPage(int nItemsPerPage) Set the items per page- Parameters:
nItemsPerPage- the items per page
-
getDefaultItemsPerPage
int getDefaultItemsPerPage()Default items per page- Returns:
- default items per page
-
setDefaultItemsPerPage
void setDefaultItemsPerPage(int nDefaultItemsPerPage) Default items per page- Parameters:
nDefaultItemsPerPage- default items per page
-
getCurrentPageIndex
String getCurrentPageIndex()Current page index- Returns:
- current page index
-
setCurrentPageIndex
Current page index- Parameters:
strCurrentPageIndex- current page index
-
setSortedAttributeName
void setSortedAttributeName(jakarta.servlet.http.HttpServletRequest request) Set the sorted attribute name from the HTTP request- Parameters:
request- the HTTP request
-
getSortedAttributeName
String getSortedAttributeName()Get the sorted attribute name- Returns:
- the sorted attibute name
-
setAscSort
void setAscSort(jakarta.servlet.http.HttpServletRequest request) Set the asc sort from the HTTP request- Parameters:
request- the HTTP request
-
isAscSort
boolean isAscSort()Check if it is an asc sort- Returns:
- true if it is an asc sort, false otherwise
-
fillModelForUserSearchForm
void fillModelForUserSearchForm(List<fr.paris.lutece.portal.business.user.AdminUser> listUsers, String strBaseUrl, jakarta.servlet.http.HttpServletRequest request, Map<String, Object> model, Unit unit) throws fr.paris.lutece.portal.service.admin.AccessDeniedExceptionFill the model for the user search form- Parameters:
listUsers- the list of usersstrBaseUrl- the base urlrequest- the HTTP requestmodel- the modelunit- the unit- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- exception if the user does not have the rights
-
setInDepthSearch
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- Parameters:
request- the HTTP request
-
isInDepthSearch
boolean isInDepthSearch()Check if it is an in depth search- Returns:
- true if it is an in depth search, false otherwise
-