Package fr.igred.omero.containers
Interface Project
-
- All Superinterfaces:
Annotatable
,ContainerLinked
,ImageLinked
,RemoteObject
,RepositoryObject
- All Known Implementing Classes:
ProjectWrapper
public interface Project extends RepositoryObject, ContainerLinked
Interface to handle Projects on OMERO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Dataset
addDataset(Client client, Dataset dataset)
Adds a dataset to the project in OMERO.Dataset
addDataset(Client client, java.lang.String name, java.lang.String description)
Adds a dataset to the project in OMERO.ProjectData
asDataObject()
Returns aProjectData
corresponding to the handled object.java.util.List<Dataset>
getDatasets()
Gets all the datasets in the project available from OMERO.default java.util.List<Dataset>
getDatasets(Browser browser)
Reloads this project and retrieves the updated list of datasets contained in this project.default java.util.List<Dataset>
getDatasets(java.lang.String name)
Gets the dataset with the specified name from OMEROjava.util.List<Image>
getImages(Browser browser)
Gets all images in the project available from OMERO.default java.util.List<Image>
getImages(Browser browser, java.lang.String name)
Gets all images in the project with a certain name from OMERO.default java.util.List<Image>
getImages(Browser browser, java.lang.String datasetName, java.lang.String imageName)
Gets all images with a certain name from datasets with the specified name inside this project on OMERO.default java.util.List<Image>
getImagesLike(Browser browser, java.lang.String motif)
Gets all images in the project with a certain motif in their name from OMERO.default java.util.List<Image>
getImagesTagged(Browser browser, TagAnnotation tag)
Gets all images in the project tagged with a specified tag from OMERO.default java.util.List<Image>
getImagesTagged(Browser browser, java.lang.Long tagId)
Gets all images in the project tagged with a specified tag from OMERO.default java.util.List<Image>
getImagesWithKey(Browser browser, java.lang.String key)
Gets all images in the project with a certain keydefault java.util.List<Image>
getImagesWithKeyValuePair(Browser browser, java.lang.String key, java.lang.String value)
Gets all images in the project with a certain key value pair from OMERO.default java.util.List<Project>
getProjects(Browser browser)
Reloads and returns this project as a singleton list.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(java.lang.String description)
Sets the description of the project.void
setName(java.lang.String name)
Sets the name of the project.-
Methods inherited from interface fr.igred.omero.Annotatable
addAndReplaceFile, 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, unlink
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
Methods inherited from interface fr.igred.omero.RepositoryObject
getDescription, getName
-
-
-
-
Method Detail
-
asDataObject
ProjectData asDataObject()
Returns aProjectData
corresponding to the handled object.- Specified by:
asDataObject
in interfaceRemoteObject
- Returns:
- See above.
-
setName
void setName(java.lang.String name)
Sets the name of the project.- Parameters:
name
- The name of the project. Mustn't benull
.- Throws:
java.lang.IllegalArgumentException
- If the name isnull
.
-
setDescription
void setDescription(java.lang.String description)
Sets the description of the project.- Parameters:
description
- The description of the project.
-
getProjects
default java.util.List<Project> getProjects(Browser browser) throws AccessException, ServiceException, java.util.concurrent.ExecutionException
Reloads and returns this project as a singleton list.- Specified by:
getProjects
in interfaceContainerLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getDatasets
default java.util.List<Dataset> getDatasets(Browser browser) throws AccessException, ServiceException, java.util.concurrent.ExecutionException
Reloads this project and retrieves the updated list of datasets contained in this project.- Specified by:
getDatasets
in interfaceContainerLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getDatasets
java.util.List<Dataset> getDatasets()
Gets all the datasets in the project available from OMERO.- Returns:
- Collection of Dataset.
-
getDatasets
default java.util.List<Dataset> getDatasets(java.lang.String name)
Gets the dataset with the specified name from OMERO- Parameters:
name
- Name of the dataset searched.- Returns:
- List of dataset with the given name.
-
addDataset
Dataset addDataset(Client client, java.lang.String name, java.lang.String description) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Adds a dataset to the project in OMERO. Create the dataset.- Parameters:
client
- The client handling the connection.name
- Dataset name.description
- Dataset description.- Returns:
- The object saved in OMERO.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
addDataset
default Dataset addDataset(Client client, Dataset dataset) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Adds a dataset to the project in OMERO.- Parameters:
client
- The client handling the connection.dataset
- Dataset to be added.- Returns:
- The object saved in OMERO.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
removeDataset
void removeDataset(Client client, Dataset dataset) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Removes a dataset from the project in OMERO.- Parameters:
client
- The client handling the connection.dataset
- Dataset to remove.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
getImages
java.util.List<Image> getImages(Browser browser) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Gets all images in the project available from OMERO.- Specified by:
getImages
in interfaceImageLinked
- Parameters:
browser
- The data browser.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImages
default java.util.List<Image> getImages(Browser browser, java.lang.String name) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Gets all images in the project with a certain name from OMERO.- Parameters:
browser
- The data browser.name
- Name searched.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImages
default java.util.List<Image> getImages(Browser browser, java.lang.String datasetName, java.lang.String imageName) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Gets all images with a certain name from datasets with the specified name inside this project on OMERO.- Parameters:
browser
- The data browser.datasetName
- Expected dataset name.imageName
- Expected image name.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImagesLike
default java.util.List<Image> getImagesLike(Browser browser, java.lang.String motif) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Gets all images in the project with a certain motif in their name from OMERO.- Parameters:
browser
- The data browser.motif
- Motif searched in an image name.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImagesTagged
default java.util.List<Image> getImagesTagged(Browser browser, TagAnnotation tag) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all images in the project tagged with a specified tag from OMERO.- Parameters:
browser
- The data browser.tag
- TagAnnotation containing the tag researched.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImagesTagged
default java.util.List<Image> getImagesTagged(Browser browser, java.lang.Long tagId) throws ServiceException, AccessException, ServerException, java.util.concurrent.ExecutionException
Gets all images in the project tagged with a specified tag from OMERO.- Parameters:
browser
- The data browser.tagId
- Id of the tag researched.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ServerException
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImagesWithKey
default java.util.List<Image> getImagesWithKey(Browser browser, java.lang.String key) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Gets all images in the project with a certain key- Parameters:
browser
- The data browser.key
- Name of the key researched.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImagesWithKeyValuePair
default java.util.List<Image> getImagesWithKeyValuePair(Browser browser, java.lang.String key, java.lang.String value) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Gets all images in the project with a certain key value pair from OMERO.- Parameters:
browser
- The data browser.key
- Name of the key researched.value
- Value associated with the key.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
reload
void reload(Browser browser) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Reloads the project from OMERO.- Parameters:
browser
- The data browser.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
-