Interface FeatureSourceRepository

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

public interface FeatureSourceRepository extends org.springframework.data.jpa.repository.JpaRepository<TMFeatureSource,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    Find multiple feature-sources except some.
    Find a feature-source by title.

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, 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

    • findByUrl

      TMFeatureSource findByUrl(String url)
    • findById

      @PreAuthorize("permitAll()") @NonNull Optional<TMFeatureSource> findById(@NonNull Long id)
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<TMFeatureSource,Long>
    • findByLinkedServiceId

      @PreAuthorize("permitAll()") List<TMFeatureSource> findByLinkedServiceId(String id)
    • findByIds

      @NonNull @PreAuthorize("permitAll()") @Query("from TMFeatureSource fs where id in :ids") List<TMFeatureSource> findByIds(@Param("ids") List<Long> ids)
    • getAllExcludingIds

      @NonNull @PreAuthorize("permitAll()") @Query("from TMFeatureSource fs where id not in :ids") List<TMFeatureSource> getAllExcludingIds(@Param("ids") List<Long> ids)
      Find multiple feature-sources except some. Example URL: /api/admin/feature-sources/search/getAllExcludingIds?ids=1,2,3

      No feature sources are returned if ids is an empty list.

      Parameters:
      ids - The ids not to include
      Returns:
      All feature sources except those matching the ids
    • getByTitle

      @PreAuthorize("permitAll()") Optional<TMFeatureSource> getByTitle(String title)
      Find a feature-source by title. This is a non-deterministic operation since the title is not unique. Useful for testing.
      Parameters:
      title - The title of the feature-source
      Returns:
      The feature-source