Interface RemoteAPIRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<RemoteAPI,​java.lang.Long>, IridaJpaRepository<RemoteAPI,​java.lang.Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<RemoteAPI>, org.springframework.data.repository.PagingAndSortingRepository<RemoteAPI,​java.lang.Long>, org.springframework.data.repository.Repository<RemoteAPI,​java.lang.Long>, org.springframework.data.repository.history.RevisionRepository<RemoteAPI,​java.lang.Long,​java.lang.Integer>

    public interface RemoteAPIRepository
    extends IridaJpaRepository<RemoteAPI,​java.lang.Long>
    A repository to store RemoteAPI instances that this IRIDA instance can connect to
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RemoteAPI getRemoteAPIForUrl​(java.lang.String url)
      Find the RemoteAPI where the serviceURI is a substring of the given URL
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

        count, exists, findAll, findAll, findAll, findOne
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll, findAll
      • Methods inherited from interface org.springframework.data.repository.history.RevisionRepository

        findLastChangeRevision, findRevision, findRevisions, findRevisions
    • Method Detail

      • getRemoteAPIForUrl

        @Query("FROM RemoteAPI api WHERE locate(api.serviceURI, ?1) = 1")
        RemoteAPI getRemoteAPIForUrl​(java.lang.String url)
        Find the RemoteAPI where the serviceURI is a substring of the given URL
        Parameters:
        url - The URL to test
        Returns:
        The RemoteAPI matching the given URL