Class EntityTypeRestRepository

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

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

    • EntityTypeRestRepository

      public EntityTypeRestRepository()
  • Method Details

    • findOne

      @PreAuthorize("permitAll()") public EntityTypeRest findOne(Context context, Integer integer)
      Description copied from class: DSpaceRestRepository
      Method to implement to support retrieval of a specific REST object instance
      Specified by:
      findOne in class DSpaceRestRepository<EntityTypeRest,Integer>
      Parameters:
      context - the dspace context
      integer - the rest object id
      Returns:
      the REST object identified by its ID
    • 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:
    • getDomainClass

      public Class<EntityTypeRest> getDomainClass()
      Description copied from class: DSpaceRestRepository
      The REST model supported by the repository
      Specified by:
      getDomainClass in class DSpaceRestRepository<EntityTypeRest,Integer>