- All Implemented Interfaces:
Fields inherited from class ch.tocco.nice2.persist.security.impl.provider.AbstractEntitySecurityDomain
permissionEvaluator, queryCompiler, securityManager
Method SummaryModifier and TypeMethodDescriptionThis method should group all secured objects, which can be evaluated together in a
ListGuard, and return a list of these groups.
protected EntityModelOnly use one guard instance per security context and model.Create a selector factory.
Methods inherited from class ch.tocco.nice2.persist.security.impl.provider.AbstractEntitySecurityDomain
Methods inherited from class ch.tocco.nice2.persist.security.impl.provider.GuardCachingSecurityDomain
aggregateSupportedObjectsDescription copied from interface:
SecurityDomainThis method should group all secured objects, which can be evaluated together in a
ListGuard, and return a list of these groups. This means all objects in a sub-list must require the same policy, (every object in the list would select the same rules of a policy, see
SecurityDomain.getSelectorFactory()). Secured objects that are not supported by this domain at all should not be returned from this method. If none of the objects are supported, an empty list should be returned.
getSelectorFactorypublic SelectorFactory getSelectorFactory()Description copied from interface:
SecurityDomainCreate a selector factory. A selector factory is an object which creates selectors. There is no interface as the arguments defined in the policy will be matched to factory methods using reflection. The contract for the object returned by this method is as follows:
It specify several methods called
createSelectorwith the return type
Selector. It may take any number of arguments. Supported argument types are all Java primitives, String, enumerations and arrays of enumerations. The last argument may be an array, which indicates varargs. Wildcards will be passed as
null. The methods may throw an
- The selector factory.
createCacheKeyOnly use one guard instance per security context and model.