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
ConstructorsModifierConstructorDescriptionprotected
Constructor of the GenericAnnotationWrapper class. -
Method Summary
Modifier and TypeMethodDescriptionint
countAnnotationLinks
(Client client) Returns the number of annotations links for this object.getDatasets
(Client client) Gets all datasets with this annotation from OMERO.Retrieves thedescription
of the underlyingAnnotationData
instance.getFolders
(Client client) Gets all folders with this annotation from OMERO.Gets all images with this annotation from OMERO.Returns the time when the annotation was last modified.Retrieves theAnnotationData
namespace of the underlyingAnnotationData
instance.getPlateAcquisitions
(Client client) Gets all plate acquisitions with this annotation from OMERO.Gets all plates with this annotation from OMERO.getProjects
(Client client) Gets all projects with this annotation from OMERO.getScreens
(Client client) Gets all screens with this annotation from OMERO.Gets all wells with this annotation from OMERO.void
setDescription
(String description) Sets the description of the underlyingAnnotationData
instance.void
setNameSpace
(String name) Sets the name space of the underlyingAnnotationData
instance.Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Constructor Details
-
GenericAnnotationWrapper
Constructor of the GenericAnnotationWrapper class.- Parameters:
a
- The AnnotationData to wrap.
-
-
Method Details
-
getNameSpace
Retrieves theAnnotationData
namespace of the underlyingAnnotationData
instance.- Returns:
- See above.
-
setNameSpace
Sets the name space of the underlyingAnnotationData
instance.- Parameters:
name
- The value to set.
-
getLastModified
Returns the time when the annotation was last modified.- Returns:
- See above.
-
getDescription
Retrieves thedescription
of the underlyingAnnotationData
instance.- Returns:
- See above
-
setDescription
Sets the description of the underlyingAnnotationData
instance.- Parameters:
description
- The description
-
countAnnotationLinks
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 List<ProjectWrapper> getProjects(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getDatasets
public List<DatasetWrapper> getDatasets(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImages
public List<ImageWrapper> getImages(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getScreens
public List<ScreenWrapper> getScreens(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getPlates
public List<PlateWrapper> getPlates(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getPlateAcquisitions
public 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 List<WellWrapper> getWells(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getFolders
public List<FolderWrapper> getFolders(Client client) throws ServiceException, AccessException, OMEROServerError, 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.ExecutionException
- A Facility can't be retrieved or instantiated.
-