Package org.ametys.web.pageaccess
Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RestrictedPagePolicy
Returns the enum constant of this class with the specified name.static RestrictedPagePolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIDDEN
Restricted pages access will remain hidden for unauthorized front-office users. -
DISPLAYED
Restricted pages access will be displayed for everyone.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-