Package org.eclipse.ditto.model.things
Enum Permission
- java.lang.Object
-
- java.lang.Enum<Permission>
-
- org.eclipse.ditto.model.things.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 Summary
Enum Constants Enum Constant Description ADMINISTRATE
Deprecated.Permission to grant and revoke Permissions to other Authorization Subjects.READ
Deprecated.Permission to read an entity, for example a Thing.WRITE
Deprecated.Permission to write/change an entity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
allToString()
Deprecated.Returns all permissions concatenated as one String.org.eclipse.ditto.json.JsonKey
toJsonKey()
Deprecated.Returns this Permission constant asJsonKey
.static Permission
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static Permission[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- 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 asJsonKey
.- Returns:
- this Permission constant as known JSON key.
-
-