|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.xacml3.AdviceExpression
public class AdviceExpression
Represents the AdviceExpressionType XML type in XACML. Advice are introduced with XACML 3
Constructor Summary | |
---|---|
AdviceExpression(URI adviceId,
int appliesTo,
List<AttributeAssignmentExpression> attributeAssignmentExpressions)
Constructor that takes all the data associated with an AdviceExpression . |
Method Summary | |
---|---|
void |
encode(StringBuilder builder)
Encodes this ObligationExpression into its XML form and writes this out to the provided
StringBuilder |
Advice |
evaluate(EvaluationCtx ctx)
return evaluation result of the advice expression |
URI |
getAdviceId()
returns advice id |
int |
getAppliesTo()
returns whether this is applied for permit or deny |
static AdviceExpression |
getInstance(Node root,
PolicyMetaData metaData)
Creates an instance of AdviceExpression based on the DOM root node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdviceExpression(URI adviceId, int appliesTo, List<AttributeAssignmentExpression> attributeAssignmentExpressions)
adviceId
- the advice's idappliesTo
- the effect for which this advice must be providedattributeAssignmentExpressions
- a List
of AttributeAssignmentExpression
sMethod Detail |
---|
public static AdviceExpression getInstance(Node root, PolicyMetaData metaData) throws ParsingException
AdviceExpression
based on the DOM root node.
root
- the DOM root of the AdviceExpressionType XML typemetaData
- policy meta data
AdviceExpression
ParsingException
- if the structure isn't validpublic int getAppliesTo()
public URI getAdviceId()
public Advice evaluate(EvaluationCtx ctx)
ctx
- EvaluationCtx
Advice
Objectpublic void encode(StringBuilder builder)
ObligationExpression
into its XML form and writes this out to the provided
StringBuilder
- Parameters:
builder
- string stream into which the XML-encoded data is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |