Package ch.tocco.nice2.security.api
Interface PolicyBuilder
- All Superinterfaces:
Iterable<Rule>
,Policy
,Serializable
- All Known Implementing Classes:
PolicyBuilderImpl
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionappendRule
(Rule rule) Add a rule at the policy's endclear()
newRuleBuilder
(Rule rule) policy()
prependRule
(Rule rule) Prepend a rule to the policy's startprependRules
(Collection<? extends Rule> rules) removeRule
(Rule rule) Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
appendRule
Add a rule at the policy's end- Parameters:
rule
- the rule to be added- Returns:
- PolicyBuilder
-
prependRule
Prepend a rule to the policy's start- Parameters:
rule
- the rule to be prepended- Returns:
- PolicyBuilder
-
prependRules
-
removeRule
-
clear
PolicyBuilder clear() -
newRuleBuilder
RuleBuilder newRuleBuilder() -
newRuleBuilder
-
policy
Policy policy()
-