Package com.xpn.xwiki.web
Class CommentAddAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.CommentAddAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
- Direct Known Subclasses:
CommentSaveAction
@Component @Named("commentadd") @Singleton public class CommentAddAction extends XWikiAction
Action used to post a comment on a page, adds a comment object to the document and saves it, requires comment right but not edit right.- Version:
- $Id: 8484241350f606f0df2e7dc071f5e7086f7c229b $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description CommentAddAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
action(XWikiContext context)
protected Class<? extends XWikiForm>
getFormClass()
protected void
handleTemporaryUploadedFiles(XWikiDocument document, XWikiRequest request)
String
render(XWikiContext context)
-
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 classXWikiAction
- Returns:
- the class of the XWikiForm in charge of parsing the request
-
action
public boolean action(XWikiContext context) throws XWikiException
- Overrides:
action
in classXWikiAction
- Throws:
XWikiException
-
render
public String render(XWikiContext context) throws XWikiException
- Overrides:
render
in classXWikiAction
- Throws:
XWikiException
-
handleTemporaryUploadedFiles
protected void handleTemporaryUploadedFiles(XWikiDocument document, XWikiRequest request) throws XWikiException
- Throws:
XWikiException
-
-