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 TypeMethodDescriptionvoid
Add a URI to the list of this client's URIs.boolean
check if the current client is connected to the serverstatic OmeroRawClient
boolean
fr.igred.omero.meta.ExperimenterWrapper
int
getPort()
Return the server URI ('clean' URI) of thisOmeroRawClient
.fr.igred.omero.Client
javafx.collections.ObservableList<URI>
getURIs()
Return an unmodifiable list of all URIs using thisOmeroRawClient
.Gets the value of the property username.int
hashCode()
boolean
isAdmin()
boolean
Return whether the client is logged in to its server (not necessarily with access to all its images).boolean
Log in to the client's server with optional args.void
logOut()
Log out this client from the server.javafx.beans.property.BooleanProperty
void
switchGroup
(long groupId) switch the current group to another group where the user is also part ofjavafx.beans.property.StringProperty
The 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
-