public class ParamsHelper
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ParamsHelper.Acquirer
Interface added in order to allow ParamHelper instances to use methods
 from SharedResourcesI. 
 | 
| Constructor and Description | 
|---|
ParamsHelper(ParamsHelper.Acquirer acq,
            ome.services.util.Executor ex,
            ome.system.Principal p)  | 
| Modifier and Type | Method and Description | 
|---|---|
ParseJobI | 
buildParseJob(long id)
Build a job for the script with id. 
 | 
JobParams | 
generateScriptParams(long id,
                    boolean save,
                    Ice.Current __current)
Acquires an  
InteractiveProcessorPrx and runs a ParseJob. | 
JobParams | 
getOrCreateParams(long id,
                 Ice.Current __current)
Get the script params for the file. 
 | 
public ParamsHelper(ParamsHelper.Acquirer acq, ome.services.util.Executor ex, ome.system.Principal p)
public ParseJobI buildParseJob(long id) throws ServerError
id - script id.ServerError - if the job could not be built for the scriptpublic JobParams getOrCreateParams(long id, Ice.Current __current) throws ServerError
id - the ID of the script__current - regarding the method invocationServerError - if the params could not be retrieved or createdpublic JobParams generateScriptParams(long id, boolean save, Ice.Current __current) throws ServerError
InteractiveProcessorPrx and runs a ParseJob.
 If the "save" argument is true, then the JobParams instance will
 be saved to the database; otherwise, the ParseJob will be deleted.ServerError