public abstract class AbstractPropChangeAction extends XWikiAction
propname
request parameter, and the class is the one defined in the requested document.ACTION_PROGRESS, handleRedirectObject, 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.
|
String |
render(XWikiContext context) |
answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getLocalization, getLocalSerializer, getProgress, getRealPath, getTranslatedDocument, handleRedirectObject, handleRevision, initializeContainerComponent, initializeXWikiContext, isEntityReferenceNameValid, localizePlainOrKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, writeAjaxErrorResponse
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
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.