@Component(value="core.relationship") public class RelationshipRestRepository extends DSpaceRestRepository<RelationshipRest,Integer>
requestService, utils| Constructor and Description |
|---|
RelationshipRestRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected RelationshipRest |
createAndReturn(Context context,
List<String> stringList)
Method to implement to support the creation of a new instance.
|
protected void |
delete(Context context,
Integer id)
Method to implement to support delete of a single object instance
|
org.springframework.data.domain.Page<RelationshipRest> |
findAll(Context context,
org.springframework.data.domain.Pageable pageable)
Method to implement to support scroll of entity instances from the collection resource endpoin
|
RelationshipRest |
findOne(Context context,
Integer integer)
Method to implement to support retrieval of a specific REST object instance
|
Class<RelationshipRest> |
getDomainClass()
The REST model supported by the repository
|
DSpaceResource<RelationshipRest> |
wrapResource(RelationshipRest model,
String... rels)
Wrap the REST model in a REST HAL Resource
|
action, action, count, createAndReturn, createAndReturn, createAndReturn, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findOne, patch, patch, put, put, put, put, save, save, save, upload, upload, uploadgetRequestService, obtainContextpublic RelationshipRest findOne(Context context, Integer integer)
DSpaceRestRepositoryfindOne in class DSpaceRestRepository<RelationshipRest,Integer>context - the dspace contextinteger - the rest object idpublic org.springframework.data.domain.Page<RelationshipRest> findAll(Context context, org.springframework.data.domain.Pageable pageable)
DSpaceRestRepositoryfindAll in class DSpaceRestRepository<RelationshipRest,Integer>context - the dspace contextpageable - object embedding the requested pagination infopublic Class<RelationshipRest> getDomainClass()
DSpaceRestRepositorygetDomainClass in class DSpaceRestRepository<RelationshipRest,Integer>public DSpaceResource<RelationshipRest> wrapResource(RelationshipRest model, String... rels)
DSpaceRestRepositorywrapResource in class DSpaceRestRepository<RelationshipRest,Integer>model - the rest model instancerels - the HAL linksprotected RelationshipRest createAndReturn(Context context, List<String> stringList) throws AuthorizeException, SQLException, RepositoryMethodNotImplementedException
DSpaceRestRepositorycreateAndReturn in class DSpaceRestRepository<RelationshipRest,Integer>context - the dspace contextstringList - The list of Strings that will be used as data for the object that's to be created
This list is retrieved from the uri-list bodyAuthorizeExceptionSQLExceptionRepositoryMethodNotImplementedException - returned by the default implementation when the operation is not supported for the entityprotected void delete(Context context, Integer id) throws AuthorizeException
DSpaceRestRepositorydelete in class DSpaceRestRepository<RelationshipRest,Integer>context - the dspace contextid - the id of the rest object to deleteAuthorizeExceptionCopyright © 2019 DuraSpace. All rights reserved.