Enum Class DisclosureService.Policy
- All Implemented Interfaces:
Serializable, Comparable<DisclosureService.Policy>, Constable
- Enclosing class:
DisclosureService
Persisted disclosure states, independent of issuance and publication.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny authenticated non-public principal may retrieve content.Content must not be served.Only the owner or an administrator may retrieve content.Content is publicly retrievable and may be listed.Content is public only through a point-addressable bearer.Only explicitly authorized administrators may retrieve content. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the stable persistence code.static DisclosureService.PolicyfromCode(int code) Resolves a stable persistence code.static DisclosureService.PolicyReturns the enum constant of this class with the specified name.static DisclosureService.Policy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
Content is publicly retrievable and may be listed. -
PUBLIC_UNLISTED
Content is public only through a point-addressable bearer. -
AUTHENTICATED
Any authenticated non-public principal may retrieve content. -
OWNER_ONLY
Only the owner or an administrator may retrieve content. -
RESTRICTED
Only explicitly authorized administrators may retrieve content. -
NOT_PUBLISHED
Content must not be served.
-
-
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
-
code
public int code()Returns the stable persistence code.- Returns:
- encoded value
-
fromCode
Resolves a stable persistence code.- Parameters:
code- persisted disclosure-policy code- Returns:
- corresponding disclosure policy
-