@Component public class EPersonRestPermissionEvaluatorPlugin extends RestObjectPermissionEvaluatorPlugin
RestPermissionEvaluatorPlugin
implemenents that requirement.| Constructor and Description |
|---|
EPersonRestPermissionEvaluatorPlugin() |
| 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. |
boolean |
hasPatchPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Patch patch)
Checks permissions for
Patch requests. |
hasPermission, hasPermissionpublic EPersonRestPermissionEvaluatorPlugin()
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 objectpublic boolean hasPatchPermission(org.springframework.security.core.Authentication authentication,
Serializable targetId,
String targetType,
Patch patch)
RestObjectPermissionEvaluatorPluginPatch requests. Override the default implementation in
plugins that require this capability.hasPatchPermission 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 manipulatepatch - The Patch instanceCopyright © 2019 DuraSpace. All rights reserved.