Package omero.gateway.facility
Class MetadataFacility
- java.lang.Object
-
- omero.gateway.facility.Facility
-
- omero.gateway.facility.MetadataFacility
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<DataObject,java.util.List<AnnotationData>>
getAnnotations(SecurityContext ctx, java.util.List<? extends DataObject> objects, java.util.List<java.lang.Class<? extends AnnotationData>> annotationTypes, java.util.List<java.lang.Long> userIds)
Get the annotations for the givenDataObject
sjava.util.List<AnnotationData>
getAnnotations(SecurityContext ctx, DataObject object)
Get all annotations for the givenDataObject
java.util.List<AnnotationData>
getAnnotations(SecurityContext ctx, DataObject object, java.util.List<java.lang.Class<? extends AnnotationData>> annotationTypes, java.util.List<java.lang.Long> userIds)
Get the annotations for the givenDataObject
java.util.List<ChannelData>
getChannelData(SecurityContext ctx, long imageId)
Get theChannelData
for a specific imageImageAcquisitionData
getImageAcquisitionData(SecurityContext ctx, long imageId)
Loads theImageAcquisitionData
for a specific imagejava.util.List<java.lang.String>
getManagedRepositoriesPaths(SecurityContext ctx, ImageData img)
Get the file paths of the image in the managed repositoryvoid
getOriginalMetadata(SecurityContext ctx, long imageId, java.io.File output)
Get the original metadata of an image and write it into a filevoid
getOriginalMetadata(SecurityContext ctx, long imageId, java.lang.StringBuffer buffer)
Get the original metadata of an image and write it a StringBuilderjava.util.List<java.lang.String>
getOriginalPaths(SecurityContext ctx, ImageData img)
Get the original file paths where the image was imported from.java.util.List<PlaneInfoData>
getPlaneInfos(SecurityContext ctx, PixelsData pix)
Get the plane infos.-
Methods inherited from class omero.gateway.facility.Facility
addPropertyChangeListener, clear, firePropertyChanged, firePropertyChanged, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListener
-
-
-
-
Method Detail
-
getImageAcquisitionData
public ImageAcquisitionData getImageAcquisitionData(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
Loads theImageAcquisitionData
for a specific image- Parameters:
ctx
- TheSecurityContext
imageId
- The imageId- Returns:
- See above
- Throws:
DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO service.
-
getChannelData
public java.util.List<ChannelData> getChannelData(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
Get theChannelData
for a specific image- Parameters:
ctx
- TheSecurityContext
imageId
- The imageId to get the ChannelData for- Returns:
- List of ChannelData
- Throws:
DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO service.
-
getAnnotations
public java.util.List<AnnotationData> getAnnotations(SecurityContext ctx, DataObject object) throws DSOutOfServiceException, DSAccessException
Get all annotations for the givenDataObject
- Parameters:
ctx
- TheSecurityContext
object
- TheDataObject
to load the annotations for- Returns:
- See above
- Throws:
DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO service.
-
getAnnotations
public java.util.List<AnnotationData> getAnnotations(SecurityContext ctx, DataObject object, java.util.List<java.lang.Class<? extends AnnotationData>> annotationTypes, java.util.List<java.lang.Long> userIds) throws DSOutOfServiceException, DSAccessException
Get the annotations for the givenDataObject
- Parameters:
ctx
- TheSecurityContext
object
- TheDataObject
to load the annotations forannotationTypes
- The type of annotations to load (can benull
)userIds
- Only load annotations of certain users (can benull
, i. e. all users)- Returns:
- See above
- Throws:
DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO service.
-
getAnnotations
public java.util.Map<DataObject,java.util.List<AnnotationData>> getAnnotations(SecurityContext ctx, java.util.List<? extends DataObject> objects, java.util.List<java.lang.Class<? extends AnnotationData>> annotationTypes, java.util.List<java.lang.Long> userIds) throws DSOutOfServiceException, DSAccessException
Get the annotations for the givenDataObject
s- Parameters:
ctx
- TheSecurityContext
objects
- TheDataObject
s to load the annotations for (have to be all of the same type)annotationTypes
- The type of annotations to load (can benull
)userIds
- Only load annotations of certain users (can benull
, i. e. all users)- Returns:
- Lists of
AnnotationData
mapped to theDataObject
they are attached to. - Throws:
DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO service.
-
getManagedRepositoriesPaths
public java.util.List<java.lang.String> getManagedRepositoriesPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException
Get the file paths of the image in the managed repository- Parameters:
ctx
- The SecurityContextimg
- The image- Returns:
- See above
- Throws:
DSOutOfServiceException
DSAccessException
-
getOriginalPaths
public java.util.List<java.lang.String> getOriginalPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException
Get the original file paths where the image was imported from.- Parameters:
ctx
- The SecurityContextimg
- The image- Returns:
- See above
- Throws:
DSOutOfServiceException
DSAccessException
-
getPlaneInfos
public java.util.List<PlaneInfoData> getPlaneInfos(SecurityContext ctx, PixelsData pix) throws DSOutOfServiceException, DSAccessException
Get the plane infos.- Parameters:
ctx
- The SecurityContextpix
- The PixelsData- Returns:
- See above
- Throws:
DSOutOfServiceException
DSAccessException
-
getOriginalMetadata
public void getOriginalMetadata(SecurityContext ctx, long imageId, java.io.File output) throws java.lang.Exception
Get the original metadata of an image and write it into a file- Parameters:
ctx
- The SecurityContextimageId
- The image idoutput
- The output file- Throws:
java.lang.Throwable
java.lang.Exception
-
getOriginalMetadata
public void getOriginalMetadata(SecurityContext ctx, long imageId, java.lang.StringBuffer buffer)
Get the original metadata of an image and write it a StringBuilder- Parameters:
ctx
- The SecurityContextimageId
- The image idbuffer
- The buffer- Throws:
java.lang.Throwable
-
-