Interface GeoServiceRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<GeoService,​String>, org.springframework.data.jpa.repository.JpaRepository<GeoService,​String>, org.springframework.data.repository.PagingAndSortingRepository<GeoService,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<GeoService>, org.springframework.data.repository.Repository<GeoService,​String>

    public interface GeoServiceRepository
    extends org.springframework.data.jpa.repository.JpaRepository<GeoService,​String>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<GeoService> findById​(String id)  
      List<GeoService> findByIds​(List<String> ids)
      Find multiple geo-services.
      List<GeoService> getAllExcludingIds​(List<String> ids)
      Find multiple geo-services except some.
      • 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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
      • 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 Detail

      • findById

        @NonNull
        @PreAuthorize("permitAll()")
        Optional<GeoService> findById​(@NonNull
                                      String id)
        Specified by:
        findById in interface org.springframework.data.repository.CrudRepository<GeoService,​String>
      • findByIds

        @NonNull
        @PreAuthorize("permitAll()")
        @Query("from GeoService s where id in :ids")
        List<GeoService> findByIds​(@Param("ids")
                                   List<String> ids)
        Find multiple geo-services. Example URL: /api/admin/geo-services/search/findByIds?ids=openbasiskaart&ids=at-basemap
        Parameters:
        ids - The ids to search for
        Returns:
        The geo services matching the ids
      • getAllExcludingIds

        @NonNull
        @PreAuthorize("permitAll()")
        @Query("from GeoService s where id not in :ids")
        List<GeoService> getAllExcludingIds​(@Param("ids")
                                            List<String> ids)
        Find multiple geo-services except some. Example URL: /api/admin/geo-services/search/getAllExcludingIds?ids=openbasiskaart&ids=at-basemap

        No geo services are returned if ids is an empty list.

        Parameters:
        ids - The ids not to include
        Returns:
        All geo services except those matching the ids