Class DSpaceObjectRestRepository<M extends DSpaceObject,​R extends DSpaceObjectRest>

    • Method Detail

      • patchDSpaceObject

        protected void patchDSpaceObject​(String apiCategory,
                                         String model,
                                         UUID id,
                                         Patch patch)
                                  throws AuthorizeException,
                                         org.springframework.data.rest.webmvc.ResourceNotFoundException,
                                         SQLException,
                                         UnprocessableEntityException
        Updates the DSpaceObject according to the given Patch.
        Parameters:
        apiCategory - the api category.
        model - the api model.
        id - the id of the DSpaceObject.
        patch - the patch to apply.
        Throws:
        AuthorizeException - if the action is unauthorized.
        org.springframework.data.rest.webmvc.ResourceNotFoundException - if the DSpace object was not found.
        SQLException - if a database error occurs.
        UnprocessableEntityException - if the patch attempts to modify an unmodifiable attribute of the object.