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 TypeMethodDescriptionfindAllByUser(User user) Finds all integrations belonging to the given user.findByUserAndIcsUrl(User user, String url) Finds an integration by user and iCalendar feed URL.findByUserAndProvider(User user, Integration.LMSProvider provider) 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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAllByUser
Finds all integrations belonging to the given user.- Parameters:
user- the owning user- Returns:
- integrations owned by the user
-
findByUserAndIcsUrl
Finds an integration by user and iCalendar feed URL.- Parameters:
user- the owning userurl- the iCalendar feed URL- Returns:
- the matching integration, or
nullif not found
-
findByUserAndProvider
Finds an integration by user and LMS provider.- Parameters:
user- the owning userprovider- the LMS provider type- Returns:
- an optional containing the matching integration, if found
-