|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractJspBean
public class AbstractJspBean
Abstract class for jsp bean
| Field Summary | |
|---|---|
protected int |
_nItemsPerPage
|
protected static String |
ERROR_MESSAGE_KEY
|
protected static String |
ERROR_TEMPLATE
|
protected static String |
FIELD_MESSAGE_PREFIX
|
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
|
| Constructor Summary | |
|---|---|
AbstractJspBean()
|
|
| Method Summary | ||
|---|---|---|
protected
|
getAbstractDataTableManager(javax.servlet.http.HttpServletRequest request,
Object filter,
String keyDataTable,
String jspManage,
Object service,
Method findByFilter)
|
|
protected
|
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
|
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
|
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
|
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
|
validateBilletterie(T bean)
Validate a bean using jsr 303 specs. |
|
| Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean |
|---|
getPlugin, init |
| Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean |
|---|
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, populate, setFeatureIcon, setPageTitleProperty, validate, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int N_DEFAULT_ITEMS_PER_PAGE
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 PARAMETER_FIND_BY_FILTER_NAME_METHOD
protected int _nItemsPerPage
| Constructor Detail |
|---|
public AbstractJspBean()
| Method Detail |
|---|
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 table
protected <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 key
protected <T> void validateBilletterie(T bean)
throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
T - the bean typebean - to validate
fr.paris.lutece.plugins.stock.commons.exception.ValidationException - exception containing informations about
errors and the beanprotected String getMessage(String key)
key - i18n key
protected String getMessage(String key,
String... args)
key - i18n keyargs - args
protected fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException getErrorOnce(javax.servlet.http.HttpServletRequest request)
request - http request
protected String getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e)
e - functionnal exception
protected 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 url
protected <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 use
protected <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 beans
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)
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 beans
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||