Package omero.api

Interface AMD_IScript_getScriptsByMimetype

  • All Superinterfaces:
    Ice.AMDCallback

    public interface AMD_IScript_getScriptsByMimetype
    extends Ice.AMDCallback
    This method returns official server scripts identified with the specified extension as a list of OriginalFile objects. These scripts will be executed by the server if submitted via runScript. The input parameters necessary for proper functioning can be retrieved via getParams. The OriginalFile.path value can be used in other official scripts via the language specific import command, since the script directory will be placed on the appropriate environment path variable.
     
     scripts = scriptService.getScripts("py")
     for script in scripts:
     text = scriptService.getScriptText(script.id.val)
     path = script.path.val\[1:\] # First symbol is a "/"
     path = path.replace("/",".")
     print "Possible import: %s" % path
     
     
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void ice_response​(java.util.List<OriginalFile> __ret)
      ice_response indicates that the operation completed successfully.
      • Methods inherited from interface Ice.AMDCallback

        ice_exception
    • Method Detail

      • ice_response

        void ice_response​(java.util.List<OriginalFile> __ret)
        ice_response indicates that the operation completed successfully.
        Parameters:
        __ret - (return value) see above.