org.alfresco.web.app.servlet.command
Class ExecuteScriptCommand

java.lang.Object
  extended by org.alfresco.web.app.servlet.command.ExecuteScriptCommand
All Implemented Interfaces:
Command

public final class ExecuteScriptCommand
extends java.lang.Object
implements Command

Execute Script command implementation.

Executes the supplied script against the default data-model.


Field Summary
static java.lang.String PROP_ARGS
           
static java.lang.String PROP_DOCUMENT
           
static java.lang.String PROP_SCRIPT
           
static java.lang.String PROP_USERPERSON
           
 
Constructor Summary
ExecuteScriptCommand()
           
 
Method Summary
 java.lang.Object execute(org.alfresco.service.ServiceRegistry serviceRegistry, java.util.Map properties)
          Execute the command
 java.lang.String[] getPropertyNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SCRIPT

public static final java.lang.String PROP_SCRIPT
See Also:
Constant Field Values

PROP_DOCUMENT

public static final java.lang.String PROP_DOCUMENT
See Also:
Constant Field Values

PROP_USERPERSON

public static final java.lang.String PROP_USERPERSON
See Also:
Constant Field Values

PROP_ARGS

public static final java.lang.String PROP_ARGS
See Also:
Constant Field Values
Constructor Detail

ExecuteScriptCommand

public ExecuteScriptCommand()
Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in interface Command
Returns:
the names of the properties required for this command
See Also:
Command.getPropertyNames()

execute

public java.lang.Object execute(org.alfresco.service.ServiceRegistry serviceRegistry,
                                java.util.Map properties)
Description copied from interface: Command
Execute the command

Specified by:
execute in interface Command
Parameters:
serviceRegistry - The ServiceRegistry instance
properties - Bag of named properties for the command
Returns:
return value from the command if any
See Also:
Command.execute(org.alfresco.service.ServiceRegistry, java.util.Map)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.