Interface RemoteService<Type extends IridaRepresentationModel & IridaThing>

    • Method Detail

      • read

        Type read​(java.lang.String uri,
                  RemoteAPI remoteAPI)
        Read an individual resource
        Parameters:
        uri - The URI of the resource to read
        remoteAPI - the API to read from
        Returns:
        An object of Type
      • read

        Type read​(java.lang.String uri)
        Read individual resource at the given URI. The required RemoteAPI will be found using the given resource URI.
        Parameters:
        uri - The URI of the resource
        Returns:
        an object of Type
      • list

        java.util.List<Type> list​(java.lang.String uri,
                                  RemoteAPI remoteAPI)
        List the resources available from this service
        Parameters:
        uri - the uri to load the resources from.
        remoteAPI - The API to read from
        Returns:
        A List<Type> of the resources available
      • getServiceStatus

        boolean getServiceStatus​(RemoteAPI remoteAPI)
                          throws IridaOAuthException
        Get the status of the remote service
        Parameters:
        remoteAPI - The API to check status for
        Returns:
        true if the service is active
        Throws:
        IridaOAuthException - if the remote api cannot be contacted