Class AdminFeaturesPageJspBean

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAdminPage​(java.lang.String strContent)
      Get the admin page from a content data
      java.lang.String getAdminPage​(java.lang.String strContent, java.util.List<BreadcrumbItem> listBreadcrumbs)
      Get the admin page from a content data, with breadcrumbs displayed in the header between the feature title and the page title
      java.lang.String getFeatureIcon()
      Returns the feature icon Url
      java.lang.String getHomeUrl​(javax.servlet.http.HttpServletRequest request)
      Returns the feature home Url
      java.util.Locale getLocale()
      Returns the Locale
      java.lang.String getPageTitle()
      Get the page title
      AdminUser getUser()
      Returns the AdminUser
      void init​(javax.servlet.http.HttpServletRequest request, java.lang.String strRight)
      Initialize the jspbean data Allows to set the feature url and feature title associated
      void setFeatureGroup​(java.lang.String strFeatureGroup)
      Sets the feature group
      void setFeatureIcon​(java.lang.String strFeatureIcon)
      Sets the feature icon url
      void setPageTitleProperty​(java.lang.String strPageTitleKey)
      Set the page title property
      <T> java.util.Set<javax.validation.ConstraintViolation<T>> validate​(T bean)
      Validates a bean.
      <T> java.util.List<ValidationError> validate​(T bean, ValidationErrorConfig config)
      Validates a bean
      <T> java.util.List<ValidationError> validate​(T bean, java.lang.String strFieldsKeyPrefix)
      Validates a bean
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdminFeaturesPageJspBean

        public AdminFeaturesPageJspBean()
    • Method Detail

      • init

        public void init​(javax.servlet.http.HttpServletRequest request,
                         java.lang.String strRight)
                  throws AccessDeniedException
        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​(java.lang.String strPageTitleKey)
        Set the page title property
        Parameters:
        strPageTitleKey - The page title property
      • getPageTitle

        public java.lang.String getPageTitle()
        Get the page title
        Returns:
        The page title
      • getLocale

        public java.util.Locale getLocale()
        Returns the Locale
        Returns:
        The Locale
      • getUser

        public AdminUser getUser()
        Returns the AdminUser
        Returns:
        The AdminUser
      • getHomeUrl

        public java.lang.String getHomeUrl​(javax.servlet.http.HttpServletRequest request)
        Returns the feature home Url
        Parameters:
        request - The HTTP request
        Returns:
        The feature home Url
      • getFeatureIcon

        public java.lang.String getFeatureIcon()
        Returns the feature icon Url
        Returns:
        The feature icon Url
      • setFeatureIcon

        public void setFeatureIcon​(java.lang.String strFeatureIcon)
        Sets the feature icon url
        Parameters:
        strFeatureIcon - the feature icon url
      • setFeatureGroup

        public void setFeatureGroup​(java.lang.String strFeatureGroup)
        Sets the feature group
        Parameters:
        strFeatureGroup - the feature group
      • getAdminPage

        public java.lang.String getAdminPage​(java.lang.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
      • getAdminPage

        public java.lang.String getAdminPage​(java.lang.String strContent,
                                             java.util.List<BreadcrumbItem> listBreadcrumbs)
        Get the admin page from a content data, with breadcrumbs displayed in the header between the feature title and the page title
        Parameters:
        strContent - the data to load in the admin page
        listBreadcrumbs - the ancestors of the page, from the closest to the feature to the closest to the page. If null or empty, the header only displays the feature title and the page title
        Returns:
        the html code for the admin page for the given content
      • validate

        public <T> java.util.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> java.util.List<ValidationError> validate​(T bean,
                                                            java.lang.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> java.util.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