Package fr.paris.lutece.portal.web.admin
Class AdminFeaturesPageJspBean
java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdminDashboardJspBean,AdminMapJspBean,AdminPageJspBean,AdminPagePortletJspBean,AdminUserJspBean,AdminWorkgroupJspBean,AttributeFieldJspBean,AttributeJspBean,CacheJspBean,DaemonsJspBean,DashboardJspBean,ExtendableResourceJspBean,ExternalFeaturesJspBean,FeaturesGroupJspBean,InsertServiceSelectorJspBean,LevelsJspBean,MailingListJspBean,PageTemplatesJspBean,PluginAdminPageJspBean,PluginJspBean,PortletJspBean,RightJspBean,RoleJspBean,RoleManagementJspBean,SearchIndexationJspBean,SearchJspBean,SystemJspBean
Provides generic methods for jspBeans
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdminPage(String strContent) Get the admin page from a content dataReturns the feature icon UrlgetHomeUrl(jakarta.servlet.http.HttpServletRequest request) Returns the feature home UrlReturns the LocaleGet the page titleReturns the SecurityTokenService instance by privileging direct injection.getUser()Returns the AdminUservoidInitialize the jspbean data Allows to set the feature url and feature title associatedvoidsetFeatureGroup(String strFeatureGroup) Sets the feature groupvoidsetFeatureIcon(String strFeatureIcon) Sets the feature icon urlvoidsetPageTitleProperty(String strPageTitleKey) Set the page title property<T> Set<jakarta.validation.ConstraintViolation<T>>validate(T bean) Validates a bean.<T> List<ValidationError>validate(T bean, ValidationErrorConfig config) Validates a bean<T> List<ValidationError>Validates a bean
-
Constructor Details
-
AdminFeaturesPageJspBean
public AdminFeaturesPageJspBean()
-
-
Method Details
-
init
public void init(jakarta.servlet.http.HttpServletRequest request, String strRight) throws AccessDeniedException Initialize the jspbean data Allows to set the feature url and feature title associated- Parameters:
request- the HTTP requeststrRight- The right- Throws:
AccessDeniedException- Access denied exceptionPasswordResetException- Password reset exception
-
setPageTitleProperty
Set the page title property- Parameters:
strPageTitleKey- The page title property
-
getPageTitle
Get the page title- Returns:
- The page title
-
getLocale
Returns the Locale- Returns:
- The Locale
-
getUser
Returns the AdminUser- Returns:
- The AdminUser
-
getHomeUrl
Returns the feature home Url- Parameters:
request- The HTTP request- Returns:
- The feature home Url
-
getFeatureIcon
Returns the feature icon Url- Returns:
- The feature icon Url
-
setFeatureIcon
Sets the feature icon url- Parameters:
strFeatureIcon- the feature icon url
-
setFeatureGroup
Sets the feature group- Parameters:
strFeatureGroup- the feature group
-
getAdminPage
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
-
getSecurityTokenService
Returns the SecurityTokenService instance by privileging direct injection. Used during complete transition do CDI XPages.- Returns:
- the SecurityTokenService instance
-
validate
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
Validates a bean- Type Parameters:
T- The bean type- Parameters:
bean- The bean to validatestrFieldsKeyPrefix- The fields keys prefix in resources files- Returns:
- The error list
-
validate
Validates a bean- Type Parameters:
T- The bean type- Parameters:
bean- The bean to validateconfig- The config for Error validation rendering- Returns:
- The error list
-