Class OmeroRawClient
java.lang.Object
qupath.ext.biop.servers.omero.raw.client.OmeroRawClient
Class representing an OMERO Raw Client. This class takes care of
logging in, keeping the connection alive and logging out.
-
Property Summary
Properties -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a URI to the list of this client's URIs.booleancheck if the current client is connected to the serverstatic OmeroRawClientbooleanfr.igred.omero.meta.ExperimenterWrapperintgetPort()Return the server URI ('clean' URI) of thisOmeroRawClient.fr.igred.omero.Clientjavafx.collections.ObservableList<URI>getURIs()Return an unmodifiable list of all URIs using thisOmeroRawClient.Gets the value of the property username.inthashCode()booleanisAdmin()booleanReturn whether the client is logged in to its server (not necessarily with access to all its images).booleanLog in to the client's server with optional args.voidlogOut()Log out this client from the server.javafx.beans.property.BooleanPropertyvoidswitchGroup(long groupId) switch the current group to another group where the user is also part ofjavafx.beans.property.StringPropertyThe username might be empty (public), and might also change (user switching account)
-
Property Details
-
username
public javafx.beans.property.StringProperty usernamePropertyThe username might be empty (public), and might also change (user switching account)- See Also:
-
log
public javafx.beans.property.BooleanProperty logProperty
-
-
Method Details
-
create
-
switchGroup
public void switchGroup(long groupId) switch the current group to another group where the user is also part of- Parameters:
groupId-
-
isLoggedIn
public boolean isLoggedIn()Return whether the client is logged in to its server (not necessarily with access to all its images).- Returns:
- isLoggedIn
-
getLoggedInUser
public fr.igred.omero.meta.ExperimenterWrapper getLoggedInUser() -
isAdmin
public boolean isAdmin() -
usernameProperty
public javafx.beans.property.StringProperty usernameProperty()The username might be empty (public), and might also change (user switching account)- See Also:
-
logProperty
public javafx.beans.property.BooleanProperty logProperty() -
getUsername
Gets the value of the property username.- Property description:
- The username might be empty (public), and might also change (user switching account)
-
getSimpleClient
public fr.igred.omero.Client getSimpleClient() -
getPort
public int getPort() -
getServerURI
Return the server URI ('clean' URI) of thisOmeroRawClient.- Returns:
- serverUri
- See Also:
-
getURIs
Return an unmodifiable list of all URIs using thisOmeroRawClient.- Returns:
- list of uris
- See Also:
-
addURI
Add a URI to the list of this client's URIs.Note: there is currently no equivalent 'removeURI()' method.
- Parameters:
uri-- See Also:
-
logIn
Log in to the client's server with optional args.- Parameters:
args-- Returns:
- success
-
logOut
public void logOut()Log out this client from the server. -
hashCode
public int hashCode() -
equals
-
checkIfLoggedIn
public boolean checkIfLoggedIn()check if the current client is connected to the server- Returns:
- log in status
-