Package org.dspace.app.rest.security
Class QAEventRestPermissionEvaluatorPlugin
java.lang.Object
org.dspace.app.rest.security.RestObjectPermissionEvaluatorPlugin
org.dspace.app.rest.security.QAEventRestPermissionEvaluatorPlugin
- All Implemented Interfaces:
RestPermissionEvaluatorPlugin
@Component
public class QAEventRestPermissionEvaluatorPlugin
extends RestObjectPermissionEvaluatorPlugin
This class will handle Permissions for the
QAEventRest object and its calls- Author:
- Andrea Bollini (4Science)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasDSpacePermission(Authentication authentication, Serializable targetId, String targetType, DSpaceRestPermission restPermission) Responsible for checking whether or not the user has access to the requested QASourceMethods inherited from class org.dspace.app.rest.security.RestObjectPermissionEvaluatorPlugin
hasPatchPermission, hasPermission, hasPermission
-
Constructor Details
-
QAEventRestPermissionEvaluatorPlugin
public QAEventRestPermissionEvaluatorPlugin()
-
-
Method Details
-
hasDSpacePermission
public boolean hasDSpacePermission(Authentication authentication, Serializable targetId, String targetType, DSpaceRestPermission restPermission) Responsible for checking whether or not the user has access to the requested QASource- Specified by:
hasDSpacePermissionin classRestObjectPermissionEvaluatorPlugin- Parameters:
targetType- the type of Rest Object that should be checked for permission. This class would deal only with qaeventtargetId- string to extract the sourcename fromauthentication- Authentication object providing user details of the authenticated userrestPermission- Permission object that describes the action the user wants to perform on the target object- Returns:
- true if the user is allowed to perform the action described by the permission. False otherwise.
-