Package org.dspace.app.rest.repository
Class FeedbackRestRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.repository.DSpaceRestRepository<FeedbackRest,Integer>
-
- org.dspace.app.rest.repository.FeedbackRestRepository
-
- All Implemented Interfaces:
org.springframework.data.repository.CrudRepository<FeedbackRest,Integer>,org.springframework.data.repository.PagingAndSortingRepository<FeedbackRest,Integer>,org.springframework.data.repository.Repository<FeedbackRest,Integer>
@Component("tools.feedback") public class FeedbackRestRepository extends DSpaceRestRepository<FeedbackRest,Integer>This is the Repository that takes care of the operations on theFeedbackRestobjects- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description FeedbackRestRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FeedbackRestcreateAndReturn(Context context)Method to implement to support the creation of a new instance.org.springframework.data.domain.Page<FeedbackRest>findAll(Context context, org.springframework.data.domain.Pageable pageable)Method to implement to support scroll of entity instances from the collection resource endpointFeedbackRestfindOne(Context context, Integer id)Method to implement to support retrieval of a specific REST object instanceClass<FeedbackRest>getDomainClass()The REST model supported by the repositoryFeedbackServicegetFeedbackService()voidsetFeedbackService(FeedbackService feedbackService)-
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
-
findAll
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public org.springframework.data.domain.Page<FeedbackRest> findAll(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<FeedbackRest,Integer>- Parameters:
context- the dspace contextpageable- object embedding the requested pagination info- Returns:
-
findOne
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public FeedbackRest findOne(Context context, Integer id)Description copied from class:DSpaceRestRepositoryMethod to implement to support retrieval of a specific REST object instance- Specified by:
findOnein classDSpaceRestRepository<FeedbackRest,Integer>- Parameters:
context- the dspace contextid- the rest object id- Returns:
- the REST object identified by its ID
-
createAndReturn
@PreAuthorize("permitAll()") protected FeedbackRest createAndReturn(Context context) throws AuthorizeException, SQLExceptionDescription 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<FeedbackRest,Integer>- Parameters:
context- the dspace context- Returns:
- the created REST object
- Throws:
AuthorizeExceptionSQLException
-
getDomainClass
public Class<FeedbackRest> getDomainClass()
Description copied from class:DSpaceRestRepositoryThe REST model supported by the repository- Specified by:
getDomainClassin classDSpaceRestRepository<FeedbackRest,Integer>
-
getFeedbackService
public FeedbackService getFeedbackService()
-
setFeedbackService
public void setFeedbackService(FeedbackService feedbackService)
-
-