Package ch.tocco.nice2.security.impl
Class RuleBuilderImpl
java.lang.Object
ch.tocco.nice2.security.impl.RuleImpl
ch.tocco.nice2.security.impl.RuleBuilderImpl
- All Implemented Interfaces:
Rule
,RuleBuilder
,Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class ch.tocco.nice2.security.impl.RuleImpl
annotations, condition, excludedSubjects, includedSubjects, isFinal, module, negative, permissions, selector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPermission
(Permission permission) addPermissions
(Collection<Permission> permissions) <T> RuleBuilder
excludeSubject
(Subject subject) excludeSubjects
(Collection<Subject> subjects) includeSubject
(Subject subject) includeSubjects
(Collection<Subject> subjects) removePermission
(Permission permission) removeSubject
(Subject subject) rule()
void
setAnnotations
(Map<Rule.Key<?>, Object> annotations) setCondition
(Node condition) setFinal
(boolean isFinal) setNegative
(boolean negative) setSelector
(Selector selector) Methods inherited from class ch.tocco.nice2.security.impl.RuleImpl
annotations, equals, getAnnotation, getCondition, getExcludedSubjects, getIncludedSubjects, getModule, getPermissions, getSelector, hashCode, isFinal, isNegative, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.security.api.Rule
annotations, getAnnotation, getCondition, getExcludedSubjects, getIncludedSubjects, getModule, getPermissions, getSelector, isFinal, isNegative
-
Constructor Details
-
RuleBuilderImpl
public RuleBuilderImpl()
-
-
Method Details
-
setSelector
- Specified by:
setSelector
in interfaceRuleBuilder
-
includeSubject
- Specified by:
includeSubject
in interfaceRuleBuilder
-
includeSubjects
- Specified by:
includeSubjects
in interfaceRuleBuilder
-
excludeSubject
- Specified by:
excludeSubject
in interfaceRuleBuilder
-
excludeSubjects
- Specified by:
excludeSubjects
in interfaceRuleBuilder
-
removeSubject
- Specified by:
removeSubject
in interfaceRuleBuilder
-
addPermission
- Specified by:
addPermission
in interfaceRuleBuilder
-
addPermissions
- Specified by:
addPermissions
in interfaceRuleBuilder
-
removePermission
- Specified by:
removePermission
in interfaceRuleBuilder
-
setNegative
- Specified by:
setNegative
in interfaceRuleBuilder
-
setFinal
- Specified by:
setFinal
in interfaceRuleBuilder
-
setCondition
- Specified by:
setCondition
in interfaceRuleBuilder
-
setModule
- Specified by:
setModule
in interfaceRuleBuilder
-
annotate
- Specified by:
annotate
in interfaceRuleBuilder
-
setAnnotations
-
rule
- Specified by:
rule
in interfaceRuleBuilder
-