|
||||||||||
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
public abstract class AdminFeaturesPageJspBean
Provides generic methods for jspBeans
Constructor Summary | |
---|---|
AdminFeaturesPageJspBean()
|
Method Summary | ||
---|---|---|
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 |
|
protected void |
populate(Object bean,
javax.servlet.http.HttpServletRequest request)
Populate a bean using parameters in http request |
|
void |
setFeatureIcon(String strFeatureIcon)
Sets the feature icon url |
|
void |
setPageTitleProperty(String strPageTitleKey)
Set the page title property |
|
|
validate(T bean)
Validates a bean. |
|
|
validate(T bean,
String strFieldsKeyPrefix)
Validates a bean |
|
|
validate(T bean,
ValidationErrorConfig config)
Validates a bean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminFeaturesPageJspBean()
Method Detail |
---|
public void init(javax.servlet.http.HttpServletRequest request, String strRight) throws AccessDeniedException, PasswordResetException
request
- the HTTP requeststrRight
- The right
AccessDeniedException
- Access denied exception
PasswordResetException
- 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 request
public String getFeatureIcon()
public void setFeatureIcon(String strFeatureIcon)
strFeatureIcon
- the feature icon urlpublic String getAdminPage(String strContent)
strContent
- the data to load in the admin page
protected void populate(Object bean, javax.servlet.http.HttpServletRequest request)
bean
- bean to populaterequest
- http requestpublic <T> Set<javax.validation.ConstraintViolation<T>> validate(T bean)
T
- the bean typebean
- the bean to validate
public <T> List<ValidationError> validate(T bean, String strFieldsKeyPrefix)
T
- The bean typebean
- The bean to validatestrFieldsKeyPrefix
- The fields keys prefix in resources files
public <T> List<ValidationError> validate(T bean, ValidationErrorConfig config)
T
- The bean typebean
- The bean to validateconfig
- The config for Error validation rendering
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |