|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder nbi.xmlsec.xacml.builder.AbstractPolicyBuilder nbi.xmlsec.xacml.builder.PolicyBuilder
Class to create policy instances.
Field Summary |
Fields inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyBuilder |
combiningAlg, defaultVersion, logger, obligations, treeElements |
Fields inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder |
description, identifier, target |
Constructor Summary | |
PolicyBuilder(URI identifier,
RuleCombiningAlgorithm combAlg)
Creates a policy builder. |
Method Summary | |
boolean |
add(Rule rule)
Adds a rule to this policy. |
boolean |
add(RuleBuilder rule)
Adds a rule to this policy. |
PolicyTreeElement |
getInstance()
Creates a a new policy instance. |
boolean |
remove(Rule rule)
Removes a rule from this policy. |
void |
setRules(List rules)
Sets the treeElements of this policy. |
Methods inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyBuilder |
add, add, add, add, remove, remove, setCombiningAlg, setCombiningAlg, setCombiningAlg, setDefaultVersion, setObligations, setTreeElements |
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 |
Constructor Detail |
public PolicyBuilder(URI identifier, RuleCombiningAlgorithm combAlg)
identifier
- rule identifier.combAlg
- Rule combining Algorithm (DenyOverridesRuleAlg
, FirstApplicableRuleAlg
or PermitOverridesRuleAlg
).Method Detail |
public PolicyTreeElement getInstance()
getInstance
in interface PolicyTreeElementBuilder
getInstance
in class AbstractPolicyTreeElementBuilder
PolicyTreeElementBuilder.getInstance()
public boolean add(Rule rule)
rule
- The rule to add.
public boolean add(RuleBuilder rule)
rule
- The rule element to add.
public boolean remove(Rule rule)
rule
- The rule to remove.
public void setRules(List rules)
rules
- The rules to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |