@Component public class DSpacePermissionEvaluator extends Object implements org.springframework.security.access.PermissionEvaluator
| Constructor and Description |
|---|
DSpacePermissionEvaluator() |
| 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)
Alternative method for evaluating a permission where only the identifier of the
target object is available, rather than the target instance itself.
|
public boolean hasPermission(org.springframework.security.core.Authentication authentication,
Object targetDomainObject,
Object permission)
hasPermission in interface org.springframework.security.access.PermissionEvaluatorauthentication - represents the user in question. Should not be null.targetDomainObject - the DSpace object for which permissions should be
checked. May be null in which case implementations should return false, as the null
condition can be checked explicitly in the expression.permission - a representation of the DSpace action as supplied by the
expression system. This corresponds to the DSpace action. Not null.public boolean hasPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Object permission)
hasPermission in interface org.springframework.security.access.PermissionEvaluatorauthentication - represents the user in question. Should not be null.targetId - the UUID for the DSpace objecttargetType - represents the DSpace object type of the target object. Not null.permission - a representation of the permission object as supplied by the
expression system. This corresponds to the DSpace action. Not null.Copyright © 2019 DuraSpace. All rights reserved.