Class AuthorizeServiceRestUtil

java.lang.Object
org.dspace.app.rest.authorization.AuthorizeServiceRestUtil

@Component public class AuthorizeServiceRestUtil extends Object
This class is a wrapper around the AuthorizationService which takes Rest objects instead of dspace objects
  • Constructor Details

    • AuthorizeServiceRestUtil

      public AuthorizeServiceRestUtil()
  • Method Details

    • authorizeActionBoolean

      public boolean authorizeActionBoolean(Context context, BaseObjectRest object, DSpaceRestPermission dSpaceRestPermission) throws SQLException
      Checks that the specified eperson can perform the given action on the rest given object.
      Parameters:
      context - DSpace context
      object - The Rest object to test the action against
      dSpaceRestPermission - The permission to check
      Returns:
      A boolean indicating if the action is allowed by the logged in ePerson on the given object
      Throws:
      SQLException