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
           
protected  ParamsHelper helper
           
protected  ScriptRepoHelper scripts
           
 
Fields inherited from class ome.services.blitz.impl.AbstractAmdServant
be, ctx, invoker, service
 
Constructor Summary
ScriptI(BlitzExecutor be, ScriptRepoHelper scripts)
           
 
Method Summary
 void canRunScript_async(omero.api.AMD_IScript_canRunScript __cb, long scriptID, Ice.Current __current)
           
 void deleteScript_async(omero.api.AMD_IScript_deleteScript cb, long id, Ice.Current __current)
          Delete the script with id from the server.
 void editScript_async(omero.api.AMD_IScript_editScript __cb, omero.model.OriginalFile fileObject, String scriptText, Ice.Current __current)
           
 void getParams_async(omero.api.AMD_IScript_getParams __cb, long id, Ice.Current __current)
          Get the Parameters of the script.
 void getScriptID_async(omero.api.AMD_IScript_getScriptID __cb, String scriptPath, Ice.Current __current)
          Get the id of the official script with given path.
 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 getScriptText_async(omero.api.AMD_IScript_getScriptText __cb, long id, Ice.Current __current)
          Return the script with the name to the user.
 void getScriptWithDetails_async(omero.api.AMD_IScript_getScriptWithDetails __cb, long id, Ice.Current __current)
          Return the script with the name to the user.
 void getUserScripts_async(omero.api.AMD_IScript_getUserScripts __cb, List<omero.model.IObject> acceptsList, Ice.Current __current)
           
 void runScript_async(omero.api.AMD_IScript_runScript __cb, long scriptID, Map<String,omero.RType> inputs, omero.RInt waitSecs, Ice.Current __current)
           
 void setServiceFactory(ServiceFactoryI sf)
           
 void uploadOfficialScript_async(omero.api.AMD_IScript_uploadOfficialScript __cb, String path, String scriptText, Ice.Current __current)
           
 void uploadScript_async(omero.api.AMD_IScript_uploadScript __cb, String path, String scriptText, Ice.Current __current)
          Upload script to the server.
 void validateScript_async(omero.api.AMD_IScript_validateScript __cb, omero.model.Job j, List<omero.model.IObject> acceptsList, Ice.Current __current)
           
 
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, close_async, close, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, preClose, runnableCall, safeRunnableCall, 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

helper

protected ParamsHelper helper

scripts

protected final ScriptRepoHelper scripts
Constructor Detail

ScriptI

public ScriptI(BlitzExecutor be,
               ScriptRepoHelper scripts)
Method Detail

setServiceFactory

public void setServiceFactory(ServiceFactoryI sf)
                       throws omero.ServerError
Specified by:
setServiceFactory in interface ServiceFactoryAware
Throws:
omero.ServerError

runScript_async

public void runScript_async(omero.api.AMD_IScript_runScript __cb,
                            long scriptID,
                            Map<String,omero.RType> inputs,
                            omero.RInt waitSecs,
                            Ice.Current __current)
                     throws omero.ServerError
Specified by:
runScript_async in interface omero.api._IScriptOperations
Throws:
omero.ServerError

canRunScript_async

public void canRunScript_async(omero.api.AMD_IScript_canRunScript __cb,
                               long scriptID,
                               Ice.Current __current)
                        throws omero.ServerError
Specified by:
canRunScript_async in interface omero.api._IScriptOperations
Throws:
omero.ServerError

getScriptID_async

public void getScriptID_async(omero.api.AMD_IScript_getScriptID __cb,
                              String scriptPath,
                              Ice.Current __current)
                       throws omero.ServerError
Get the id of the official script with given path.

Specified by:
getScriptID_async in interface omero.api._IScriptOperations
Parameters:
scriptPath - OriginalFile.getPath() 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 path,
                               String scriptText,
                               Ice.Current __current)
                        throws omero.ServerError
Upload script to the server.

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

uploadOfficialScript_async

public void uploadOfficialScript_async(omero.api.AMD_IScript_uploadOfficialScript __cb,
                                       String path,
                                       String scriptText,
                                       Ice.Current __current)
                                throws omero.ServerError
Specified by:
uploadOfficialScript_async in interface omero.api._IScriptOperations
Throws:
omero.ServerError

editScript_async

public void editScript_async(omero.api.AMD_IScript_editScript __cb,
                             omero.model.OriginalFile fileObject,
                             String scriptText,
                             Ice.Current __current)
                      throws omero.ServerError
Specified by:
editScript_async in interface omero.api._IScriptOperations
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.

getScriptText_async

public void getScriptText_async(omero.api.AMD_IScript_getScriptText __cb,
                                long id,
                                Ice.Current __current)
                         throws omero.ServerError
Return the script with the name to the user.

Specified by:
getScriptText_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.

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.

getUserScripts_async

public void getUserScripts_async(omero.api.AMD_IScript_getUserScripts __cb,
                                 List<omero.model.IObject> acceptsList,
                                 Ice.Current __current)
                          throws omero.ServerError
Specified by:
getUserScripts_async in interface omero.api._IScriptOperations
Throws:
omero.ServerError

validateScript_async

public void validateScript_async(omero.api.AMD_IScript_validateScript __cb,
                                 omero.model.Job j,
                                 List<omero.model.IObject> acceptsList,
                                 Ice.Current __current)
                          throws omero.ServerError
Specified by:
validateScript_async in interface omero.api._IScriptOperations
Throws:
omero.ServerError

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.2.0-r7571-b29

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