Class OmeroRawClients

java.lang.Object
qupath.ext.biop.servers.omero.raw.client.OmeroRawClients

public class OmeroRawClients extends Object
Class to keep track of active OMERO clients.
  • Method Details

    • getClientFromServerURI

      public static OmeroRawClient getClientFromServerURI(URI serverURI)
      Return the client associated with the specified server URI. If no client is found, null is returned.
      Parameters:
      serverURI -
      Returns:
      client
    • addClient

      public static void addClient(OmeroRawClient client)
      Add a server (with an empty list of clients) to the client list. Nothing happens if the client is already present in the list.
      Parameters:
      client -
    • removeClient

      protected static void removeClient(OmeroRawClient client)
      Remove the client from the clients list (losing all info about its URIs).
      Parameters:
      client -
    • getAllClients

      public static javafx.collections.ObservableList<OmeroRawClient> getAllClients()
      Return the observable list of all clients.
      Returns:
      client list
    • createClientAndLogin

      public static OmeroRawClient createClientAndLogin(URI serverURI) throws IOException, URISyntaxException
      Create client from the server URI provided. If login is required, it will prompt a dialog automatically. This method will also add it to the list of clients.
      Parameters:
      serverURI -
      Returns:
      client
      Throws:
      IOException
      URISyntaxException
      com.google.gson.JsonSyntaxException
    • logOut

      public static void logOut(OmeroRawClient client)
      Log the specified client out.
      Parameters:
      client -