Class PolicyImpl
java.lang.Object
ch.tocco.nice2.security.impl.PolicyImpl
- All Implemented Interfaces:
Policy, Serializable, Iterable<Rule>
Simple implementation of
Policy.
This is used to be an anonymous class in PolicyBuilderImpl, which caused
that the containing policy builder remained in memory even though it was no longer needed.- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRules()booleanisEmpty()iterator()subPolicy(Permission permission) Returns aPolicythat contains only rules that are relevant for the given permission.subPolicy(SecurityDomain securityDomain) Returns aPolicythat contains only rules that are relevant for the given domain.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
PolicyImpl
-
-
Method Details
-
isEmpty
-
getRules
-
subPolicy
-
subPolicy
-
iterator
-