org.alfresco.web.app.servlet
Class CommandServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.alfresco.web.app.servlet.BaseServlet
              extended by org.alfresco.web.app.servlet.CommandServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CommandServlet
extends BaseServlet

Servlet responsible for executing commands upon node(s).

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-0000
The 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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.web.app.servlet.BaseServlet
BaseServlet.PathRefInfo
 
Field Summary
static java.lang.String ARG_RETURNPAGE
           
 
Fields inherited from class org.alfresco.web.app.servlet.BaseServlet
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE
 
Constructor Summary
CommandServlet()
           
 
Method Summary
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Methods inherited from class org.alfresco.web.app.servlet.BaseServlet
checkAccess, getServiceRegistry, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSP
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARG_RETURNPAGE

public static final java.lang.String ARG_RETURNPAGE
See Also:
Constant Field Values
Constructor Detail

CommandServlet

public CommandServlet()
Method Detail

service

protected void service(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws javax.servlet.ServletException,
                       java.io.IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)


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