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

java.lang.Object
  extended by org.alfresco.web.app.servlet.command.BaseNodeCommandProcessor
      extended by org.alfresco.web.app.servlet.command.WorkflowCommandProcessor
All Implemented Interfaces:
CommandProcessor

public final class WorkflowCommandProcessor
extends BaseNodeCommandProcessor

Workflow specific command processor implementation.

Responsible for executing 'approve' and 'reject' workflow commands on a Node.


Field Summary
 
Fields inherited from class org.alfresco.web.app.servlet.command.BaseNodeCommandProcessor
targetRef
 
Constructor Summary
WorkflowCommandProcessor()
           
 
Method Summary
 void outputStatus(java.io.PrintWriter out)
          Output a simple status message to the supplied PrintWriter.
 void process(org.alfresco.service.ServiceRegistry serviceRegistry, javax.servlet.http.HttpServletRequest request, java.lang.String command)
          Process the supplied command name.
 
Methods inherited from class org.alfresco.web.app.servlet.command.BaseNodeCommandProcessor
validateArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowCommandProcessor

public WorkflowCommandProcessor()
Method Detail

process

public void process(org.alfresco.service.ServiceRegistry serviceRegistry,
                    javax.servlet.http.HttpServletRequest request,
                    java.lang.String command)
Description copied from interface: CommandProcessor
Process the supplied command name. It is the responsibility of the Command Processor to lookup the specified command name using the CommandFactory registry. For that reason it also has the responsiblity to initially register commands it is responsible for so they can be constructed later. If the supplied command is unknown to it then an exception should be thrown to indicate this.

Parameters:
serviceRegistry - ServiceRegistry
request - HttpServletRequest
command - Name of the command to construct and execute
See Also:
CommandProcessor.process(org.alfresco.service.ServiceRegistry, javax.servlet.http.HttpServletRequest, java.lang.String)

outputStatus

public void outputStatus(java.io.PrintWriter out)
Description copied from interface: CommandProcessor
Output a simple status message to the supplied PrintWriter. It can be assumed that the process() method was successful if this method is called.

Parameters:
out - PrintWriter
See Also:
CommandProcessor.outputStatus(java.io.PrintWriter)


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