com.xpn.xwiki.web
Class EditAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.xpn.xwiki.web.XWikiAction
          extended by com.xpn.xwiki.web.EditAction
Direct Known Subclasses:
PreviewAction

public class EditAction
extends XWikiAction

Initializes a document before it is edited.

Version:
$Id: 9956f1edb94592a4138c9048d894a1d1c006acf4 $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
EditAction()
           
 
Method Summary
protected  XWikiDocument prepareEditedDocument(XWikiContext context)
          Determines the edited document (translation) and updates it based on the template specified on the request and any additional request parameters that overwrite the default values from the template.
 String render(XWikiContext context)
           
 
Methods inherited from class com.xpn.xwiki.web.XWikiAction
action, cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, sendGlobalRedirect, sendRedirect
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditAction

public EditAction()
Method Detail

render

public String render(XWikiContext context)
              throws XWikiException
Overrides:
render in class XWikiAction
Throws:
XWikiException

prepareEditedDocument

protected XWikiDocument prepareEditedDocument(XWikiContext context)
                                       throws XWikiException
Determines the edited document (translation) and updates it based on the template specified on the request and any additional request parameters that overwrite the default values from the template.

Parameters:
context - the XWiki context
Returns:
the edited document
Throws:
XWikiException - if something goes wrong


Copyright © 2004–2014 XWiki. All rights reserved.