|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.MatchResult
public class MatchResult
This is used as the return value for the various target matching functions. It communicates that either the target matches the input request, the target doesn't match the input request, or the result is Indeterminate.
Field Summary | |
---|---|
static int |
INDETERMINATE
An integer value indicating the the result is Indeterminate |
static int |
MATCH
An integer value indicating the the target matches the request |
static int |
NO_MATCH
An integer value indicating that the target doesn't match the request |
Constructor Summary | |
---|---|
MatchResult(int result)
Constructor that creates a MatchResult with no Status |
|
MatchResult(int result,
Status status)
Constructor that creates a MatchResult , including Status data |
Method Summary | |
---|---|
String |
getActionPolicyValue()
|
String |
getEnvPolicyValue()
|
String |
getPolicyValue()
|
String |
getResourcePolicyValue()
|
int |
getResult()
Returns the applicable result |
Status |
getStatus()
Returns the status if there was an error, or null if no error occurred |
String |
getSubjectPolicyValue()
|
void |
setActionPolicyValue(String actionPolicyValue)
|
void |
setEnvPolicyValue(String envPolicyValue)
|
void |
setPolicyValue(String policyValue)
|
void |
setResourcePolicyValue(String resourcePolicyValue)
|
void |
setSubjectPolicyValue(String subjectPolicyValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MATCH
public static final int NO_MATCH
public static final int INDETERMINATE
Constructor Detail |
---|
public MatchResult(int result)
MatchResult
with no Status
result
- the applicable resultpublic MatchResult(int result, Status status) throws IllegalArgumentException
MatchResult
, including Status data
result
- the applicable resultstatus
- the error information
IllegalArgumentException
- if the input result isn't a valid valueMethod Detail |
---|
public String getSubjectPolicyValue()
public void setSubjectPolicyValue(String subjectPolicyValue)
public String getResourcePolicyValue()
public void setResourcePolicyValue(String resourcePolicyValue)
public String getActionPolicyValue()
public void setActionPolicyValue(String actionPolicyValue)
public String getEnvPolicyValue()
public void setEnvPolicyValue(String envPolicyValue)
public String getPolicyValue()
public void setPolicyValue(String policyValue)
public int getResult()
public Status getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |