Package org.radarbase.auth.authorization
Enum Permission
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum Permission extends Enum<Permission>
Class to represent the different permissions in the RADAR platform. A permission has an entity and an operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Permission.Entity
public enum
Permission.Operation
public class
Permission.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Permission.Entity
entity
private final Permission.Operation
operation
private final String
name
private final Integer
ordinal
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description String
toString()
final String
scope()
Turn this permission into an OAuth scope name and return it. final Permission
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<Permission>
values()
Returns an array containing the constants of this enum type, in the order they're declared. final Permission.Entity
getEntity()
final Permission.Operation
getOperation()
-
-
Method Detail
-
valueOf
final Permission valueOf(String value)
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.)
-
values
final Array<Permission> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntity
final Permission.Entity getEntity()
-
getOperation
final Permission.Operation getOperation()
-
-
-
-