|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
com.xpn.xwiki.web.XWikiAction
com.xpn.xwiki.web.PreviewAction
com.xpn.xwiki.web.SaveAction
public class SaveAction
Action used for saving and proceeding to view the saved page. Used as a generic action for saving documents.
Field Summary | |
---|---|
static String |
ACTION_NAME
The identifier of the save action. |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
SaveAction()
|
Method Summary | |
---|---|
boolean |
action(XWikiContext context)
|
String |
render(XWikiContext context)
|
boolean |
save(XWikiContext context)
Saves the current document, updated according to the parameters sent in the request. |
Methods inherited from class com.xpn.xwiki.web.XWikiAction |
---|
cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, sendGlobalRedirect, sendRedirect |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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 |
Field Detail |
---|
public static final String ACTION_NAME
Constructor Detail |
---|
public SaveAction()
Method Detail |
---|
public boolean save(XWikiContext context) throws XWikiException
context
- The current request context
.
true
if there was an error and the response needs to render an error page,
false
if the document was correctly saved.
XWikiException
- If an error occured: cannot communicate with the storage module, or cannot update the
document because the request contains invalid parameters.public boolean action(XWikiContext context) throws XWikiException
action
in class PreviewAction
XWikiException
public String render(XWikiContext context) throws XWikiException
render
in class PreviewAction
XWikiException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |