Package org.dspace.app.rest.repository
Class RegistrationRestRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.repository.DSpaceRestRepository<RegistrationRest,Integer>
-
- org.dspace.app.rest.repository.RegistrationRestRepository
-
- All Implemented Interfaces:
org.springframework.data.repository.CrudRepository<RegistrationRest,Integer>,org.springframework.data.repository.PagingAndSortingRepository<RegistrationRest,Integer>,org.springframework.data.repository.Repository<RegistrationRest,Integer>
@Component("eperson.registration") public class RegistrationRestRepository extends DSpaceRestRepository<RegistrationRest,Integer>This is the repository that is responsible for managing Registration Rest objects
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, utils
-
-
Constructor Summary
Constructors Constructor Description RegistrationRestRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistrationRestcreateAndReturn(org.dspace.core.Context context)Method to implement to support the creation of a new instance.org.springframework.data.domain.Page<RegistrationRest>findAll(org.dspace.core.Context context, org.springframework.data.domain.Pageable pageable)Method to implement to support scroll of entity instances from the collection resource endpointRegistrationRestfindByToken(String token)This method will find the RegistrationRest object that is associated with the token givenRegistrationRestfindOne(org.dspace.core.Context context, Integer integer)Method to implement to support retrieval of a specific REST object instanceClass<RegistrationRest>getDomainClass()The REST model supported by the repository-
Methods inherited from class org.dspace.app.rest.repository.DSpaceRestRepository
action, action, count, createAndReturn, createAndReturn, createAndReturn, createAndReturn, createAndReturn, delete, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAll, findAllById, findById, patch, patch, put, put, put, put, save, save, saveAll, upload, upload, upload
-
Methods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContext
-
-
-
-
Method Detail
-
findOne
public RegistrationRest findOne(org.dspace.core.Context context, Integer integer)
Description copied from class:DSpaceRestRepositoryMethod to implement to support retrieval of a specific REST object instance- Specified by:
findOnein classDSpaceRestRepository<RegistrationRest,Integer>- Parameters:
context- the dspace contextinteger- the rest object id- Returns:
- the REST object identified by its ID
-
findAll
public org.springframework.data.domain.Page<RegistrationRest> findAll(org.dspace.core.Context context, org.springframework.data.domain.Pageable pageable)
Description copied from class:DSpaceRestRepositoryMethod to implement to support scroll of entity instances from the collection resource endpoint- Specified by:
findAllin classDSpaceRestRepository<RegistrationRest,Integer>- Parameters:
context- the dspace contextpageable- object embedding the requested pagination info- Returns:
-
createAndReturn
public RegistrationRest createAndReturn(org.dspace.core.Context context)
Description copied from class:DSpaceRestRepositoryMethod to implement to support the creation of a new instance. Usually require to retrieve the http request from the thread bound attribute- Overrides:
createAndReturnin classDSpaceRestRepository<RegistrationRest,Integer>- Parameters:
context- the dspace context- Returns:
- the created REST object
-
getDomainClass
public Class<RegistrationRest> getDomainClass()
Description copied from class:DSpaceRestRepositoryThe REST model supported by the repository- Specified by:
getDomainClassin classDSpaceRestRepository<RegistrationRest,Integer>
-
findByToken
public RegistrationRest findByToken(String token) throws SQLException, org.dspace.authorize.AuthorizeException
This method will find the RegistrationRest object that is associated with the token given- Parameters:
token- The token to be found and for which a RegistrationRest object will be found- Returns:
- A RegistrationRest object for the given token
- Throws:
SQLException- If something goes wrongorg.dspace.authorize.AuthorizeException- If something goes wrong
-
-