Interface IntegrationRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Integration,Long>, org.springframework.data.jpa.repository.JpaRepository<Integration,Long>, org.springframework.data.repository.ListCrudRepository<Integration,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Integration,Long>, org.springframework.data.repository.PagingAndSortingRepository<Integration,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Integration>, org.springframework.data.repository.Repository<Integration,Long>

public interface IntegrationRepository extends org.springframework.data.jpa.repository.JpaRepository<Integration,Long>
Repository for persisting and querying Integration records.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds all integrations belonging to the given user.
    Finds an integration by user and iCalendar feed URL.
    Finds an integration by user and LMS provider.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllByUser

      List<Integration> findAllByUser(User user)
      Finds all integrations belonging to the given user.
      Parameters:
      user - the owning user
      Returns:
      integrations owned by the user
    • findByUserAndIcsUrl

      Integration findByUserAndIcsUrl(User user, String url)
      Finds an integration by user and iCalendar feed URL.
      Parameters:
      user - the owning user
      url - the iCalendar feed URL
      Returns:
      the matching integration, or null if not found
    • findByUserAndProvider

      Optional<Integration> findByUserAndProvider(User user, Integration.LMSProvider provider)
      Finds an integration by user and LMS provider.
      Parameters:
      user - the owning user
      provider - the LMS provider type
      Returns:
      an optional containing the matching integration, if found