Class PoolTaskRestRepository

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean, org.springframework.data.repository.CrudRepository<PoolTaskRest,​Integer>, org.springframework.data.repository.PagingAndSortingRepository<PoolTaskRest,​Integer>, org.springframework.data.repository.Repository<PoolTaskRest,​Integer>

    @Component("workflow.pooltask")
    public class PoolTaskRestRepository
    extends DSpaceRestRepository<PoolTaskRest,​Integer>
    implements org.springframework.beans.factory.InitializingBean
    This is the repository responsible to manage PooledTask Rest object
    Author:
    Andrea Bollini (andrea.bollini at 4science.it)
    • Constructor Detail

      • PoolTaskRestRepository

        public PoolTaskRestRepository()
    • Method Detail

      • findByUser

        public org.springframework.data.domain.Page<PoolTaskRest> findByUser​(UUID userID,
                                                                             org.springframework.data.domain.Pageable pageable)
      • findAll

        public org.springframework.data.domain.Page<PoolTaskRest> findAll​(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<PoolTaskRest,​Integer>
        Parameters:
        context - the dspace context
        pageable - object embedding the requested pagination info
        Returns:
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • findAllByItem

        @PreAuthorize("hasAuthority(\'ADMIN\')")
        public org.springframework.data.domain.Page<PoolTaskRest> findAllByItem​(UUID itemUUID,
                                                                                org.springframework.data.domain.Pageable pageable)
      • findByItem

        @PreAuthorize("hasAuthority(\'AUTHENTICATED\')")
        public PoolTaskRest findByItem​(UUID itemUUID)