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 void
addClient
(OmeroRawClient client) Add a server (with an empty list of clients) to the client list.static OmeroRawClient
createClientAndLogin
(URI serverURI) Create client from the server URI provided.static javafx.collections.ObservableList<OmeroRawClient>
Return the observable list of all clients.static OmeroRawClient
getClientFromServerURI
(URI serverURI) Return the client associated with the specified server URI.static void
logOut
(OmeroRawClient client) Log the specified client out.protected static void
removeClient
(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,null
is 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:
IOException
URISyntaxException
com.google.gson.JsonSyntaxException
-
logOut
Log the specified client out.- Parameters:
client
-
-