Enum RestrictedPagePolicy

  • All Implemented Interfaces:
    Serializable, Comparable<RestrictedPagePolicy>

    public enum RestrictedPagePolicy
    extends Enum<RestrictedPagePolicy>
    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.
    • Method Detail

      • values

        public static RestrictedPagePolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RestrictedPagePolicy c : RestrictedPagePolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RestrictedPagePolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null