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 enumPermission.Entitypublic enumPermission.Operationpublic classPermission.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Permission.Entityentityprivate final Permission.Operationoperationprivate final Stringnameprivate final Integerordinal
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description StringtoString()final Stringscope()Turn this permission into an OAuth scope name and return it. final PermissionvalueOf(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.EntitygetEntity()final Permission.OperationgetOperation()-
-
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()
-
-
-
-