Class RemoteServiceImpl<Type extends IridaRepresentationModel & IridaThing>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected RemoteAPI getRemoteApiForURI​(java.lang.String uri)
      Convenience method for getting the RemoteAPI for a given string URI
      boolean getServiceStatus​(RemoteAPI remoteAPI)
      Get the status of the remote service
      java.util.List<Type> list​(java.lang.String uri, RemoteAPI remoteAPI)
      List the resources available from this service
      Type read​(java.lang.String uri)
      Read individual resource at the given URI.
      Type read​(java.lang.String uri, RemoteAPI remoteAPI)
      Read an individual resource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteServiceImpl

        public RemoteServiceImpl​(RemoteRepository<Type> repository,
                                 RemoteAPIRepository remoteAPIRepository)
        Create a new remote service that interacts with the given repository
        Parameters:
        repository - The RemoteRepository handling basic operations with the given Type
        remoteAPIRepository - repository for storing and retrieving RemoteAPIs