|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.stock.modules.billetterie.web.AbstractXPageApp
public abstract class AbstractXPageApp
Abstract class for jsp bean
| Field Summary | |
|---|---|
static String |
DEFAULT_PAGE_INDEX
|
static String |
DEFAULT_RESULTS_PER_PAGE
|
static String |
PARAMETER_NB_ITEMS_PER_PAGE
|
static String |
PROPERTY_RESULTS_PER_PAGE
|
| Constructor Summary | |
|---|---|
AbstractXPageApp()
|
|
| 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 String |
getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
javax.servlet.http.HttpServletRequest request)
Return html code for error message. |
|
protected String |
getMessage(String key,
javax.servlet.http.HttpServletRequest request)
Return localized message. |
|
protected String |
getMessage(String key,
javax.servlet.http.HttpServletRequest request,
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 fr.paris.lutece.portal.service.security.LuteceUser |
getUser(javax.servlet.http.HttpServletRequest request)
Return authified user and throw technical exception if no user auth found. |
|
protected String |
manageFunctionnalException(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
String targetUrl)
Manage functionnal exception. |
|
protected static void |
populate(Object bean,
javax.servlet.http.HttpServletRequest request)
Populate a bean using parameters in http request |
|
protected
|
validate(T bean)
Validate a bean using jsr 303 specs. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAMETER_NB_ITEMS_PER_PAGE
public static final String DEFAULT_RESULTS_PER_PAGE
public static final String DEFAULT_PAGE_INDEX
public static final String PROPERTY_RESULTS_PER_PAGE
| Constructor Detail |
|---|
public AbstractXPageApp()
| Method Detail |
|---|
protected static void populate(Object bean,
javax.servlet.http.HttpServletRequest request)
bean - bean to populaterequest - http request
protected <T> void validate(T bean)
throws fr.paris.lutece.plugins.stock.commons.exception.ValidationException
T - the generic typebean - to validate
fr.paris.lutece.plugins.stock.commons.exception.ValidationException - exception containing informations about
errors and the bean
protected fr.paris.lutece.portal.service.security.LuteceUser getUser(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.plugins.stock.commons.exception.TechnicalException
request - http request
fr.paris.lutece.plugins.stock.commons.exception.TechnicalException - the technical exception
protected String getMessage(String key,
javax.servlet.http.HttpServletRequest request)
key - i18n keyrequest - the request
protected String getMessage(String key,
javax.servlet.http.HttpServletRequest request,
String... args)
key - i18n keyrequest - the requestargs - args
protected String getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
javax.servlet.http.HttpServletRequest request)
e - the erequest - the request
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 fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException getErrorOnce(javax.servlet.http.HttpServletRequest request)
request - http request
protected fr.paris.lutece.plugins.stock.commons.dao.PaginationProperties getPaginationProperties(javax.servlet.http.HttpServletRequest request)
request - http request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||