@Component(value="eperson.group") public class GroupRestRepository extends DSpaceObjectRestRepository<Group,GroupRest>
requestService, utils| Modifier and Type | Method and Description |
|---|---|
protected GroupRest |
createAndReturn(Context context)
Method to implement to support the creation of a new instance.
|
org.springframework.data.domain.Page<GroupRest> |
findAll(Context context,
org.springframework.data.domain.Pageable pageable)
Method to implement to support scroll of entity instances from the collection resource endpoin
|
GroupRest |
findOne(Context context,
UUID id)
Method to implement to support retrieval of a specific REST object instance
|
Class<GroupRest> |
getDomainClass()
The REST model supported by the repository
|
protected void |
patch(Context context,
javax.servlet.http.HttpServletRequest request,
String apiCategory,
String model,
UUID id,
Patch patch)
Method to implement to allow partial update of the REST object via JSON Patch
|
GroupResource |
wrapResource(GroupRest eperson,
String... rels)
Wrap the REST model in a REST HAL Resource
|
patchDSpaceObject, updateDSpaceObjectaction, action, count, createAndReturn, createAndReturn, createAndReturn, delete, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findOne, patch, put, put, put, put, save, save, save, upload, upload, uploadgetRequestService, obtainContext@PreAuthorize(value="hasAuthority(\'ADMIN\')") protected GroupRest createAndReturn(Context context) throws AuthorizeException, RepositoryMethodNotImplementedException
DSpaceRestRepositorycreateAndReturn in class DSpaceRestRepository<GroupRest,UUID>context - the dspace contextAuthorizeExceptionRepositoryMethodNotImplementedException - returned by the default implementation when the operation is not supported for the entity@PreAuthorize(value="hasPermission(#id, \'GROUP\', \'READ\')") public GroupRest findOne(Context context, UUID id)
DSpaceRestRepositoryfindOne in class DSpaceRestRepository<GroupRest,UUID>context - the dspace contextid - the rest object id@PreAuthorize(value="hasAuthority(\'ADMIN\')") public org.springframework.data.domain.Page<GroupRest> findAll(Context context, org.springframework.data.domain.Pageable pageable)
DSpaceRestRepositoryfindAll in class DSpaceRestRepository<GroupRest,UUID>context - the dspace contextpageable - object embedding the requested pagination info@PreAuthorize(value="hasPermission(#id, \'GROUP\', \'WRITE\')") protected void patch(Context context, javax.servlet.http.HttpServletRequest request, String apiCategory, String model, UUID id, Patch patch) throws AuthorizeException, SQLException
DSpaceRestRepositorypatch in class DSpaceRestRepository<GroupRest,UUID>request - the http requestid - the ID of the target REST objectpatch - the JSON Patch (https://tools.ietf.org/html/rfc6902) operationAuthorizeExceptionSQLExceptionpublic Class<GroupRest> getDomainClass()
DSpaceRestRepositorygetDomainClass in class DSpaceRestRepository<GroupRest,UUID>public GroupResource wrapResource(GroupRest eperson, String... rels)
DSpaceRestRepositorywrapResource in class DSpaceRestRepository<GroupRest,UUID>eperson - the rest model instancerels - the HAL linksCopyright © 2019 DuraSpace. All rights reserved.