Class OmeroRawClients
java.lang.Object
qupath.ext.biop.servers.omero.raw.client.OmeroRawClients
Class to keep track of active OMERO clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddClient(OmeroRawClient client) Add a server (with an empty list of clients) to the client list.static OmeroRawClientcreateClientAndLogin(URI serverURI) Create client from the server URI provided.static javafx.collections.ObservableList<OmeroRawClient>Return the observable list of all clients.static OmeroRawClientgetClientFromServerURI(URI serverURI) Return the client associated with the specified server URI.static voidlogOut(OmeroRawClient client) Log the specified client out.protected static voidremoveClient(OmeroRawClient client) Remove the client from the clients list (losing all info about its URIs).
-
Method Details
-
getClientFromServerURI
Return the client associated with the specified server URI. If no client is found,nullis returned.- Parameters:
serverURI-- Returns:
- client
-
addClient
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
Remove the client from the clients list (losing all info about its URIs).- Parameters:
client-
-
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:
IOExceptionURISyntaxExceptioncom.google.gson.JsonSyntaxException
-
logOut
Log the specified client out.- Parameters:
client-
-