Package fr.igred.omero.annotations
Class GenericAnnotationWrapper<T extends AnnotationData>
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.annotations.GenericAnnotationWrapper<T>
-
- Type Parameters:
T- Subclass ofAnnotationData
- Direct Known Subclasses:
FileAnnotationWrapper,MapAnnotationWrapper,RatingAnnotationWrapper,TagAnnotationWrapper,TextualAnnotationWrapper
public abstract class GenericAnnotationWrapper<T extends AnnotationData> extends GenericObjectWrapper<T>
Generic class containing an AnnotationData (or a subclass) object.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericAnnotationWrapper(T a)Constructor of the GenericAnnotationWrapper class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountAnnotationLinks(Client client)Returns the number of annotations links for this object.java.util.List<DatasetWrapper>getDatasets(Client client)Gets all datasets with this annotation from OMERO.java.lang.StringgetDescription()Retrieves thedescriptionof the underlyingAnnotationDatainstance.java.util.List<FolderWrapper>getFolders(Client client)Gets all folders with this annotation from OMERO.java.util.List<ImageWrapper>getImages(Client client)Gets all images with this annotation from OMERO.java.sql.TimestampgetLastModified()Returns the time when the annotation was last modified.java.lang.StringgetNameSpace()Retrieves theAnnotationDatanamespace of the underlyingAnnotationDatainstance.java.util.List<PlateAcquisitionWrapper>getPlateAcquisitions(Client client)Gets all plate acquisitions with this annotation from OMERO.java.util.List<PlateWrapper>getPlates(Client client)Gets all plates with this annotation from OMERO.java.util.List<ProjectWrapper>getProjects(Client client)Gets all projects with this annotation from OMERO.java.util.List<ScreenWrapper>getScreens(Client client)Gets all screens with this annotation from OMERO.java.util.List<WellWrapper>getWells(Client client)Gets all wells with this annotation from OMERO.voidsetDescription(java.lang.String description)Sets the description of the underlyingAnnotationDatainstance.voidsetNameSpace(java.lang.String name)Sets the name space of the underlyingAnnotationDatainstance.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
GenericAnnotationWrapper
protected GenericAnnotationWrapper(T a)
Constructor of the GenericAnnotationWrapper class.- Parameters:
a- The AnnotationData to wrap.
-
-
Method Detail
-
getNameSpace
public java.lang.String getNameSpace()
Retrieves theAnnotationDatanamespace of the underlyingAnnotationDatainstance.- Returns:
- See above.
-
setNameSpace
public void setNameSpace(java.lang.String name)
Sets the name space of the underlyingAnnotationDatainstance.- Parameters:
name- The value to set.
-
getLastModified
public java.sql.Timestamp getLastModified()
Returns the time when the annotation was last modified.- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Retrieves thedescriptionof the underlyingAnnotationDatainstance.- Returns:
- See above
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the underlyingAnnotationDatainstance.- Parameters:
description- The description
-
countAnnotationLinks
public int countAnnotationLinks(Client client) throws ServiceException, OMEROServerError
Returns the number of annotations links for this object.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.OMEROServerError- Server error.
-
getProjects
public java.util.List<ProjectWrapper> getProjects(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all projects with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
getDatasets
public java.util.List<DatasetWrapper> getDatasets(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all datasets with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
getImages
public java.util.List<ImageWrapper> getImages(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all images with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
getScreens
public java.util.List<ScreenWrapper> getScreens(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all screens with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
getPlates
public java.util.List<PlateWrapper> getPlates(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all plates with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
getPlateAcquisitions
public java.util.List<PlateAcquisitionWrapper> getPlateAcquisitions(Client client) throws ServiceException, OMEROServerError
Gets all plate acquisitions with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.OMEROServerError- Server error.
-
getWells
public java.util.List<WellWrapper> getWells(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all wells with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
getFolders
public java.util.List<FolderWrapper> getFolders(Client client) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Gets all folders with this annotation from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- See above.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.OMEROServerError- Server error.java.util.concurrent.ExecutionException- A Facility can't be retrieved or instantiated.
-
-