public class CommandServlet extends BaseServlet
The URL to the servlet should be generated thus:
/alfresco/command/processor-name/command-name/args/...
The 'processor-name' identifies the command processor to execute the command. For example the 'workflow' processor will execute workflow commands upon a node (e.g. "approve" or "reject"). For example:
/alfresco/command/workflow/approve/workspace/SpacesStore/0000-0000-0000-0000The store protocol, followed by the store ID, followed by the content Node Id used to identify the node to execute the workflow action upon.
A 'return-page' URL argument can be specified as the redirect page to navigate too after processing.
Like most Alfresco servlets, the URL may be followed by a valid 'ticket' argument for authentication: ?ticket=1234567890
And/or also followed by the "?guest=true" argument to force guest access login for the URL.
BaseServlet.PathRefInfo| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARG_RETURNPAGE |
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE| Constructor and Description |
|---|
CommandServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
checkAccess, getServiceRegistry, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSPdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic static final java.lang.String ARG_RETURNPAGE
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionHttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.