public class AffirmativeBasedCompositePermissionEvaluator
extends org.springframework.security.acls.AclPermissionEvaluator
implements org.springframework.security.access.PermissionEvaluator
That class is itself a PermissionEvaluator and can register extra evaluators to check against. Those extra evaluators must be available as OSGI services.
Whenever requested this class will in turn test each extra evaluators, then itself, as long as the answer is false. If at least one of the evaluator grants the access,
granted the access will be (hence the prefix AffirmativeBased).
| Constructor and Description |
|---|
AffirmativeBasedCompositePermissionEvaluator(org.springframework.security.acls.model.AclService aclService,
Collection<ExtraPermissionEvaluator> delegates) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(org.springframework.security.core.Authentication authentication,
Object targetDomainObject,
Object permission) |
boolean |
hasPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Object permission) |
public AffirmativeBasedCompositePermissionEvaluator(org.springframework.security.acls.model.AclService aclService,
Collection<ExtraPermissionEvaluator> delegates)
public boolean hasPermission(org.springframework.security.core.Authentication authentication,
Object targetDomainObject,
Object permission)
hasPermission in interface org.springframework.security.access.PermissionEvaluatorhasPermission in class org.springframework.security.acls.AclPermissionEvaluatorpublic boolean hasPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Object permission)
hasPermission in interface org.springframework.security.access.PermissionEvaluatorhasPermission in class org.springframework.security.acls.AclPermissionEvaluatorCopyright © 2010–2017 Henix, henix.fr. All rights reserved.