Enum Class Permission.DataView
- All Implemented Interfaces:
Serializable, Comparable<Permission.DataView>, Constable
- Enclosing class:
Permission
Explicitly separated disclosure and audit data views.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionComplete object content.Complete metadata without content or personal data.Redacted non-sensitive metadata.Personal data. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the stable persistence code.static Permission.DataViewfromCode(int code) Resolves a stable persistence code.booleanpermits(Permission.DataView requested) Tests view sufficiency without merging content and PII authority.static Permission.DataViewReturns the enum constant of this class with the specified name.static Permission.DataView[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
METADATA_REDACTED
Redacted non-sensitive metadata. -
METADATA_FULL
Complete metadata without content or personal data. -
CONTENT_FULL
Complete object content. -
PII_FULL
Personal data.
-
-
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:
- stable code
-
fromCode
Resolves a stable persistence code.- Parameters:
code- persisted data-view code- Returns:
- corresponding data view
-
permits
Tests view sufficiency without merging content and PII authority.- Parameters:
requested- requested data view- Returns:
truewhen this view permits the requested view
-