public class ProjectWrapper extends AnnotatableWrapper<ProjectData> implements Project
Wraps function calls to the Project contained
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATION_LINK
Annotation link name for this type of object
|
data| Constructor and Description |
|---|
ProjectWrapper(DataManager dm,
String name,
String description)
Constructor of the ProjectWrapper class.
|
ProjectWrapper(ProjectData project)
Constructor of the ProjectWrapper class.
|
| Modifier and Type | Method and Description |
|---|---|
Dataset |
addDataset(DataManager dm,
String name,
String description)
Creates a dataset and adds it to the project in OMERO. .
|
protected String |
annotationLinkType()
Returns the type of annotation link for this object.
|
List<Dataset> |
getDatasets()
Gets all the datasets in the project available from OMERO.
|
String |
getDescription()
Gets the project description.
|
List<Image> |
getImages(Browser browser)
Gets all images in the project available from OMERO.
|
String |
getName()
Gets the project name.
|
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.
|
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlinkasDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDataset, asDataObject, getChildren, getDatasets, getDatasets, getImages, getImages, getImagesLike, getImagesTagged, getImagesTagged, getImagesWithKey, getImagesWithKeyValuePair, getParentsaddAndReplaceFile, 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, saveAndUpdatepublic static final String ANNOTATION_LINK
public ProjectWrapper(ProjectData project)
project - ProjectData to be contained.public ProjectWrapper(DataManager dm, String name, String description) throws ServiceException, AccessException, ExecutionException
dm - The data manager.name - Project name.description - Project description.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public String getName()
getName in interface RepositoryObjectpublic void setName(String name)
setName in interface Projectname - The name of the project. Mustn't be null.IllegalArgumentException - If the name is null.public String getDescription()
getDescription in interface RepositoryObjectpublic void setDescription(String description)
setDescription in interface Projectdescription - The description of the project.protected String annotationLinkType()
annotationLinkType in class AnnotatableWrapper<ProjectData>public List<Dataset> getDatasets()
getDatasets in interface Projectpublic Dataset addDataset(DataManager dm, String name, String description) throws ServiceException, AccessException, ExecutionException
The project needs to be reloaded afterwards to list the new dataset.
addDataset in interface Projectdm - The data manager.name - Dataset name.description - Dataset description.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public void removeDataset(Client client, Dataset dataset) throws ServiceException, AccessException, ExecutionException, InterruptedException
removeDataset in interface Projectclient - 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.public List<Image> getImages(Browser browser) throws ServiceException, AccessException, ExecutionException
getImages in interface Projectbrowser - The data browser.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.public void reload(Browser browser) throws ServiceException, AccessException, ExecutionException
reload in interface Projectreload 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.