public class LemonPermissionEvaluator
extends java.lang.Object
implements org.springframework.security.access.PermissionEvaluator
| Constructor and Description |
|---|
LemonPermissionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(org.springframework.security.core.Authentication auth,
java.lang.Object targetDomainObject,
java.lang.Object permission)
Called by Spring Security to evaluate the permission
|
boolean |
hasPermission(org.springframework.security.core.Authentication authentication,
java.io.Serializable targetId,
java.lang.String targetType,
java.lang.Object permission)
We need to override this method as well.
|
public boolean hasPermission(org.springframework.security.core.Authentication auth,
java.lang.Object targetDomainObject,
java.lang.Object permission)
hasPermission in interface org.springframework.security.access.PermissionEvaluatorauth - Spring Security authentication object,
from which the current-user can be foundtargetDomainObject - Object for which permission is being checkedpermission - What permission is being checked for, e.g. 'edit'public boolean hasPermission(org.springframework.security.core.Authentication authentication,
java.io.Serializable targetId,
java.lang.String targetType,
java.lang.Object permission)
hasPermission in interface org.springframework.security.access.PermissionEvaluator