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 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:
      hasDSpacePermission in class RestObjectPermissionEvaluatorPlugin
      Parameters:
      targetType - the type of Rest Object that should be checked for permission. This class would deal only with qaevent
      targetId - string to extract the sourcename from
      authentication - Authentication object providing user details of the authenticated user
      restPermission - 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.