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 givenDataObjectsjava.util.List<AnnotationData>getAnnotations(SecurityContext ctx, DataObject object)Get all annotations for the givenDataObjectjava.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 givenDataObjectjava.util.List<ChannelData>getChannelData(SecurityContext ctx, long imageId)Get theChannelDatafor a specific imageImageAcquisitionDatagetImageAcquisitionData(SecurityContext ctx, long imageId)Loads theImageAcquisitionDatafor a specific imagejava.util.List<java.lang.String>getManagedRepositoriesPaths(SecurityContext ctx, ImageData img)Get the file paths of the image in the managed repositoryvoidgetOriginalMetadata(SecurityContext ctx, long imageId, java.io.File output)Get the original metadata of an image and write it into a filevoidgetOriginalMetadata(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 theImageAcquisitionDatafor a specific image- Parameters:
ctx- TheSecurityContextimageId- 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 theChannelDatafor a specific image- Parameters:
ctx- TheSecurityContextimageId- 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- TheSecurityContextobject- TheDataObjectto 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- TheSecurityContextobject- TheDataObjectto 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 givenDataObjects- Parameters:
ctx- TheSecurityContextobjects- TheDataObjects 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
AnnotationDatamapped to theDataObjectthey 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:
DSOutOfServiceExceptionDSAccessException
-
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:
DSOutOfServiceExceptionDSAccessException
-
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:
DSOutOfServiceExceptionDSAccessException
-
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.Throwablejava.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
-
-