public abstract class AbstractPropChangeAction extends XWikiAction
propname
request parameter, and the class is the one defined in the requested document.ACTION_PROGRESS, componentDescriptor, container, execution, handleRedirectObject, observation, waitForXWikiInitialization
Constructor and Description |
---|
AbstractPropChangeAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
action(XWikiContext context)
Tries to change the specified property, and redirect back to the class editor (or the specified
xredirect
location). |
abstract void |
changePropertyDefinition(BaseClass xclass,
String propertyName,
XWikiContext context)
The method which does the actual modification of the property definition.
|
protected Class<? extends XWikiForm> |
getFormClass() |
String |
render(XWikiContext context) |
answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getLocalization, getLocalSerializer, getName, getProgress, getRealPath, getTranslatedDocument, handleRedirectObject, handleRevision, initializeContainerComponent, initializeXWikiContext, initializeXWikiContext, isEntityReferenceNameValid, localizePlainOrKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, writeAjaxErrorResponse
protected Class<? extends XWikiForm> getFormClass()
getFormClass
in class XWikiAction
public boolean action(XWikiContext context) throws XWikiException
xredirect
location). If the property does not exist, forward to the exception page.action
in class XWikiAction
context
- the current request contextfalse
if the operation succeeded and the response is finished, true
if the response must
be rendered by render(XWikiContext)
XWikiException
- if saving the document failspublic String render(XWikiContext context) throws XWikiException
render
in class XWikiAction
XWikiException
public abstract void changePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context) throws XWikiException
xclass
- the affected classpropertyName
- the property to changecontext
- the current request contextXWikiException
- if a storage error occursCopyright © 2004–2021 XWiki. All rights reserved.