Enum PermissionKind

  • All Implemented Interfaces:
    Serializable, Comparable<PermissionKind>

    public enum PermissionKind
    extends Enum<PermissionKind>
    Indicates a permission is given to access a resource (e.g. query data) or to permit grating/revoking access to the resource to other users/roles.
    • Enum Constant Detail

      • ACCESS

        public static final PermissionKind ACCESS
        Indicates the related permission controls access to the resource.

        This flag generally corresponds to GRANT/REVOKE <permission> CQL statements.

      • AUTHORITY

        public static final PermissionKind AUTHORITY
        Indicates the related permission controls the authority to grant/revoke access the resource to other users.

        This flag generally corresponds to GRANT/REVOKE AUTHORIZE FOR CQL statements.

    • Method Detail

      • values

        public static PermissionKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PermissionKind c : PermissionKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PermissionKind valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null