Class VocabularyRestRepository

  • All Implemented Interfaces:
    org.springframework.data.repository.CrudRepository<VocabularyRest,​String>, org.springframework.data.repository.PagingAndSortingRepository<VocabularyRest,​String>, org.springframework.data.repository.Repository<VocabularyRest,​String>

    @Component("submission.vocabulary")
    public class VocabularyRestRepository
    extends DSpaceRestRepository<VocabularyRest,​String>
    Controller for exposition of vocabularies for the submission
    Author:
    Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it), Andrea Bollini (andrea.bollini at 4science.it)
    • Constructor Detail

      • VocabularyRestRepository

        public VocabularyRestRepository()
    • Method Detail

      • findOne

        @PreAuthorize("hasAuthority(\'AUTHENTICATED\')")
        public VocabularyRest findOne​(org.dspace.core.Context context,
                                      String name)
        Description copied from class: DSpaceRestRepository
        Method to implement to support retrieval of a specific REST object instance
        Specified by:
        findOne in class DSpaceRestRepository<VocabularyRest,​String>
        Parameters:
        context - the dspace context
        name - the rest object id
        Returns:
        the REST object identified by its ID
      • findAll

        @PreAuthorize("hasAuthority(\'AUTHENTICATED\')")
        public org.springframework.data.domain.Page<VocabularyRest> findAll​(org.dspace.core.Context context,
                                                                            org.springframework.data.domain.Pageable pageable)
        Description copied from class: DSpaceRestRepository
        Method to implement to support scroll of entity instances from the collection resource endpoint
        Specified by:
        findAll in class DSpaceRestRepository<VocabularyRest,​String>
        Parameters:
        context - the dspace context
        pageable - object embedding the requested pagination info
        Returns:
      • findByMetadataAndCollection

        @PreAuthorize("hasAuthority(\'AUTHENTICATED\')")
        public VocabularyRest findByMetadataAndCollection​(String metadataField,
                                                          UUID collectionUuid)