public class MetadataFacility extends Facility
Facility to access the metadata.| Modifier and Type | Method and Description |
|---|---|
List<AnnotationData> |
getAnnotations(SecurityContext ctx,
DataObject object)
Get all annotations for the given
DataObject |
List<AnnotationData> |
getAnnotations(SecurityContext ctx,
DataObject object,
List<Class<? extends AnnotationData>> annotationTypes,
List<Long> userIds)
Get the annotations for the given
DataObject |
Map<DataObject,List<AnnotationData>> |
getAnnotations(SecurityContext ctx,
List<? extends DataObject> objects,
List<Class<? extends AnnotationData>> annotationTypes,
List<Long> userIds)
Get the annotations for the given
DataObjects |
List<ChannelData> |
getChannelData(SecurityContext ctx,
long imageId)
Get the
ChannelData for a specific image |
ImageAcquisitionData |
getImageAcquisitionData(SecurityContext ctx,
long imageId)
Loads the
ImageAcquisitionData for a specific image |
addPropertyChangeListener, clear, firePropertyChanged, firePropertyChanged, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListenerpublic ImageAcquisitionData getImageAcquisitionData(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
ImageAcquisitionData for a specific imagectx - The SecurityContextimageId - The imageIdDSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
service.public List<ChannelData> getChannelData(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
ChannelData for a specific imagectx - The SecurityContextimageId - The imageId to get the ChannelData forDSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
service.public List<AnnotationData> getAnnotations(SecurityContext ctx, DataObject object) throws DSOutOfServiceException, DSAccessException
DataObjectctx - The SecurityContextobject - The DataObject to load the annotations forDSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
service.public List<AnnotationData> getAnnotations(SecurityContext ctx, DataObject object, List<Class<? extends AnnotationData>> annotationTypes, List<Long> userIds) throws DSOutOfServiceException, DSAccessException
DataObjectctx - The SecurityContextobject - The DataObject to load the annotations forannotationTypes - The type of annotations to load (can be null)userIds - Only load annotations of certain users (can be
null, i. e. all users)DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
service.public Map<DataObject,List<AnnotationData>> getAnnotations(SecurityContext ctx, List<? extends DataObject> objects, List<Class<? extends AnnotationData>> annotationTypes, List<Long> userIds) throws DSOutOfServiceException, DSAccessException
DataObjectsctx - The SecurityContextobjects - The DataObjects to load the annotations for (have to
be all of the same type)annotationTypes - The type of annotations to load (can be null)userIds - Only load annotations of certain users (can be
null, i. e. all users)AnnotationData mapped to the DataObject
they are attached to.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
service.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.