public class UIActionCommandProcessor extends java.lang.Object implements ExtCommandProcessor
Responsible for executing specific UI actions via a REST style URL interface.
The URL postfix for each specific command depends on the context that is required
for that command. For example, a command to launch the Create Web Content dialog may
require the current sandbox and the current web project as its context e.g.
http://server/alfresco/command/ui/createwebcontent?sandbox=website1&webproject=1234567890
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_CONTAINER |
| Constructor and Description |
|---|
UIActionCommandProcessor() |
| Modifier and Type | Method and Description |
|---|---|
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,
javax.servlet.http.HttpServletResponse response,
java.lang.String command)
Process the supplied command name.
|
void |
process(org.alfresco.service.ServiceRegistry serviceRegistry,
javax.servlet.http.HttpServletRequest request,
java.lang.String command)
Process the supplied command name.
|
boolean |
validateArguments(javax.servlet.ServletContext sc,
java.lang.String command,
java.util.Map args,
java.lang.String[] urlElements)
Pass and validate URL arguments for the command processor.
|
public static final java.lang.String PARAM_CONTAINER
public boolean validateArguments(javax.servlet.ServletContext sc,
java.lang.String command,
java.util.Map args,
java.lang.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,
java.lang.String command)
CommandProcessorprocess in interface CommandProcessorserviceRegistry - ServiceRegistryrequest - HttpServletRequestcommand - Name of the command to construct and executepublic void process(org.alfresco.service.ServiceRegistry serviceRegistry,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String command)
ExtCommandProcessorprocess in interface ExtCommandProcessorserviceRegistry - ServiceRegistryrequest - HttpServletRequestresponse - HttpServletResponsecommand - Name of the command to construct and executeExtCommandProcessor.process(org.alfresco.service.ServiceRegistry, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)public void outputStatus(java.io.PrintWriter out)
CommandProcessoroutputStatus in interface CommandProcessorout - PrintWriterCommandProcessor.outputStatus(java.io.PrintWriter)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.