public class ManagedImportRequestI extends omero.grid.ImportRequest implements IRequest
FilesetJobLink instances which need to be handled
on the server-side. This will primarily provide the step-location required
by Handle by calling back to the
ManagedImportProcessI object.| Modifier and Type | Field and Description |
|---|---|
omero.cmd.HandlePrx |
handle
Set by ManagedImportProcessI when verifyUpload has been called.
|
| Constructor and Description |
|---|
ManagedImportRequestI(Registry reg,
TileSizes sizes,
RepositoryDao dao,
OMEROWrapper wrapper,
String token) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildResponse(int step,
Object object)
Post-transaction chance to map from the return value of
IRequest.step(int) to a Response object. |
void |
finish()
Method within the transaction boundaries after all processing has
occurred.
|
Object |
generateThumbnails(omero.model.ThumbnailGenerationJob tgj) |
Map<String,String> |
getCallContext()
Returns the desired call context for this request.
|
omero.cmd.Response |
getResponse()
Returns the current response value.
|
Map<String,List<omero.model.IObject>> |
importMetadata(omero.model.MetadataImportJob mij)
Uses the
OMEROMetadataStoreClient to save all metadata for the
current image provided. |
Object |
index(omero.model.IndexingJob ij) |
void |
init(Helper helper)
Method called within the transaction boundaries before any processing occurs.
|
MessageDigest |
parseData(String fileName,
int series,
ImportSize size)
Parse the binary data to generate min/max values and
allow an md to be calculated.
|
Object |
pixelData(omero.model.PixelDataJob pdj) |
Object |
script(omero.model.ScriptJob sj) |
Object |
step(int step)
Single uncancellable action which will be performed by this IRequest.
|
__readImpl, __writeImpl, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __collocDispatch, __dispatch, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshalpublic omero.cmd.HandlePrx handle
public ManagedImportRequestI(Registry reg, TileSizes sizes, RepositoryDao dao, OMEROWrapper wrapper, String token)
public Map<String,String> getCallContext()
IRequestMap as desired.getCallContext in interface IRequestpublic void init(Helper helper)
IRequestStatus object by calling Helper.setSteps(int). This count
will define how many times the IRequest.step(int) method will be called.
The Helper instance passed in contains those resources needed by
IRequests to interact with data and should be stored for later use.public Object step(int step)
IRequestIRequest.buildResponse(int, Object) for conversion and storage.public void finish()
throws HandleI.Cancel
IRequestHandleI.Cancel will still rollback the current
transaction.finish in interface IRequestHandleI.Cancel - if this request is cancelledpublic void buildResponse(int step,
Object object)
IRequestIRequest.step(int) to a Response object.buildResponse in interface IRequeststep - the step numberobject - an object to be used in building the responsepublic omero.cmd.Response getResponse()
IRequestgetResponse in interface IRequestpublic Map<String,List<omero.model.IObject>> importMetadata(omero.model.MetadataImportJob mij) throws Throwable
OMEROMetadataStoreClient to save all metadata for the
current image provided.mij - Object hosting metadata to save.Pixels id.loci.formats.FormatException - if there is an error parsing metadata.IOException - if there is an error reading the file.Throwablepublic Object generateThumbnails(omero.model.ThumbnailGenerationJob tgj) throws Throwable
Throwablepublic Object index(omero.model.IndexingJob ij)
public Object script(omero.model.ScriptJob sj)
public MessageDigest parseData(String fileName, int series, ImportSize size) throws loci.formats.FormatException, IOException, omero.ServerError
series - loci.formats.FormatExceptionIOExceptionomero.ServerError
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.