public class OriginalMetadataRequestI extends omero.cmd.OriginalMetadataRequest implements IRequest
Constructor and Description |
---|
OriginalMetadataRequestI(PixelsService pixelsService) |
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.
|
protected omero.RLong |
firstIdOrNull(String query)
Use
IQuery.projection(String, Parameters) to load the first
long which matches the given query. |
Map<String,String> |
getCallContext()
Returns the desired call context for this request.
|
omero.cmd.Response |
getResponse()
Returns the current response value.
|
void |
init(Helper helper)
Method called within the transaction boundaries before any processing occurs.
|
protected void |
loadFileAnnotation()
Only called if
loadFileset() finds no Fileset . |
protected void |
loadFileset()
|
static void |
main(String[] args) |
protected void |
parseOriginalMetadataTxt(File file)
Read the given INI-style file and populate the maps with the properties from the corresponding sections.
|
Object |
step(int step)
Single uncancellable action which will be performed by this IRequest.
|
protected Map<String,omero.RType> |
wrap(Hashtable<String,Object> table)
|
__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_preMarshal
public OriginalMetadataRequestI(PixelsService pixelsService)
public Map<String,String> getCallContext()
IRequest
Map
as desired.getCallContext
in interface IRequest
public void init(Helper helper)
IRequest
Status
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)
IRequest
IRequest.buildResponse(int, Object)
for conversion and storage.public void finish() throws HandleI.Cancel
IRequest
HandleI.Cancel
will still rollback the current
transaction.finish
in interface IRequest
HandleI.Cancel
- if this request is cancelledpublic void buildResponse(int step, Object object)
IRequest
IRequest.step(int)
to a Response
object.buildResponse
in interface IRequest
step
- the step numberobject
- an object to be used in building the responsepublic omero.cmd.Response getResponse()
IRequest
getResponse
in interface IRequest
protected void loadFileset()
Fileset
attached to this Image
, and if present,
uses Bio-Formats to parse the metadata into the OriginalMetadataResponse
instance. If no Fileset
is present, then there may be a
FileAnnotation
present which has a static version of the metadata.protected void loadFileAnnotation()
loadFileset()
finds no Fileset
. If any FileAnnotation
instances with the appropriate namespace and name are found, the first one is taken and
parsed into the OriginalMetadataResponse
.protected omero.RLong firstIdOrNull(String query)
IQuery.projection(String, Parameters)
to load the first
long which matches the given query. This means that the first return
value in the select statement should likely be the id of an object.protected void parseOriginalMetadataTxt(File file)
file
- the file to read
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.