@Component public class AuthorizeServicePermissionEvaluatorPlugin extends RestObjectPermissionEvaluatorPlugin
AuthorizeService.
This service will validate if the authenticated user is allowed to perform an action on the given DSpace Object
based on the resource policies attached to that DSpace object.| Constructor and Description |
|---|
AuthorizeServicePermissionEvaluatorPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasDSpacePermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
DSpaceRestPermission permission)
Plugins must implement this method to receive
RestPermissionEvaluatorPlugin hasPermission
requests. |
hasPatchPermission, hasPermission, hasPermissionpublic AuthorizeServicePermissionEvaluatorPlugin()
public boolean hasDSpacePermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
DSpaceRestPermission permission)
RestObjectPermissionEvaluatorPluginRestPermissionEvaluatorPlugin hasPermission
requests.hasDSpacePermission in class RestObjectPermissionEvaluatorPluginauthentication - 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.