@Component(value="integration.authority") public class AuthorityRestRepository extends DSpaceRestRepository<AuthorityRest,String>
requestService, utils| Constructor and Description |
|---|
AuthorityRestRepository() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.domain.Page<AuthorityRest> |
findAll(Context context,
org.springframework.data.domain.Pageable pageable)
Method to implement to support scroll of entity instances from the collection resource endpoin
|
AuthorityRest |
findOne(Context context,
String name)
Method to implement to support retrieval of a specific REST object instance
|
Class<AuthorityRest> |
getDomainClass()
The REST model supported by the repository
|
AuthorityResource |
wrapResource(AuthorityRest model,
String... rels)
Wrap the REST model in a REST HAL Resource
|
action, action, count, createAndReturn, createAndReturn, createAndReturn, createAndReturn, delete, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findOne, patch, patch, put, put, put, put, save, save, save, upload, upload, uploadgetRequestService, obtainContext@PreAuthorize(value="hasAuthority(\'AUTHENTICATED\')") public AuthorityRest findOne(Context context, String name)
DSpaceRestRepositoryfindOne in class DSpaceRestRepository<AuthorityRest,String>context - the dspace contextname - the rest object id@PreAuthorize(value="hasAuthority(\'AUTHENTICATED\')") public org.springframework.data.domain.Page<AuthorityRest> findAll(Context context, org.springframework.data.domain.Pageable pageable)
DSpaceRestRepositoryfindAll in class DSpaceRestRepository<AuthorityRest,String>context - the dspace contextpageable - object embedding the requested pagination infopublic Class<AuthorityRest> getDomainClass()
DSpaceRestRepositorygetDomainClass in class DSpaceRestRepository<AuthorityRest,String>public AuthorityResource wrapResource(AuthorityRest model, String... rels)
DSpaceRestRepositorywrapResource in class DSpaceRestRepository<AuthorityRest,String>model - the rest model instancerels - the HAL linksCopyright © 2019 DuraSpace. All rights reserved.