|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder
nbi.xmlsec.xacml.builder.RuleBuilder
Class to create rule instances.
| Field Summary | |
(package private) Apply |
condition
condition for this Rule or null if there is no condition. |
(package private) int |
effect
effect that this Rule will return from the evaluate method (Permit or Deny) if the request applies. |
| Fields inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder |
description, identifier, target |
| Constructor Summary | |
RuleBuilder(URI identifier,
boolean permit)
Creates a rule builder with required elements. |
|
| Method Summary | |
PolicyTreeElement |
getInstance()
Creates an instance of the policy tree element built. |
void |
setCondition(Apply condition)
Sets the condition for this rule |
void |
setCondition(ConditionTypeBuilder condition)
Sets the condition for this rule |
void |
setEffect(boolean permit)
Sets the effect that this Rule will return from the evaluate method (Permit or Deny) if the request applies. |
| Methods inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder |
setDescription, setIdentifier, setIdentifier, setTarget, setTarget |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int effect
Apply condition
| Constructor Detail |
public RuleBuilder(URI identifier,
boolean permit)
identifier - rule identifier.permit - true, to set the effect to
PERMIT, false sets the effect
to DENY.| Method Detail |
public PolicyTreeElement getInstance()
AbstractPolicyTreeElementBuilder
getInstance in interface PolicyTreeElementBuildergetInstance in class AbstractPolicyTreeElementBuilderPolicyTreeElementBuilder.getInstance()public void setEffect(boolean permit)
permit - true, to set the effect to permit, false sets the effect to
deny.public void setCondition(Apply condition)
condition - The condition for this rule to set.public void setCondition(ConditionTypeBuilder condition)
condition - The condition for this rule to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||