public abstract class AdminFeaturesPageJspBean extends Object implements Serializable
Constructor and Description |
---|
AdminFeaturesPageJspBean() |
Modifier and Type | Method and Description |
---|---|
String |
getAdminPage(String strContent)
Get the admin page from a content data
|
String |
getFeatureIcon()
Returns the feature icon Url
|
String |
getHomeUrl(javax.servlet.http.HttpServletRequest request)
Returns the feature home Url
|
Locale |
getLocale()
Returns the Locale
|
String |
getPageTitle()
Get the page title
|
AdminUser |
getUser()
Returns the AdminUser
|
void |
init(javax.servlet.http.HttpServletRequest request,
String strRight)
Initialize the jspbean data Allows to set the feature url and feature title associated
|
void |
setFeatureGroup(String strFeatureGroup)
Sets the feature group
|
void |
setFeatureIcon(String strFeatureIcon)
Sets the feature icon url
|
void |
setPageTitleProperty(String strPageTitleKey)
Set the page title property
|
<T> Set<javax.validation.ConstraintViolation<T>> |
validate(T bean)
Validates a bean.
|
<T> List<ValidationError> |
validate(T bean,
String strFieldsKeyPrefix)
Validates a bean
|
<T> List<ValidationError> |
validate(T bean,
ValidationErrorConfig config)
Validates a bean
|
public void init(javax.servlet.http.HttpServletRequest request, String strRight) throws AccessDeniedException
request
- the HTTP requeststrRight
- The rightAccessDeniedException
- Access denied exceptionPasswordResetException
- Password reset exceptionpublic void setPageTitleProperty(String strPageTitleKey)
strPageTitleKey
- The page title propertypublic String getPageTitle()
public Locale getLocale()
public AdminUser getUser()
public String getHomeUrl(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic String getFeatureIcon()
public void setFeatureIcon(String strFeatureIcon)
strFeatureIcon
- the feature icon urlpublic void setFeatureGroup(String strFeatureGroup)
strFeatureGroup
- the feature grouppublic String getAdminPage(String strContent)
strContent
- the data to load in the admin pagepublic <T> Set<javax.validation.ConstraintViolation<T>> validate(T bean)
T
- the bean typebean
- the bean to validatepublic <T> List<ValidationError> validate(T bean, String strFieldsKeyPrefix)
T
- The bean typebean
- The bean to validatestrFieldsKeyPrefix
- The fields keys prefix in resources filespublic <T> List<ValidationError> validate(T bean, ValidationErrorConfig config)
T
- The bean typebean
- The bean to validateconfig
- The config for Error validation renderingCopyright © 2020 City of Paris. All rights reserved.