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:
org.springframework.beans.factory.InitializingBean,org.springframework.data.repository.CrudRepository<SubmissionCCLicenseUrlRest,String>,org.springframework.data.repository.PagingAndSortingRepository<SubmissionCCLicenseUrlRest,String>,org.springframework.data.repository.Repository<SubmissionCCLicenseUrlRest,String>
@Component("config.submissioncclicenseUrl") public class SubmissionCCLicenseUrlRepository extends DSpaceRestRepository<SubmissionCCLicenseUrlRest,String> implements org.springframework.beans.factory.InitializingBeanThis Repository is responsible for handling the CC License URIs. It only supports a search method
-
-
Field Summary
Fields Modifier and Type Field Description protected ConverterServiceconverterprotected org.dspace.license.service.CreativeCommonsServicecreativeCommonsServiceprotected RequestServicerequestServiceprotected Utilsutils
-
Constructor Summary
Constructors Constructor Description SubmissionCCLicenseUrlRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.springframework.data.domain.Page<SubmissionCCLicenseUrlRest>findAll(org.dspace.core.Context context, org.springframework.data.domain.Pageable pageable)The findAll method is not supported in this repositorySubmissionCCLicenseUrlRestfindByRightsByQuestions()Retrieves the CC License URI based on the license ID and answers in the field questions, provided as parameters to this requestSubmissionCCLicenseUrlRestfindOne(org.dspace.core.Context context, String s)The findOne method is not supported in this repositoryClass<SubmissionCCLicenseUrlRest>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, 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
-
-
-
-
Field Detail
-
utils
@Autowired protected Utils utils
-
creativeCommonsService
@Autowired protected org.dspace.license.service.CreativeCommonsService creativeCommonsService
-
converter
@Autowired protected ConverterService converter
-
requestService
protected RequestService requestService
-
-
Method Detail
-
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
@PreAuthorize("permitAll()") public SubmissionCCLicenseUrlRest findOne(org.dspace.core.Context context, String s)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(org.dspace.core.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
public Class<SubmissionCCLicenseUrlRest> 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 interfaceorg.springframework.beans.factory.InitializingBean
-
-