Class AuthorizeServiceRestUtil


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

      • AuthorizeServiceRestUtil

        public AuthorizeServiceRestUtil()
    • Method Detail

      • authorizeActionBoolean

        public boolean authorizeActionBoolean​(org.dspace.core.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