@Component(value="core.site") public class SiteRestRepository extends DSpaceObjectRestRepository<Site,SiteRest>
requestService, utils| Constructor and Description |
|---|
SiteRestRepository(SiteService dsoService,
SiteConverter dsoConverter) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.domain.Page<SiteRest> |
findAll(Context context,
org.springframework.data.domain.Pageable pageable)
Method to implement to support scroll of entity instances from the collection resource endpoin
|
SiteRest |
findOne(Context context,
UUID id)
Method to implement to support retrieval of a specific REST object instance
|
Class<SiteRest> |
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
|
SiteResource |
wrapResource(SiteRest site,
String... rels)
Wrap the REST model in a REST HAL Resource
|
patchDSpaceObject, updateDSpaceObjectaction, action, count, createAndReturn, 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@Autowired public SiteRestRepository(SiteService dsoService, SiteConverter dsoConverter)
public SiteRest findOne(Context context, UUID id)
DSpaceRestRepositoryfindOne in class DSpaceRestRepository<SiteRest,UUID>context - the dspace contextid - the rest object idpublic org.springframework.data.domain.Page<SiteRest> findAll(Context context, org.springframework.data.domain.Pageable pageable)
DSpaceRestRepositoryfindAll in class DSpaceRestRepository<SiteRest,UUID>context - the dspace contextpageable - object embedding the requested pagination info@PreAuthorize(value="hasAuthority(\'ADMIN\')") 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<SiteRest,UUID>request - the http requestid - the ID of the target REST objectpatch - the JSON Patch (https://tools.ietf.org/html/rfc6902) operationAuthorizeExceptionSQLExceptionpublic Class<SiteRest> getDomainClass()
DSpaceRestRepositorygetDomainClass in class DSpaceRestRepository<SiteRest,UUID>public SiteResource wrapResource(SiteRest site, String... rels)
DSpaceRestRepositorywrapResource in class DSpaceRestRepository<SiteRest,UUID>site - the rest model instancerels - the HAL linksCopyright © 2019 DuraSpace. All rights reserved.