public final class ScriptCommandProcessor extends Object implements CommandProcessor
Responsible for executing 'execute' script commands on a Node.
| Constructor and Description |
|---|
ScriptCommandProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
outputStatus(PrintWriter out)
Output a simple status message to the supplied PrintWriter.
|
void |
process(org.alfresco.service.ServiceRegistry serviceRegistry,
javax.servlet.http.HttpServletRequest request,
String command)
Process the supplied command name.
|
boolean |
validateArguments(javax.servlet.ServletContext sc,
String command,
Map<String,String> args,
String[] urlElements)
Pass and validate URL arguments for the command processor.
|
public boolean validateArguments(javax.servlet.ServletContext sc,
String command,
Map<String,String> args,
String[] urlElements)
CommandProcessorvalidateArguments in interface CommandProcessorsc - ServletContext, can be used to retrieve ServiceRegistry instance
from the Repository bean.command - Name of the command the arguments are forargs - Map of URL args passed to the command servleturlElements - String[] of the remaining URL arguments to the command servletCommandProcessor.validateArguments(javax.servlet.ServletContext, java.lang.String, java.util.Map, java.lang.String[])public void process(org.alfresco.service.ServiceRegistry serviceRegistry,
javax.servlet.http.HttpServletRequest request,
String command)
CommandProcessorprocess in interface CommandProcessorserviceRegistry - ServiceRegistryrequest - HttpServletRequestcommand - Name of the command to construct and executeCommandProcessor.process(org.alfresco.service.ServiceRegistry, javax.servlet.http.HttpServletRequest, java.lang.String)public void outputStatus(PrintWriter out)
CommandProcessoroutputStatus in interface CommandProcessorout - PrintWriterCommandProcessor.outputStatus(java.io.PrintWriter)Copyright © 2005–2018 Alfresco Software. All rights reserved.