Enum Class RestrictedPagePolicy

java.lang.Object
java.lang.Enum<RestrictedPagePolicy>
org.ametys.web.pageaccess.RestrictedPagePolicy
All Implemented Interfaces:
Serializable, Comparable<RestrictedPagePolicy>, java.lang.constant.Constable

Per-site policy of rendering of restricted pages.
  • HIDDEN: restricted pages access will remain hidden for unauthorized front-office users. Technically, it means that the SitemapInputData and the Sitemap service will not generate SAX events for those pages. This implies that the cache is disabled for sites with this policy. Use it only for intranets or sites with less traffic.
  • DISPLAYED: restricted pages access will be displayed for everyone. When trying to go on one of these pages, an unauthorized user will get an AccessDeniedException. Technically, it means that the SitemapInputData and the Sitemap service will generate SAX events for those pages. Skins are then in charge of rendering restricted pages properly.
  • Enum Constant Details

  • Method Details

    • values

      public static RestrictedPagePolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RestrictedPagePolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null