Enum Permission

  • All Implemented Interfaces:
    Serializable, Comparable<Permission>

    @Deprecated
    @Immutable
    public enum Permission
    extends Enum<Permission>
    Deprecated.
    Permissions belong to deprecated API version 1. Use API version 2 with policies instead.
    An enumeration of the available Permissions of Ditto.
    • Enum Constant Detail

      • READ

        public static final Permission READ
        Deprecated.
        Permission to read an entity, for example a Thing.
      • WRITE

        public static final Permission WRITE
        Deprecated.
        Permission to write/change an entity.
      • ADMINISTRATE

        public static final Permission ADMINISTRATE
        Deprecated.
        Permission to grant and revoke Permissions to other Authorization Subjects.
    • Method Detail

      • values

        public static Permission[] values()
        Deprecated.
        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 (Permission c : Permission.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Permission valueOf​(String name)
        Deprecated.
        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
      • allToString

        public static String allToString()
        Deprecated.
        Returns all permissions concatenated as one String. The result is composed using the delimiter ", ", the prefix "<" and the suffix ">".
        Returns:
        all permissions of this enum as one String.
      • toJsonKey

        public org.eclipse.ditto.json.JsonKey toJsonKey()
        Deprecated.
        Returns this Permission constant as JsonKey.
        Returns:
        this Permission constant as known JSON key.