Class EntityTypeRestRepository

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

    @Component("core.entitytype")
    public class EntityTypeRestRepository
    extends DSpaceRestRepository<EntityTypeRest,​Integer>
    This is the repository that is responsible to manage EntityType Rest objects
    • Constructor Detail

      • EntityTypeRestRepository

        public EntityTypeRestRepository()
    • Method Detail

      • findAll

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

        public org.springframework.data.domain.Page<EntityTypeRest> findAllByAuthorizedCollection​(org.springframework.data.domain.Pageable pageable)
        Retrieves all entity types related to the collections on which the current user can deposit.
        Parameters:
        pageable - The pagination information
        Returns:
      • findAllByAuthorizedExternalSource

        public org.springframework.data.domain.Page<EntityTypeRest> findAllByAuthorizedExternalSource​(org.springframework.data.domain.Pageable pageable)
        Retrieves all entity types related to the collections on which the current user can deposit and supported by External provider
        Parameters:
        pageable - The pagination information
        Returns: