|
||||||||||
| 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
| 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 java.lang.String |
getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
javax.servlet.http.HttpServletRequest request)
Return html code for error message. |
|
protected java.lang.String |
getMessage(java.lang.String key,
javax.servlet.http.HttpServletRequest request)
Return localized message. |
|
protected java.lang.String |
getMessage(java.lang.String key,
javax.servlet.http.HttpServletRequest request,
java.lang.String... args)
Return localized message with args. |
|
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 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 static void |
populate(java.lang.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 |
| Constructor Detail |
|---|
public AbstractXPageApp()
| Method Detail |
|---|
protected static void populate(java.lang.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 java.lang.String getMessage(java.lang.String key,
javax.servlet.http.HttpServletRequest request)
key - i18n keyrequest - the request
protected java.lang.String getMessage(java.lang.String key,
javax.servlet.http.HttpServletRequest request,
java.lang.String... args)
key - i18n keyrequest - the requestargs - args
protected java.lang.String getHtmlError(fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException e,
javax.servlet.http.HttpServletRequest request)
e - the erequest - the request
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
protected fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException getErrorOnce(javax.servlet.http.HttpServletRequest request)
request - http request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||