public class Result
extends java.lang.Object
Result class contains the result of calling the
isAccessAllowed method on an AccessDecision.
Instances are ABSTAIN, DENY, and
PERMIT.| Modifier and Type | Field | Description |
|---|---|---|
static Result |
ABSTAIN |
Indicates that the Access Decision can not determine
whether the request should be permitted or denied.
|
static int |
ABSTAIN_VALUE |
|
static Result |
DENY |
Indicates that the Access Decision has decided that
the request should be denied.
|
static int |
DENY_VALUE |
|
static Result |
PERMIT |
Indicates that the Access Decision has decided that
the request should be permitted.
|
static int |
PERMIT_VALUE |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
int |
getEnumValue() |
Returns the enumeration value for this
Result |
boolean |
isAbstain() |
Determines if this result indicates an abstain decision
|
boolean |
isDeny() |
Determines if this result indicates a deny decision
|
boolean |
isPermit() |
Determines if this result indicates a permit decision
|
Result |
narrow() |
Converts this Result value to an exact instance of Result and not an instance
of any Result derived class, if necessary.
|
java.lang.String |
toString() |
Returns this
Result, represented as a String. |
public static final int ABSTAIN_VALUE
public static final int DENY_VALUE
public static final int PERMIT_VALUE
public static final Result ABSTAIN
public static final Result DENY
public static final Result PERMIT
public java.lang.String toString()
Result, represented as a String.toString in class java.lang.ObjectResult, represented as a String.public int getEnumValue()
ResultResultpublic boolean isAbstain()
public boolean isDeny()
public boolean isPermit()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic Result narrow()
AdjudicationProvider and AdjudicationProviderV2
can fail if instances of a Result derived class are presented.