ome.services.blitz.impl
Class ScriptI

java.lang.Object
  extended by ome.services.blitz.impl.AbstractAmdServant
      extended by ome.services.blitz.impl.ScriptI
All Implemented Interfaces:
BlitzOnly, ServiceFactoryAware, omero.api._IScriptOperations, omero.api._ServiceInterfaceOperations, org.springframework.context.ApplicationContextAware

public class ScriptI
extends AbstractAmdServant
implements omero.api._IScriptOperations, ServiceFactoryAware, BlitzOnly

implementation of the IScript service interface.

Since:
3.0-Beta3
Author:
Donald MacDonald, donald@lifesci.dundee.ac.uk, Josh Moore, josh at glencoesoftware.com
See Also:
ome.api.IScript

Field Summary
protected  ServiceFactoryI factory
           
 
Fields inherited from class ome.services.blitz.impl.AbstractAmdServant
be, invoker, service
 
Constructor Summary
ScriptI(BlitzExecutor be)
           
 
Method Summary
 void deleteScript_async(omero.api.AMD_IScript_deleteScript cb, long id, Ice.Current __current)
          Delete the script with id from the server.
 void getParams_async(omero.api.AMD_IScript_getParams cb, long id, Ice.Current __current)
          Get the Parameters of the script.
 void getScript_async(omero.api.AMD_IScript_getScript cb, long id, Ice.Current __current)
          Return the script with the name to the user.
 void getScriptID_async(omero.api.AMD_IScript_getScriptID cb, String scriptName, Ice.Current __current)
          Get the id of the script with name scriptName.
 void getScripts_async(omero.api.AMD_IScript_getScripts cb, Ice.Current __current)
          Get Scripts will return all the scripts by id and name available on the server.
 void getScriptWithDetails_async(omero.api.AMD_IScript_getScriptWithDetails cb, long id, Ice.Current __current)
          Return the script with the name to the user.
 void runScript_async(omero.api.AMD_IScript_runScript cb, long id, Map<String,omero.RType> map, Ice.Current __current)
          Run the script.
 void setServiceFactory(ServiceFactoryI sf)
           
 void uploadScript_async(omero.api.AMD_IScript_uploadScript cb, String script, Ice.Current __current)
          Upload script to the server.
 
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, onSetOmeroContext, runnableCall, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected ServiceFactoryI factory
Constructor Detail

ScriptI

public ScriptI(BlitzExecutor be)
Method Detail

setServiceFactory

public void setServiceFactory(ServiceFactoryI sf)
Specified by:
setServiceFactory in interface ServiceFactoryAware

getScriptID_async

public void getScriptID_async(omero.api.AMD_IScript_getScriptID cb,
                              String scriptName,
                              Ice.Current __current)
                       throws omero.ServerError
Get the id of the script with name scriptName.

Specified by:
getScriptID_async in interface omero.api._IScriptOperations
Parameters:
scriptName - Name of the script to find id for.
__current - ice context.
Throws:
omero.ServerError

uploadScript_async

public void uploadScript_async(omero.api.AMD_IScript_uploadScript cb,
                               String script,
                               Ice.Current __current)
                        throws omero.ServerError
Upload script to the server.

Specified by:
uploadScript_async in interface omero.api._IScriptOperations
Parameters:
script -
__current - ice context.
Throws:
omero.ServerError

getScriptWithDetails_async

public void getScriptWithDetails_async(omero.api.AMD_IScript_getScriptWithDetails cb,
                                       long id,
                                       Ice.Current __current)
                                throws omero.ServerError
Return the script with the name to the user.

Specified by:
getScriptWithDetails_async in interface omero.api._IScriptOperations
Parameters:
name - see above.
__current - ice context.
Throws:
omero.ServerError - validation, api usage.

getScript_async

public void getScript_async(omero.api.AMD_IScript_getScript cb,
                            long id,
                            Ice.Current __current)
                     throws omero.ServerError
Return the script with the name to the user.

Specified by:
getScript_async in interface omero.api._IScriptOperations
Parameters:
name - see above.
__current - ice context.
Throws:
omero.ServerError - validation, api usage.

getParams_async

public void getParams_async(omero.api.AMD_IScript_getParams cb,
                            long id,
                            Ice.Current __current)
                     throws omero.ServerError
Get the Parameters of the script.

Specified by:
getParams_async in interface omero.api._IScriptOperations
Parameters:
id - see above.
__current - Ice context
Throws:
omero.ServerError - validation, api usage.

runScript_async

public void runScript_async(omero.api.AMD_IScript_runScript cb,
                            long id,
                            Map<String,omero.RType> map,
                            Ice.Current __current)
                     throws omero.ServerError
Run the script. This script also tests the parameters against the script params, checking that the names of the parameters match and their types match.

Specified by:
runScript_async in interface omero.api._IScriptOperations
Parameters:
id - of the script to run
map - the map of parameters {String:RType} map of the parameters name, value.
__current - ice context.
Throws:
omero.ServerError - validation, api usage.

getScripts_async

public void getScripts_async(omero.api.AMD_IScript_getScripts cb,
                             Ice.Current __current)
                      throws omero.ServerError
Get Scripts will return all the scripts by id and name available on the server.

Specified by:
getScripts_async in interface omero.api._IScriptOperations
Parameters:
__current - ice context,
Throws:
omero.ServerError - validation, api usage.

deleteScript_async

public void deleteScript_async(omero.api.AMD_IScript_deleteScript cb,
                               long id,
                               Ice.Current __current)
                        throws omero.ServerError
Delete the script with id from the server.

Specified by:
deleteScript_async in interface omero.api._IScriptOperations
Parameters:
id - the id of the script to delete.
Throws:
omero.ServerError


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.