Package com.datahub.authorization
Enum AuthorizationResult.Type
- java.lang.Object
-
- java.lang.Enum<AuthorizationResult.Type>
-
- com.datahub.authorization.AuthorizationResult.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AuthorizationResult.Type>
- Enclosing class:
- AuthorizationResult
public static enum AuthorizationResult.Type extends java.lang.Enum<AuthorizationResult.Type>
The result type. Allow or deny the authorization request for the actor.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthorizationResult.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AuthorizationResult.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOW
public static final AuthorizationResult.Type ALLOW
Allow the request - the requested actor is privileged.
-
DENY
public static final AuthorizationResult.Type DENY
Deny the request - the requested actor is not privileged.
-
-
Method Detail
-
values
public static AuthorizationResult.Type[] 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 (AuthorizationResult.Type c : AuthorizationResult.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationResult.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-