Package fr.igred.omero
Class RepositoryObjectWrapper<T extends DataObject>
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.RepositoryObjectWrapper<T>
-
- Type Parameters:
T
- Subclass ofDataObject
- All Implemented Interfaces:
Annotatable
,RemoteObject
,RepositoryObject
- Direct Known Subclasses:
DatasetWrapper
,FolderWrapper
,ImageWrapper
,PlateAcquisitionWrapper
,PlateWrapper
,ProjectWrapper
,ScreenWrapper
,WellWrapper
public abstract class RepositoryObjectWrapper<T extends DataObject> extends AnnotatableWrapper<T> implements RepositoryObject
Generic class containing a DataObject (or a subclass) object.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.ObjectWrapper
data
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RepositoryObjectWrapper(T o)
Constructor of the class RepositoryObjectWrapper.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.util.List<java.lang.Long>
importImage(ConnectionHandler client, DataObject target, java.lang.String path)
Imports one image file to the target in OMERO.protected static boolean
importImages(ConnectionHandler client, DataObject target, java.lang.String... paths)
Imports all images candidates in the paths to the target in OMERO.-
Methods inherited from class fr.igred.omero.AnnotatableWrapper
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, annotationLinkType, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
-
Methods inherited from class fr.igred.omero.ObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.igred.omero.Annotatable
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlink
-
Methods inherited from interface fr.igred.omero.RemoteObject
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
Methods inherited from interface fr.igred.omero.RepositoryObject
getDescription, getName
-
-
-
-
Constructor Detail
-
RepositoryObjectWrapper
protected RepositoryObjectWrapper(T o)
Constructor of the class RepositoryObjectWrapper.- Parameters:
o
- The DataObject to wrap in the RepositoryObjectWrapper.
-
-
Method Detail
-
importImages
protected static boolean importImages(ConnectionHandler client, DataObject target, java.lang.String... paths) throws ServiceException, ServerException, java.io.IOException
Imports all images candidates in the paths to the target in OMERO.- Parameters:
client
- The client handling the connection.target
- The import target.paths
- Paths to the image files on the computer.- Returns:
- If the import did not exit because of an error.
- Throws:
ServiceException
- Cannot connect to OMERO.ServerException
- Server error.java.io.IOException
- Cannot read file.
-
importImage
protected static java.util.List<java.lang.Long> importImage(ConnectionHandler client, DataObject target, java.lang.String path) throws ServiceException, ServerException
Imports one image file to the target in OMERO.- Parameters:
client
- The client handling the connection.target
- The import target.path
- Path to the image file on the computer.- Returns:
- The list of IDs of the newly imported images.
- Throws:
ServiceException
- Cannot connect to OMERO.ServerException
- Server error.
-
-