public enum AuthorizationType extends Enum<AuthorizationType> implements IAuthorizationType<AuthorizationType>
Enum Constant and Description |
---|
ADD
Add (Insert), Read
|
APPROVE
Approve a workflow
|
BULK
Allow user to do Bulk/Batch Operations.
|
DELETE
Delete, Read
|
EDIT
Edit, Delete, Add, Read
|
EDIT_ONLY
Edit (update), Add, Read
|
INITIATE
Initiate a Workflow or Create something
|
READ |
REVIEW
Review a Workflow state
|
TERMINATE
Terminate a WorkFlow
|
Modifier and Type | Method and Description |
---|---|
IAuthorizationType |
contains(AuthorizationType authorizationType)
Checks this type & any contained types for equivalence.
|
int |
getMaxWeight()
If all the Authorization types available to this what is the max weight.
This must >=0 |
int |
getWeight()
Follows the ordnial of this enum.
|
static AuthorizationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationType READ
public static final AuthorizationType ADD
public static final AuthorizationType EDIT_ONLY
public static final AuthorizationType DELETE
public static final AuthorizationType EDIT
public static final AuthorizationType INITIATE
public static final AuthorizationType REVIEW
public static final AuthorizationType APPROVE
public static final AuthorizationType TERMINATE
public static final AuthorizationType BULK
public static AuthorizationType[] values()
for (AuthorizationType c : AuthorizationType.values()) System.out.println(c);
public static AuthorizationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic IAuthorizationType contains(AuthorizationType authorizationType)
IAuthorizationType
contains
in interface IAuthorizationType<AuthorizationType>
authorizationType
- as IAuthorizationType
IAuthorizationType
public int getWeight()
EDIT
getWeight
in interface IAuthorizationType<AuthorizationType>
public int getMaxWeight()
IAuthorizationType
getMaxWeight
in interface IAuthorizationType<AuthorizationType>
Copyright © 2018. All rights reserved.