Package ch.tocco.nice2.security.api
Interface Policy
- All Superinterfaces:
Iterable<Rule>
,Serializable
- All Known Subinterfaces:
PolicyBuilder
- All Known Implementing Classes:
PolicyBuilderImpl
,PolicyImpl
A set of rules.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRules()
boolean
isEmpty()
subPolicy
(Permission permission) Returns aPolicy
that contains only rules that are relevant for the given permission.subPolicy
(SecurityDomain permission) Returns aPolicy
that contains only rules that are relevant for the given domain.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
EMPTY
-
-
Method Details
-
isEmpty
boolean isEmpty() -
getRules
-
subPolicy
Returns aPolicy
that contains only rules that are relevant for the given permission. This policy may be cached internally and is more efficient than filtering rules manually. -
subPolicy
Returns aPolicy
that contains only rules that are relevant for the given domain. This policy may be cached internally and is more efficient than filtering rules manually.
-