public interface RestPermissionEvaluatorPlugin
PermissionEvaluator
implementation DSpacePermissionEvaluator to check if an authenticated user has permission to perform a
certain action on a certain object.
If you implement a this interface in a Spring bean, it will be automatically taken into account when evaluating
permissions.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(org.springframework.security.core.Authentication authentication,
Object targetDomainObject,
Object permission)
Check in the authenticated user (provided by the
Authentication object) has the specified permission on
the provided target object. |
boolean |
hasPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Object permission)
Check in the authenticated user (provided by the
Authentication object) has the specified permission on
the target object with the provided identifier. |
boolean hasPermission(org.springframework.security.core.Authentication authentication,
Object targetDomainObject,
Object permission)
Authentication object) has the specified permission on
the provided target object.authentication - Authentication object providing user details of the authenticated usertargetDomainObject - The target object that the authenticated user wants to see or manipulatepermission - Permission object that describes the action the user wants to perform on the target objectboolean hasPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Object permission)
Authentication object) has the specified permission on
the target object with the provided identifier.authentication - Authentication object providing user details of the authenticated usertargetId - Unique identifier of the target object the user wants to view or manipulatetargetType - Type of the target object the users wants to view or manipulatepermission - Permission object that describes the action the user wants to perform on the target objectCopyright © 2019 DuraSpace. All rights reserved.