Package com.xpn.xwiki.web
Class CommentSaveAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.CommentAddAction
-
- com.xpn.xwiki.web.CommentSaveAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("commentsave") @Singleton public class CommentSaveAction extends CommentAddAction
Action used to edit+save an existing comment in a page, saves the comment object in the document, requires comment right but not edit right.- Since:
- 8.4RC1
- Version:
- $Id: a9c0af57e9e550bab222287a11a1eaca61b2a2c9 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description CommentSaveAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
action(XWikiContext context)
protected Class<? extends XWikiForm>
getFormClass()
-
Methods inherited from class com.xpn.xwiki.web.CommentAddAction
handleTemporaryUploadedFiles, render
-
Methods inherited from class com.xpn.xwiki.web.XWikiAction
answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getLocalization, getLocalSerializer, getName, 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:
getFormClass
in classCommentAddAction
- Returns:
- the class of the XWikiForm in charge of parsing the request
-
action
public boolean action(XWikiContext context) throws XWikiException
- Overrides:
action
in classCommentAddAction
- Throws:
XWikiException
-
-