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 interfaceParamsHelper.AcquirerInterface 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 ParseJobIbuildParseJob(long id)Build a job for the script with id.JobParamsgenerateScriptParams(long id, boolean save, Ice.Current __current)Acquires anInteractiveProcessorPrxand runs aParseJob.JobParamsgetOrCreateParams(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 anInteractiveProcessorPrxand runs aParseJob. If the "save" argument is true, then theJobParamsinstance will be saved to the database; otherwise, theParseJobwill be deleted.- Throws:
ServerError
-
-