|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Authorisation.Decision> com.atlassian.jira.security.auth.Authorisation.Decision
public static enum Authorisation.Decision
When deciding whether to authorise a request, you can either grant it, deny or abstain from a decision
Enum Constant Summary | |
---|---|
ABSTAIN
|
|
DENIED
|
|
GRANTED
|
Method Summary | |
---|---|
boolean |
toBoolean()
Helper to turn GRANTED into true and anything else into false This is turning tri-state logic into binary logic. |
static Authorisation.Decision |
toDecision(boolean answer)
Helper to turn boolean answers into GRANTED or DENIED |
static Authorisation.Decision |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Authorisation.Decision[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Authorisation.Decision GRANTED
public static final Authorisation.Decision DENIED
public static final Authorisation.Decision ABSTAIN
Method Detail |
---|
public static Authorisation.Decision[] values()
for (Authorisation.Decision c : Authorisation.Decision.values()) System.out.println(c);
public static Authorisation.Decision valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean toBoolean()
public static Authorisation.Decision toDecision(boolean answer)
answer
- the boolean answer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |