Class PoolTaskRestRepository

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, 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 Details

    • PoolTaskRestRepository

      public PoolTaskRestRepository()
  • Method Details

    • findOne

      @PreAuthorize("hasPermission(#id, \'POOLTASK\', \'READ\')") public PoolTaskRest findOne(Context context, Integer id)
      Description copied from class: DSpaceRestRepository
      Method to implement to support retrieval of a specific REST object instance
      Specified by:
      findOne in class DSpaceRestRepository<PoolTaskRest,Integer>
      Parameters:
      context - the dspace context
      id - the rest object id
      Returns:
      the REST object identified by its ID
    • findByUser

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

      public Class<PoolTaskRest> getDomainClass()
      Description copied from class: DSpaceRestRepository
      The REST model supported by the repository
      Specified by:
      getDomainClass in class DSpaceRestRepository<PoolTaskRest,Integer>
    • 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)