Class ResourceExtenderSearchFields
java.lang.Object
fr.paris.lutece.plugins.extend.web.action.ResourceExtenderSearchFields
- All Implemented Interfaces:
IResourceExtenderSearchFields,Serializable
public class ResourceExtenderSearchFields
extends Object
implements IResourceExtenderSearchFields, Serializable
ResourceExtenderSearchFields
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillModel(String strBaseUrl, javax.servlet.http.HttpServletRequest request, Map<String, Object> model, fr.paris.lutece.portal.business.user.AdminUser user) Fill model.voidfillModel(String strBaseUrl, javax.servlet.http.HttpServletRequest request, Map<String, Object> model, String strIdExtendableResource, fr.paris.lutece.portal.business.user.AdminUser user) Fill model.Current page indexintDefault items per pageintGet the items per pageGet the sorted attribute namevoidinitFilter(javax.servlet.http.HttpServletRequest request) Inits the filter.booleanCheck if it is an asc sortvoidsetAscSort(javax.servlet.http.HttpServletRequest request) Set the asc sort from the HTTP requestvoidsetCurrentPageIndex(String strCurrentPageIndex) Current page indexvoidsetDefaultItemsPerPage(int nDefaultItemsPerPage) Default items per pagevoidsetItemsPerPage(int nItemsPerPage) Set the items per pagevoidsetSortedAttributeName(javax.servlet.http.HttpServletRequest request) Set the sorted attribute name from the HTTP request
-
Constructor Details
-
ResourceExtenderSearchFields
public ResourceExtenderSearchFields()
-
-
Method Details
-
getCurrentPageIndex
Current page index- Specified by:
getCurrentPageIndexin interfaceIResourceExtenderSearchFields- Returns:
- current page index
-
getDefaultItemsPerPage
public int getDefaultItemsPerPage()Default items per page- Specified by:
getDefaultItemsPerPagein interfaceIResourceExtenderSearchFields- Returns:
- default items per page
-
setCurrentPageIndex
Current page index- Specified by:
setCurrentPageIndexin interfaceIResourceExtenderSearchFields- Parameters:
strCurrentPageIndex- current page index
-
setDefaultItemsPerPage
public void setDefaultItemsPerPage(int nDefaultItemsPerPage) Default items per page- Specified by:
setDefaultItemsPerPagein interfaceIResourceExtenderSearchFields- Parameters:
nDefaultItemsPerPage- default items per page
-
getItemsPerPage
public int getItemsPerPage()Get the items per page- Specified by:
getItemsPerPagein interfaceIResourceExtenderSearchFields- Returns:
- the items per page
-
setItemsPerPage
public void setItemsPerPage(int nItemsPerPage) Set the items per page- Specified by:
setItemsPerPagein interfaceIResourceExtenderSearchFields- Parameters:
nItemsPerPage- the items per page
-
getSortedAttributeName
Get the sorted attribute name- Specified by:
getSortedAttributeNamein interfaceIResourceExtenderSearchFields- 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:
setSortedAttributeNamein interfaceIResourceExtenderSearchFields- Parameters:
request- the HTTP request
-
isAscSort
public boolean isAscSort()Check if it is an asc sort- Specified by:
isAscSortin interfaceIResourceExtenderSearchFields- 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:
setAscSortin interfaceIResourceExtenderSearchFields- Parameters:
request- the HTTP request
-
fillModel
public void fillModel(String strBaseUrl, javax.servlet.http.HttpServletRequest request, Map<String, Object> model, fr.paris.lutece.portal.business.user.AdminUser user) throws fr.paris.lutece.portal.service.admin.AccessDeniedExceptionFill model.- Specified by:
fillModelin interfaceIResourceExtenderSearchFields- Parameters:
strBaseUrl- the str base urlrequest- the requestmodel- the modeluser- the user- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- the access denied exception
-
fillModel
public void fillModel(String strBaseUrl, javax.servlet.http.HttpServletRequest request, Map<String, Object> model, String strIdExtendableResource, fr.paris.lutece.portal.business.user.AdminUser user) throws fr.paris.lutece.portal.service.admin.AccessDeniedExceptionFill model.- Specified by:
fillModelin interfaceIResourceExtenderSearchFields- Parameters:
strBaseUrl- the str base urlrequest- the requestmodel- the modelstrIdExtendableResource- the str id extendable resourceuser- the user- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- the access denied exception
-
initFilter
public void initFilter(javax.servlet.http.HttpServletRequest request) Inits the filter.- Specified by:
initFilterin interfaceIResourceExtenderSearchFields- Parameters:
request- the request
-