T
- Subclass of DataObject
public abstract class ImportWrapper<T extends DataObject> extends AnnotatableWrapper<T> implements RepositoryObject
data
Modifier | Constructor and Description |
---|---|
protected |
ImportWrapper(T o)
Constructor of the class ImportWrapper.
|
Modifier and Type | Method and Description |
---|---|
protected List<Long> |
importImage(ConnectionHandler client,
String path)
Imports one image file to the target in OMERO.
|
protected boolean |
importImages(ConnectionHandler client,
String... paths)
Imports all images candidates in the paths to the target in OMERO.
|
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, annotationLinkType, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getDescription, getName, getParents, reload
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
addAndReplaceFile, addAndReplaceTable, addFile, addTable, addTags, copyAnnotationLinks, getAnnotationData, getKeyValuePairs, getTables, getValues, isLinked, link, link, link, linkIfNotLinked
protected ImportWrapper(T o)
o
- The DataObject to wrap in the ImportWrapper.protected boolean importImages(ConnectionHandler client, String... paths) throws ServiceException, AccessException, IOException
client
- The client handling the connection.paths
- Paths to the image files on the computer.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.IOException
- Cannot read file.protected List<Long> importImage(ConnectionHandler client, String path) throws ServiceException, AccessException, IOException
client
- The client handling the connection.path
- Path to the image file on the computer.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.IOException
- Cannot read file.Copyright © 2020–2023 GReD. All rights reserved.