Package org.ametys.web.pageaccess
Enum Class ContentAccessManager.ContentAccess
java.lang.Object
java.lang.Enum<ContentAccessManager.ContentAccess>
org.ametys.web.pageaccess.ContentAccessManager.ContentAccess
- All Implemented Interfaces:
Serializable
,Comparable<ContentAccessManager.ContentAccess>
,java.lang.constant.Constable
- Enclosing class:
- ContentAccessManager
public static enum ContentAccessManager.ContentAccess
extends Enum<ContentAccessManager.ContentAccess>
Enumeration representing a content access status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe content appears on pages with limited access, and the given user can access at least one.The content is available for anyconnected usersThe content appears on pages with limited access, but the given user can't access any.The content can be viewed by all users because of one of these reasons: it appears on a public page it doesn't appear on any page (orphan content) but its sitemap is freely accessible -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ContentAccessManager.ContentAccess[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNRESTRICTED
The content can be viewed by all users because of one of these reasons:- it appears on a public page
- it doesn't appear on any page (orphan content) but its sitemap is freely accessible
-
ANYCONNECTED_ALLOWED
The content is available for anyconnected users -
ALLOWED
The content appears on pages with limited access, and the given user can access at least one. -
FORBIDDEN
The content appears on pages with limited access, but the given user can't access any.
-
-
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
-