M - the specific type of DSpaceObject.R - the corresponding DSpaceObjectRest.public abstract class DSpaceObjectRestRepository<M extends DSpaceObject,R extends DSpaceObjectRest> extends DSpaceRestRepository<R,UUID>
requestService, utils| Modifier and Type | Method and Description |
|---|---|
protected void |
patchDSpaceObject(String apiCategory,
String model,
UUID id,
Patch patch)
Updates the DSpaceObject according to the given Patch.
|
protected void |
updateDSpaceObject(M dso,
R dsoRest)
Applies the changes in the given rest DSpace object to the model DSpace object.
|
action, action, count, createAndReturn, createAndReturn, createAndReturn, createAndReturn, delete, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findAll, findOne, findOne, getDomainClass, patch, patch, put, put, put, put, save, save, save, upload, upload, upload, wrapResourcegetRequestService, obtainContextprotected void patchDSpaceObject(String apiCategory, String model, UUID id, Patch patch) throws AuthorizeException, org.springframework.data.rest.webmvc.ResourceNotFoundException, SQLException, UnprocessableEntityException
apiCategory - the api category.model - the api model.id - the id of the DSpaceObject.patch - the patch to apply.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.protected void updateDSpaceObject(M dso, R dsoRest) throws AuthorizeException, SQLException
dso - the dso to apply changes to.dsoRest - the rest representation of the new desired state.AuthorizeExceptionSQLExceptionCopyright © 2019 DuraSpace. All rights reserved.