public interface RemoteObject
| Modifier and Type | Method and Description |
|---|---|
DataObject |
asDataObject()
Returns a DataObject (or a subclass) corresponding to the handled object.
|
boolean |
canAnnotate()
Returns
true if the object can be annotated false otherwise, depending on permissions level. |
boolean |
canChgrp()
Returns
true if the object can be moved by the user currently logged in, false otherwise,
depending on permissions level. |
boolean |
canChown()
Returns
true if the object can be given by the user currently logged in, false otherwise,
depending on permissions level. |
boolean |
canDelete()
Returns
true if the object can be deleted by the user currently logged in, false otherwise,
depending on permissions level. |
boolean |
canEdit()
Returns
true if the object can be edited by the user currently logged in false otherwise,
depending on permissions level. |
boolean |
canLink()
Returns
true if the object can be linked e.g. image add to dataset, by the user currently logged in,
false otherwise, depending on permissions level. |
static <T extends RemoteObject> |
distinct(Collection<? extends T> objects)
Only keeps objects with different IDs in a collection.
|
static <T extends RemoteObject> |
flatten(Collection<? extends Collection<? extends T>> lists)
Flattens a collection of collections and only keeps objects with different IDs.
|
Timestamp |
getCreated()
Gets the time when the object was created.
|
static <U extends RemoteObject,V extends U> |
getElementsOf(Collection<? extends U> collection,
Class<? extends V> clazz)
Gets a list of elements of the specified class from a collection of RemoteObjects.
|
Long |
getGroupId()
Gets the group ID
|
long |
getId()
Gets the object id
|
Experimenter |
getOwner()
Gets the owner ID
|
Timestamp |
getUpdated()
Gets the time when the object was last updated.
|
void |
saveAndUpdate(DataManager dm)
Saves and updates object.
|
static <U extends RemoteObject,V extends U> List<V> getElementsOf(Collection<? extends U> collection, Class<? extends V> clazz)
U - Subclass of RemoteObject.V - Subclass of U.clazz - Class of the wanted elements.collection - The collection of RemoteObjectsstatic <T extends RemoteObject> List<T> distinct(Collection<? extends T> objects)
T - The objects type.objects - A collection of objects.static <T extends RemoteObject> List<T> flatten(Collection<? extends Collection<? extends T>> lists)
T - The objects type.lists - A collection of objects collections.DataObject asDataObject()
long getId()
Timestamp getCreated()
Timestamp getUpdated()
Experimenter getOwner()
Long getGroupId()
void saveAndUpdate(DataManager dm) throws ExecutionException, ServiceException, AccessException
dm - The data manager.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.boolean canAnnotate()
true if the object can be annotated false otherwise, depending on permissions level.boolean canEdit()
true if the object can be edited by the user currently logged in false otherwise,
depending on permissions level.boolean canLink()
true if the object can be linked e.g. image add to dataset, by the user currently logged in,
false otherwise, depending on permissions level.boolean canDelete()
true if the object can be deleted by the user currently logged in, false otherwise,
depending on permissions level.boolean canChgrp()
true if the object can be moved by the user currently logged in, false otherwise,
depending on permissions level.boolean canChown()
true if the object can be given by the user currently logged in, false otherwise,
depending on permissions level.Copyright © 2020–2023 GReD. All rights reserved.