Package omero.grid
Class ParamsHelper
- java.lang.Object
-
- omero.grid.ParamsHelper
-
public class ParamsHelper extends java.lang.Object
- Since:
- Beta4.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ParamsHelper.Acquirer
Interface added in order to allow ParamHelper instances to use methods from SharedResourcesI.
-
Constructor Summary
Constructors Constructor Description ParamsHelper(ParamsHelper.Acquirer acq, ome.services.util.Executor ex, ome.system.Principal p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseJobI
buildParseJob(long id)
Build a job for the script with id.JobParams
generateScriptParams(long id, boolean save, Ice.Current __current)
Acquires anInteractiveProcessorPrx
and runs aParseJob
.JobParams
getOrCreateParams(long id, Ice.Current __current)
Get the script params for the file.
-
-
-
Constructor Detail
-
ParamsHelper
public ParamsHelper(ParamsHelper.Acquirer acq, ome.services.util.Executor ex, ome.system.Principal p)
-
-
Method Detail
-
buildParseJob
public ParseJobI buildParseJob(long id) throws ServerError
Build a job for the script with id.- Parameters:
id
- script id.- Returns:
- the job.
- Throws:
ServerError
- if the job could not be built for the script
-
getOrCreateParams
public JobParams getOrCreateParams(long id, Ice.Current __current) throws ServerError
Get the script params for the file.- Parameters:
id
- the ID of the script__current
- regarding the method invocation- Returns:
- jobparams of the script.
- Throws:
ServerError
- if the params could not be retrieved or created
-
generateScriptParams
public JobParams generateScriptParams(long id, boolean save, Ice.Current __current) throws ServerError
Acquires anInteractiveProcessorPrx
and runs aParseJob
. If the "save" argument is true, then theJobParams
instance will be saved to the database; otherwise, theParseJob
will be deleted.- Throws:
ServerError
-
-