Enum Class Permission.DataView

java.lang.Object
java.lang.Enum<Permission.DataView>
zeroecho.pki.server.Permission.DataView
All Implemented Interfaces:
Serializable, Comparable<Permission.DataView>, Constable
Enclosing class:
Permission

public static enum Permission.DataView extends Enum<Permission.DataView>
Explicitly separated disclosure and audit data views.
  • Enum Constant Details

    • METADATA_REDACTED

      public static final Permission.DataView METADATA_REDACTED
      Redacted non-sensitive metadata.
    • METADATA_FULL

      public static final Permission.DataView METADATA_FULL
      Complete metadata without content or personal data.
    • CONTENT_FULL

      public static final Permission.DataView CONTENT_FULL
      Complete object content.
    • PII_FULL

      public static final Permission.DataView PII_FULL
      Personal data.
  • Method Details

    • values

      public static Permission.DataView[] 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

      public static Permission.DataView valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public int code()
      Returns the stable persistence code.
      Returns:
      stable code
    • fromCode

      public static Permission.DataView fromCode(int code)
      Resolves a stable persistence code.
      Parameters:
      code - persisted data-view code
      Returns:
      corresponding data view
    • permits

      public boolean permits(Permission.DataView requested)
      Tests view sufficiency without merging content and PII authority.
      Parameters:
      requested - requested data view
      Returns:
      true when this view permits the requested view