public interface Folder extends RepositoryObject, Annotatable
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Folder folder)
Adds a child folder to this folder.
|
void |
addChildren(Collection<? extends Folder> folders)
Adds children folders to this folder.
|
default void |
addImages(DataManager dm,
Image... images)
Links images to the folder in OMERO.
|
default void |
addROIs(DataManager dm,
Image image,
ROI... rois)
Adds ROIs to the folder and associate them to the provided image.
|
default void |
addROIs(DataManager dm,
long imageId,
ROI... rois)
Adds ROIs to the folder and associate them to the provided image ID.
|
FolderData |
asDataObject()
Returns a DataObject (or a subclass) corresponding to the handled object.
|
List<Folder> |
getChildren()
Retrieves the children folders for this folder.
|
default List<RepositoryObject> |
getChildren(Browser browser)
Reloads the folder and gets its children (images and folders).
|
List<Image> |
getImages()
Retrieves the images contained in this folder.
|
default List<Image> |
getImages(Browser browser)
Retrieves the images contained in this folder.
|
Folder |
getParent()
Retrieves the parent folders for this folder.
|
default List<RepositoryObject> |
getParents(Browser browser)
Reloads the folder and returns its parent as a singleton list.
|
default List<ROI> |
getROIs(DataManager dm,
Image image)
Gets the ROIs contained in the folder associated with the provided image.
|
List<ROI> |
getROIs(DataManager dm,
long imageId)
Gets the ROIs contained in the folder associated with the provided image ID.
|
default <A extends AnnotationData> |
link(DataManager dm,
A annotation)
Attach an
AnnotationData to this object. |
void |
reload(Browser browser)
Reloads the folder from OMERO, to update all links.
|
void |
setDescription(String description)
Sets the description of the folder.
|
void |
setName(String name)
Sets the name of the folder.
|
void |
setParent(Folder folder)
Sets the parent folder for this folder.
|
void |
unlinkAllROIs(DataManager dm)
Unlink all ROIs associated to this folder.
|
default void |
unlinkAllROIs(DataManager dm,
Image image)
Unlink all ROIs associated to the provided image from the folder.
|
default void |
unlinkAllROIs(DataManager dm,
long imageId)
Unlink all ROIs associated to the provided image ID from the folder.
|
default void |
unlinkROIs(DataManager dm,
Collection<? extends ROI> rois)
Unlink ROIs from the folder.
|
default void |
unlinkROIs(DataManager dm,
ROI... rois)
Unlink ROIs from the folder.
|
getDescription, getNameaddAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlinkcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdateFolderData asDataObject()
asDataObject in interface RemoteObjectdefault <A extends AnnotationData> void link(DataManager dm, A annotation) throws ServiceException, AccessException, ExecutionException
AnnotationData to this object.link in interface AnnotatableA - The type of the annotation.dm - The client handling the connection.annotation - The AnnotationData.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void setName(String name)
name - The name of the folder. Mustn't be null.IllegalArgumentException - If the name is null.void setDescription(String description)
description - The folder description.Folder getParent()
void setParent(Folder folder)
folder - The new parent folder.default List<RepositoryObject> getParents(Browser browser) throws AccessException, ServiceException, ExecutionException
getParents in interface RepositoryObjectbrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void addChild(Folder folder)
folder - The new child folder.void addChildren(Collection<? extends Folder> folders)
folders - The new children folders.List<Folder> getChildren()
default List<RepositoryObject> getChildren(Browser browser) throws AccessException, ServiceException, ExecutionException
getChildren in interface RepositoryObjectbrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default void addImages(DataManager dm, Image... images) throws ServiceException, AccessException, ExecutionException
The folder needs to be reloaded afterwards.
dm - The data manager.images - Images to add.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImages(Browser browser) throws AccessException, ServiceException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default void addROIs(DataManager dm, long imageId, ROI... rois) throws ServiceException, AccessException, ExecutionException
dm - The data manager.imageId - The image ID.rois - ROIs to add.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - If the ROIFacility can't be retrieved or instantiated.default void addROIs(DataManager dm, Image image, ROI... rois) throws ServiceException, AccessException, ExecutionException
dm - The data manager.image - The image.rois - ROIs to add.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - If the ROIFacility can't be retrieved or instantiated.List<ROI> getROIs(DataManager dm, long imageId) throws ServiceException, AccessException, ExecutionException
dm - The data manager.imageId - The image.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<ROI> getROIs(DataManager dm, Image image) throws ServiceException, AccessException, ExecutionException
dm - The data manager.image - The image.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default void unlinkAllROIs(DataManager dm, long imageId) throws ServiceException, AccessException, ExecutionException
ROIs are now linked to the image directly.
dm - The data manager.imageId - The image ID.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default void unlinkAllROIs(DataManager dm, Image image) throws ServiceException, AccessException, ExecutionException
ROIs are now linked to the image directly.
dm - The data manager.image - The image.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void unlinkAllROIs(DataManager dm) throws ServiceException, AccessException, ExecutionException
The folder must be loaded beforehand.
ROIs are now linked to their images directly.
dm - The data manager.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default void unlinkROIs(DataManager dm, ROI... rois) throws ServiceException, AccessException, ExecutionException
The ROIs are now linked to the image directly.
dm - The data manager.rois - ROI to unlink.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default void unlinkROIs(DataManager dm, Collection<? extends ROI> rois) throws ServiceException, AccessException, ExecutionException
The ROIs are now linked to the image directly.
dm - The data manager.rois - ROI to unlink.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void reload(Browser browser) throws AccessException, ServiceException, ExecutionException
reload in interface RepositoryObjectbrowser - The data browser.AccessException - Cannot access data.ServiceException - Cannot connect to OMERO.ExecutionException - A Facility can't be retrieved or instantiated.Copyright © 2020–2023 GReD. All rights reserved.