public final class TaskCommandProcessor extends Object implements CommandProcessor
Responsible for executing workflow task operations.
Constructor and Description |
---|
TaskCommandProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
outputStatus(PrintWriter out)
Output a simple status message to the supplied PrintWriter.
|
void |
process(ServiceRegistry serviceRegistry,
HttpServletRequest request,
String commandName)
Process the supplied command name.
|
boolean |
validateArguments(ServletContext sc,
String cmd,
Map<String,String> args,
String[] urlElements)
Pass and validate URL arguments for the command processor.
|
public boolean validateArguments(ServletContext sc, String cmd, Map<String,String> args, String[] urlElements)
CommandProcessor
validateArguments
in interface CommandProcessor
sc
- ServletContext, can be used to retrieve ServiceRegistry instance
from the Repository bean.cmd
- 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 servletpublic void process(ServiceRegistry serviceRegistry, HttpServletRequest request, String commandName)
CommandProcessor
process
in interface CommandProcessor
serviceRegistry
- ServiceRegistryrequest
- HttpServletRequestcommandName
- 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)
CommandProcessor
outputStatus
in interface CommandProcessor
out
- PrintWriterCommandProcessor.outputStatus(java.io.PrintWriter)
Copyright © 2005–2017 Alfresco Software. All rights reserved.