fr.paris.lutece.plugins.extend.web.action
Class ResourceExtenderSearchFields

java.lang.Object
  extended by fr.paris.lutece.plugins.extend.web.action.ResourceExtenderSearchFields
All Implemented Interfaces:
IResourceExtenderSearchFields, Serializable

public class ResourceExtenderSearchFields
extends Object
implements IResourceExtenderSearchFields, Serializable

ResourceExtenderSearchFields

See Also:
Serialized Form

Constructor Summary
ResourceExtenderSearchFields()
           
 
Method Summary
 void fillModel(String strBaseUrl, javax.servlet.http.HttpServletRequest request, Map<String,Object> model, fr.paris.lutece.portal.business.user.AdminUser user)
          Fill model.
 void fillModel(String strBaseUrl, javax.servlet.http.HttpServletRequest request, Map<String,Object> model, String strIdExtendableResource, fr.paris.lutece.portal.business.user.AdminUser user)
          Fill model.
 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
 void initFilter(javax.servlet.http.HttpServletRequest request)
          Inits the filter.
 boolean isAscSort()
          Check if it is an asc sort
 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 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
 

Constructor Detail

ResourceExtenderSearchFields

public ResourceExtenderSearchFields()
Method Detail

getCurrentPageIndex

public String getCurrentPageIndex()
Current page index

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

getDefaultItemsPerPage

public int getDefaultItemsPerPage()
Default items per page

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

setCurrentPageIndex

public void setCurrentPageIndex(String strCurrentPageIndex)
Current page index

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

setDefaultItemsPerPage

public void setDefaultItemsPerPage(int nDefaultItemsPerPage)
Default items per page

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

getItemsPerPage

public int getItemsPerPage()
Get the items per page

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

setItemsPerPage

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

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

getSortedAttributeName

public String getSortedAttributeName()
Get the sorted attribute name

Specified by:
getSortedAttributeName in interface IResourceExtenderSearchFields
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 IResourceExtenderSearchFields
Parameters:
request - the HTTP request

isAscSort

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

Specified by:
isAscSort in interface IResourceExtenderSearchFields
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 IResourceExtenderSearchFields
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.AccessDeniedException
Fill model.

Specified by:
fillModel in interface IResourceExtenderSearchFields
Parameters:
strBaseUrl - the str base url
request - the request
model - the model
user - 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.AccessDeniedException
Fill model.

Specified by:
fillModel in interface IResourceExtenderSearchFields
Parameters:
strBaseUrl - the str base url
request - the request
model - the model
strIdExtendableResource - the str id extendable resource
user - 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:
initFilter in interface IResourceExtenderSearchFields
Parameters:
request - the request


Copyright © 2013 Mairie de Paris. All Rights Reserved.