Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.shell.commands.repository
Class ScriptingCommand

java.lang.Object
  extended by org.nuxeo.ecm.shell.commands.repository.AbstractCommand
      extended by org.nuxeo.ecm.shell.commands.repository.ScriptingCommand
All Implemented Interfaces:
Command

public class ScriptingCommand
extends AbstractCommand

Author:
Bogdan Stefanescu

Constructor Summary
ScriptingCommand(CommandDescriptor descriptor, java.io.File file)
           
 
Method Summary
static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine, java.io.File file)
           
 CommandHeader getCommandHeader()
           
static java.lang.String getExtension(java.io.File file)
           
 javax.script.CompiledScript getScript()
           
 void run(CommandLine cmdLine)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptingCommand

public ScriptingCommand(CommandDescriptor descriptor,
                        java.io.File file)
Method Detail

getCommandHeader

public CommandHeader getCommandHeader()
                               throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run(CommandLine cmdLine)
         throws java.lang.Exception
Specified by:
run in interface Command
Specified by:
run in class AbstractCommand
Throws:
java.lang.Exception

compileScript

public static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine,
                                                        java.io.File file)
                                                 throws javax.script.ScriptException
Throws:
javax.script.ScriptException

getExtension

public static java.lang.String getExtension(java.io.File file)

getScript

public javax.script.CompiledScript getScript()
                                      throws javax.script.ScriptException,
                                             java.io.IOException,
                                             java.text.ParseException
Throws:
javax.script.ScriptException
java.io.IOException
java.text.ParseException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.