Package org.dspace.app.rest
Class SubmissionCCLicenseUrlRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.DSpaceRestRepository<SubmissionCCLicenseUrlRest,String>
org.dspace.app.rest.SubmissionCCLicenseUrlRepository
- All Implemented Interfaces:
Aware,BeanNameAware,InitializingBean,org.springframework.data.repository.CrudRepository<SubmissionCCLicenseUrlRest,,String> org.springframework.data.repository.PagingAndSortingRepository<SubmissionCCLicenseUrlRest,,String> org.springframework.data.repository.Repository<SubmissionCCLicenseUrlRest,String>
@Component("config.submissioncclicenseUrls")
public class SubmissionCCLicenseUrlRepository
extends DSpaceRestRepository<SubmissionCCLicenseUrlRest,String>
implements InitializingBean
This Repository is responsible for handling the CC License URIs.
It only supports a search method
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConverterServiceprotected CreativeCommonsServiceprotected RequestServiceprotected Utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.data.domain.Page<SubmissionCCLicenseUrlRest>The findAll method is not supported in this repositoryRetrieves the CC License URI based on the license ID and answers in the field questions, provided as parameters to this requestThe findOne method is not supported in this repositoryThe REST model supported by the repositoryMethods inherited from class org.dspace.app.rest.repository.DSpaceRestRepository
action, action, count, createAndReturn, createAndReturn, createAndReturn, createAndReturn, createAndReturn, createAndReturn, delete, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAll, findAll, findAllById, findById, patch, patch, put, put, put, put, save, save, saveAll, setBeanName, upload, upload, uploadMethods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContext
-
Field Details
-
utils
-
creativeCommonsService
-
converter
-
requestService
-
-
Constructor Details
-
SubmissionCCLicenseUrlRepository
public SubmissionCCLicenseUrlRepository()
-
-
Method Details
-
findByRightsByQuestions
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public SubmissionCCLicenseUrlRest findByRightsByQuestions()Retrieves the CC License URI based on the license ID and answers in the field questions, provided as parameters to this request- Returns:
- the CC License URI as a SubmissionCCLicenseUrlRest
-
findOne
The findOne method is not supported in this repository- Specified by:
findOnein classDSpaceRestRepository<SubmissionCCLicenseUrlRest,String> - Parameters:
context- the dspace contexts- the rest object id- Returns:
- the REST object identified by its ID
-
findAll
public org.springframework.data.domain.Page<SubmissionCCLicenseUrlRest> findAll(Context context, org.springframework.data.domain.Pageable pageable) The findAll method is not supported in this repository- Specified by:
findAllin classDSpaceRestRepository<SubmissionCCLicenseUrlRest,String> - Parameters:
context- the dspace contextpageable- object embedding the requested pagination info- Returns:
-
getDomainClass
Description copied from class:DSpaceRestRepositoryThe REST model supported by the repository- Specified by:
getDomainClassin classDSpaceRestRepository<SubmissionCCLicenseUrlRest,String>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-