Package org.dspace.app.rest.repository
Class SubmissionFormRestRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.repository.DSpaceRestRepository<SubmissionFormRest,String>
-
- org.dspace.app.rest.repository.SubmissionFormRestRepository
-
- All Implemented Interfaces:
org.springframework.data.repository.CrudRepository<SubmissionFormRest,String>,org.springframework.data.repository.PagingAndSortingRepository<SubmissionFormRest,String>,org.springframework.data.repository.Repository<SubmissionFormRest,String>
@Component("config.submissionform") public class SubmissionFormRestRepository extends DSpaceRestRepository<SubmissionFormRest,String>This is the repository responsible to manage InputForm Rest object- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description SubmissionFormRestRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<SubmissionFormRest>findAll(Context context, org.springframework.data.domain.Pageable pageable)Method to implement to support scroll of entity instances from the collection resource endpointSubmissionFormRestfindOne(Context context, String submitName)Method to implement to support retrieval of a specific REST object instanceClass<SubmissionFormRest>getDomainClass()The REST model supported by the repositoryvoidreload()Reload the current Submission Form configuration based on the currently supported locales.-
Methods inherited from class org.dspace.app.rest.repository.DSpaceRestRepository
action, action, count, createAndReturn, 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
-
-
-
-
Constructor Detail
-
SubmissionFormRestRepository
public SubmissionFormRestRepository() throws DCInputsReaderException- Throws:
DCInputsReaderException
-
-
Method Detail
-
findOne
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public SubmissionFormRest findOne(Context context, String submitName)Description copied from class:DSpaceRestRepositoryMethod to implement to support retrieval of a specific REST object instance- Specified by:
findOnein classDSpaceRestRepository<SubmissionFormRest,String>- Parameters:
context- the dspace contextsubmitName- the rest object id- Returns:
- the REST object identified by its ID
-
findAll
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public org.springframework.data.domain.Page<SubmissionFormRest> 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<SubmissionFormRest,String>- Parameters:
context- the dspace contextpageable- object embedding the requested pagination info- Returns:
-
getDomainClass
public Class<SubmissionFormRest> getDomainClass()
Description copied from class:DSpaceRestRepositoryThe REST model supported by the repository- Specified by:
getDomainClassin classDSpaceRestRepository<SubmissionFormRest,String>
-
reload
public void reload() throws DCInputsReaderExceptionReload the current Submission Form configuration based on the currently supported locales. This method can be used to force a reload if the configured supported locales change.- Throws:
DCInputsReaderException
-
-