fr.paris.lutece.portal.web.admin
Class AdminFeaturesPageJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AdminDashboardJspBean, AdminMapJspBean, AdminPageJspBean, AdminPagePortletJspBean, AdminUserJspBean, AdminWorkgroupJspBean, AttributeFieldJspBean, AttributeJspBean, CacheJspBean, DashboardJspBean, ExtendableResourceJspBean, FeaturesGroupJspBean, InsertServiceSelectorJspBean, LevelsJspBean, MailingListJspBean, ModesJspBean, PageTemplatesJspBean, PluginAdminPageJspBean, PluginJspBean, PortletJspBean, RightJspBean, RoleJspBean, RoleManagementJspBean, SearchIndexationJspBean, SearchJspBean, StyleSheetJspBean, StylesJspBean, SystemJspBean, ThemesJspBean

public abstract class AdminFeaturesPageJspBean
extends Object
implements Serializable

Provides generic methods for jspBeans

See Also:
Serialized Form

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
<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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminFeaturesPageJspBean

public AdminFeaturesPageJspBean()
Method Detail

init

public void init(javax.servlet.http.HttpServletRequest request,
                 String strRight)
          throws AccessDeniedException,
                 PasswordResetException
Initialize the jspbean data Allows to set the feature url and feature title associated

Parameters:
request - the HTTP request
strRight - The right
Throws:
AccessDeniedException - Access denied exception
PasswordResetException - Password reset exception

setPageTitleProperty

public void setPageTitleProperty(String strPageTitleKey)
Set the page title property

Parameters:
strPageTitleKey - The page title property

getPageTitle

public String getPageTitle()
Get the page title

Returns:
The page title

getLocale

public Locale getLocale()
Returns the Locale

Returns:
The Locale

getUser

public AdminUser getUser()
Returns the AdminUser

Returns:
The AdminUser

getHomeUrl

public String getHomeUrl(javax.servlet.http.HttpServletRequest request)
Returns the feature home Url

Parameters:
request - The HTTP request
Returns:
The feature home Url

getFeatureIcon

public String getFeatureIcon()
Returns the feature icon Url

Returns:
The feature icon Url

setFeatureIcon

public void setFeatureIcon(String strFeatureIcon)
Sets the feature icon url

Parameters:
strFeatureIcon - the feature icon url

getAdminPage

public String getAdminPage(String strContent)
Get the admin page from a content data

Parameters:
strContent - the data to load in the admin page
Returns:
the html code for the admin page for the given content

populate

protected void populate(Object bean,
                        javax.servlet.http.HttpServletRequest request)
Populate a bean using parameters in http request

Parameters:
bean - bean to populate
request - http request

validate

public <T> Set<javax.validation.ConstraintViolation<T>> validate(T bean)
Validates a bean.

Type Parameters:
T - the bean type
Parameters:
bean - the bean to validate
Returns:
the sets of constraints that has been violated

validate

public <T> List<ValidationError> validate(T bean,
                                          String strFieldsKeyPrefix)
Validates a bean

Type Parameters:
T - The bean type
Parameters:
bean - The bean to validate
strFieldsKeyPrefix - The fields keys prefix in resources files
Returns:
The error list

validate

public <T> List<ValidationError> validate(T bean,
                                          ValidationErrorConfig config)
Validates a bean

Type Parameters:
T - The bean type
Parameters:
bean - The bean to validate
config - The config for Error validation rendering
Returns:
The error list


Copyright © 2014 Mairie de Paris. All Rights Reserved.