Package com.xpn.xwiki.web
Class SaveAndContinueAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.SaveAndContinueAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("saveandcontinue") @Singleton public class SaveAndContinueAction extends XWikiActionAction used for saving and returning to the edit page rather than viewing changes.- Version:
- $Id: 7cbee2302a54162b8b038587a616c4a49969cc3b $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description SaveAndContinueAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaction(XWikiContext context)protected Class<? extends XWikiForm>getFormClass()protected StringgetName()Stringrender(XWikiContext context)-
Methods inherited from class com.xpn.xwiki.web.XWikiAction
answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getLocalization, getLocalSerializer, getProgress, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, initializeXWikiContext, isEntityReferenceNameValid, localizePlainOrKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, supportRedirections, writeAjaxErrorResponse
-
-
-
-
Method Detail
-
getFormClass
protected Class<? extends XWikiForm> getFormClass()
- Overrides:
getFormClassin classXWikiAction- Returns:
- the class of the XWikiForm in charge of parsing the request
-
getName
protected String getName()
- Overrides:
getNamein classXWikiAction- Returns:
- the name to put in the
XWikiContext, by default the component role hint is used
-
action
public boolean action(XWikiContext context) throws XWikiException
- Overrides:
actionin classXWikiAction- Throws:
XWikiException
-
render
public String render(XWikiContext context) throws XWikiException
- Overrides:
renderin classXWikiAction- Throws:
XWikiException
-
-