|
||||||||||
| 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 static java.lang.String |
ERROR_MESSAGE_KEY
|
protected static java.lang.String |
ERROR_TEMPLATE
|
protected static java.lang.String |
FIELD_MESSAGE_PREFIX
|
protected static java.lang.String |
MARK_FILTER
|
protected static java.lang.String |
MARK_MESSAGE_LIST
|
protected static java.lang.String |
MARK_NB_ITEMS_PER_PAGE
|
protected static java.lang.String |
MARK_PAGINATOR
|
static int |
N_DEFAULT_ITEMS_PER_PAGE
|
| Constructor Summary | |
|---|---|
AbstractJspBean()
|
|
| Method Summary | ||
|---|---|---|
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 java.lang.String |
getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e)
Return html code for error message |
|
protected java.lang.String |
getMessage(java.lang.String key)
Return localized message |
|
protected java.lang.String |
getMessage(java.lang.String key,
java.lang.String... args)
Return localized message with args |
|
protected fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties |
getPaginationProperties(javax.servlet.http.HttpServletRequest request)
Return a bean for pagination in service/dao using parameter in http request |
|
protected
|
getPaginator(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.plugins.stock.commons.ResultList<T> list)
Return a paginator for the view using parameter in http request. |
|
protected java.lang.String |
manageFunctionnalException(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
java.lang.String targetUrl)
Manage functionnal exception. |
|
protected
|
validate(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 |
| 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 java.lang.String ERROR_MESSAGE_KEY
protected static final java.lang.String ERROR_TEMPLATE
protected static final java.lang.String FIELD_MESSAGE_PREFIX
protected static final java.lang.String MARK_FILTER
protected static final java.lang.String MARK_MESSAGE_LIST
protected static final java.lang.String MARK_NB_ITEMS_PER_PAGE
protected static final java.lang.String MARK_PAGINATOR
| Constructor Detail |
|---|
public AbstractJspBean()
| Method Detail |
|---|
protected <T> fr.paris.lutece.util.html.DelegatePaginator<T> getPaginator(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.plugins.stock.commons.ResultList<T> list)
T - the generic typerequest - http requestlist - bean list to paginate
protected fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties getPaginationProperties(javax.servlet.http.HttpServletRequest request)
request - http request
protected <T> void validate(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 java.lang.String getMessage(java.lang.String key)
key - i18n key
protected java.lang.String getMessage(java.lang.String key,
java.lang.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 java.lang.String getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e)
e - functionnal exception
protected java.lang.String manageFunctionnalException(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
java.lang.String targetUrl)
request - the requeste - the etargetUrl - the target url
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||