public class AbstractJspBean
extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
| Modifier and Type | Field and Description |
|---|---|
protected int |
_nItemsPerPage |
protected static String |
ERROR_MESSAGE_KEY |
protected static String |
ERROR_TEMPLATE |
protected static String |
FIELD_MESSAGE_PREFIX |
protected static String |
MARK_ASC_SORT |
protected static String |
MARK_DATA_TABLE_MANAGER |
protected static String |
MARK_FILTER |
protected static String |
MARK_MESSAGE_LIST |
protected static String |
MARK_NB_ITEMS_PER_PAGE |
protected static String |
MARK_PAGINATOR |
protected static String |
MARK_PLUGIN_NAME |
static int |
N_DEFAULT_ITEMS_PER_PAGE |
protected static String |
PARAMETER_FIND_BY_FILTER_NAME_METHOD |
protected static String |
PARAMETER_TRUE |
static String |
PROPERTY_DEFAULT_PAGINATION |
| Constructor and Description |
|---|
AbstractJspBean() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> fr.paris.lutece.util.datatable.DataTableManager<T> |
getAbstractDataTableManager(javax.servlet.http.HttpServletRequest request,
Object filter,
String keyDataTable,
String jspManage,
Object service,
Method findByFilter) |
protected <T> fr.paris.lutece.util.datatable.DataTableManager<T> |
getAbstractDataTableManager(javax.servlet.http.HttpServletRequest request,
Object filter,
String keyDataTable,
String jspManage,
Object service,
Method findByFilter,
boolean forceNewFilter) |
protected <T> fr.paris.lutece.util.datatable.DataTableManager<T> |
getDataTableToUse(javax.servlet.http.HttpServletRequest request,
String markFilter,
String jspManage)
Get the correct data table manager
|
protected fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException |
getErrorOnce(javax.servlet.http.HttpServletRequest request)
Get validation error from session and remove from it
|
protected <T> T |
getFilterToUse(javax.servlet.http.HttpServletRequest request,
T filter,
String markFilter,
fr.paris.lutece.util.datatable.DataTableManager<?> dataTable)
Get the correct filter to use with data table manager
|
protected String |
getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e)
Return html code for error message
|
protected String |
getMessage(String key)
Return localized message
|
protected String |
getMessage(String key,
String... args)
Return localized message with args
|
protected <T> fr.paris.lutece.util.datatable.DataTableManager<T> |
loadDataTableFromSession(javax.servlet.http.HttpServletRequest request,
String key)
Get the datatable save in the session
|
protected String |
manageFunctionnalException(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
String targetUrl)
Manage functionnal exception.
|
protected <T> void |
saveDataTableInSession(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.util.datatable.DataTableManager<T> dataTable,
String key)
Save a Data table manager into the http session with key.
|
protected <T> void |
validateBilletterie(T bean)
Validate a bean using jsr 303 specs.
|
getPlugin, initpublic static final int N_DEFAULT_ITEMS_PER_PAGE
public static final String PROPERTY_DEFAULT_PAGINATION
protected static final String ERROR_MESSAGE_KEY
protected static final String ERROR_TEMPLATE
protected static final String FIELD_MESSAGE_PREFIX
protected static final String MARK_FILTER
protected static final String MARK_DATA_TABLE_MANAGER
protected static final String MARK_MESSAGE_LIST
protected static final String MARK_NB_ITEMS_PER_PAGE
protected static final String MARK_PAGINATOR
protected static final String MARK_PLUGIN_NAME
protected static final String MARK_ASC_SORT
protected static final String PARAMETER_TRUE
protected static final String PARAMETER_FIND_BY_FILTER_NAME_METHOD
protected int _nItemsPerPage
protected <T> fr.paris.lutece.util.datatable.DataTableManager<T> loadDataTableFromSession(javax.servlet.http.HttpServletRequest request,
String key)
request - the http requestkey - the key for the data tableprotected <T> void saveDataTableInSession(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.util.datatable.DataTableManager<T> dataTable,
String key)
T - Type of datarequest - the http request with the user sessiondataTable - the datatablekey - the datatable keyprotected <T> void validateBilletterie(T bean)
throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
T - the bean typebean - to validatefr.paris.lutece.plugins.stock.commons.exception.ValidationException - exception containing informations about errors and the beanprotected String getMessage(String key)
key - i18n keyprotected String getMessage(String key, String... args)
key - i18n keyargs - argsprotected fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException getErrorOnce(javax.servlet.http.HttpServletRequest request)
request - http requestprotected String getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e)
e - functionnal exceptionprotected String manageFunctionnalException(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e, String targetUrl)
request - the requeste - the etargetUrl - the target urlprotected <T> T getFilterToUse(javax.servlet.http.HttpServletRequest request,
T filter,
String markFilter,
fr.paris.lutece.util.datatable.DataTableManager<?> dataTable)
T - the bean filter typerequest - the http requestfilter - the bean filter get with requestmarkFilter - the key of the filterdataTable - the datatable to useprotected <T> fr.paris.lutece.util.datatable.DataTableManager<T> getDataTableToUse(javax.servlet.http.HttpServletRequest request,
String markFilter,
String jspManage)
T - the bean filter typerequest - the http requestmarkFilter - the key of the filterjspManage - the jsp file to manage the beansprotected <T> fr.paris.lutece.util.datatable.DataTableManager<T> getAbstractDataTableManager(javax.servlet.http.HttpServletRequest request,
Object filter,
String keyDataTable,
String jspManage,
Object service,
Method findByFilter,
boolean forceNewFilter)
request - the http requestfilter - the filterkeyDataTable - the key to store data table managerjspManage - the url to the manage pageservice - the bean servicefindByFilter - the method which give the method to find beansprotected <T> fr.paris.lutece.util.datatable.DataTableManager<T> getAbstractDataTableManager(javax.servlet.http.HttpServletRequest request,
Object filter,
String keyDataTable,
String jspManage,
Object service,
Method findByFilter)
request - the http requestfilter - the filterkeyDataTable - the key to store data table managerjspManage - the url to the manage pageservice - the bean servicefindByFilter - the method which give the method to find beansCopyright © 2019 City of Paris. All rights reserved.