public interface Project extends RepositoryObject, Annotatable
| Modifier and Type | Method and Description |
|---|---|
default Dataset |
addDataset(DataManager dm,
Dataset dataset)
Adds a dataset to the project in OMERO.
|
Dataset |
addDataset(DataManager dm,
String name,
String description)
Creates a dataset and adds it to the project in OMERO. .
|
ProjectData |
asDataObject()
Returns a
ProjectData corresponding to the handled object. |
default List<RepositoryObject> |
getChildren(Browser browser)
Gets the object children.
|
List<Dataset> |
getDatasets()
Gets all the datasets in the project available from OMERO.
|
default List<Dataset> |
getDatasets(Browser browser)
Reloads this project and retrieves the updated list of datasets contained in this project.
|
default List<Dataset> |
getDatasets(String name)
Gets the dataset with the specified name from OMERO
|
List<Image> |
getImages(Browser browser)
Gets all images in the project available from OMERO.
|
default List<Image> |
getImages(Browser browser,
String name)
Gets all images in the project with a certain name from OMERO.
|
default List<Image> |
getImages(Browser browser,
String datasetName,
String imageName)
Gets all images with a certain name from datasets with the specified name inside this project on OMERO.
|
default List<Image> |
getImagesLike(Browser browser,
String motif)
Gets all images in the project with a certain motif in their name from OMERO.
|
default List<Image> |
getImagesTagged(Browser browser,
Long tagId)
Gets all images in the project tagged with a specified tag from OMERO.
|
default List<Image> |
getImagesTagged(Browser browser,
TagAnnotation tag)
Gets all images in the project tagged with a specified tag from OMERO.
|
default List<Image> |
getImagesWithKey(Browser browser,
String key)
Gets all images in the project with a certain key
|
default List<Image> |
getImagesWithKeyValuePair(Browser browser,
String key,
String value)
Gets all images in the project with a certain key value pair from OMERO.
|
default List<RepositoryObject> |
getParents(Browser browser)
Returns an empty list as projects do not have parents.
|
void |
reload(Browser browser)
Reloads the project from OMERO.
|
void |
removeDataset(Client client,
Dataset dataset)
Removes a dataset from the project in OMERO.
|
void |
setDescription(String description)
Sets the description of the project.
|
void |
setName(String name)
Sets the name of the project.
|
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, link, linkIfNotLinked, rate, unlinkcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdateProjectData asDataObject()
ProjectData corresponding to the handled object.asDataObject in interface RemoteObjectvoid setName(String name)
name - The name of the project. Mustn't be null.IllegalArgumentException - If the name is null.void setDescription(String description)
description - The description of the project.default List<RepositoryObject> getParents(Browser browser)
getParents in interface RepositoryObjectbrowser - The data browser.default List<RepositoryObject> getChildren(Browser browser) throws AccessException, ServiceException, ExecutionException
getChildren in interface RepositoryObjectbrowser - The data browser.AccessException - Cannot access data.ServiceException - Cannot connect to OMERO.ExecutionException - A Facility can't be retrieved or instantiated.List<Dataset> getDatasets()
default List<Dataset> getDatasets(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 List<Dataset> getDatasets(String name)
name - Name of the dataset searched.Dataset addDataset(DataManager dm, String name, String description) throws ServiceException, AccessException, ExecutionException
The project needs to be reloaded afterwards to list the new dataset.
dm - The client handling the connection.name - Dataset name.description - Dataset description.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default Dataset addDataset(DataManager dm, Dataset dataset) throws ServiceException, AccessException, ExecutionException
The project needs to be reloaded afterwards to list the new dataset.
dm - The data manager.dataset - Dataset to be added.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void removeDataset(Client client, Dataset dataset) throws ServiceException, AccessException, ExecutionException, InterruptedException
client - The client handling the connection.dataset - Dataset to remove.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.InterruptedException - If block(long) does not return.List<Image> getImages(Browser browser) throws ServiceException, AccessException, ExecutionException
browser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImages(Browser browser, String name) throws ServiceException, AccessException, ExecutionException
browser - The data browser.name - Name searched.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImages(Browser browser, String datasetName, String imageName) throws ServiceException, AccessException, ExecutionException
browser - The data browser.datasetName - Expected dataset name.imageName - Expected image name.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImagesLike(Browser browser, String motif) throws ServiceException, AccessException, ExecutionException
browser - The data browser.motif - Motif searched in an image name.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImagesTagged(Browser browser, TagAnnotation tag) throws ServiceException, AccessException, ExecutionException
browser - The data browser.tag - TagAnnotation containing the tag researched.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImagesTagged(Browser browser, Long tagId) throws ServiceException, AccessException, ExecutionException
browser - The data browser.tagId - Id of the tag researched.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImagesWithKey(Browser browser, String key) throws ServiceException, AccessException, ExecutionException
browser - The data browser.key - Name of the key researched.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.default List<Image> getImagesWithKeyValuePair(Browser browser, String key, String value) throws ServiceException, AccessException, ExecutionException
browser - The data browser.key - Name of the key researched.value - Value associated with the key.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void reload(Browser browser) throws ServiceException, AccessException, ExecutionException
reload in interface RepositoryObjectbrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.Copyright © 2020–2023 GReD. All rights reserved.