Package com.xpn.xwiki.web
Class PropDisableAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.AbstractPropChangeAction
-
- com.xpn.xwiki.web.PropDisableAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("propdisable") @Singleton public class PropDisableAction extends AbstractPropChangeActionAction for disabling a property definition of the current class. The property to disable is specified in thepropnamerequest parameter, and the class is the one defined in the requested document.- Since:
- 2.4M2
- Version:
- $Id: 6388e06067405c9beb68eafeeb007f45da1a105b $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description PropDisableAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context)The method which does the actual modification of the property definition.-
Methods inherited from class com.xpn.xwiki.web.AbstractPropChangeAction
action, getFormClass, 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, localizeOrReturnKey, localizePlainOrKey, localizePlainOrReturnKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, supportRedirections, writeAjaxErrorResponse
-
-
-
-
Method Detail
-
changePropertyDefinition
public void changePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context) throws XWikiException
Description copied from class:AbstractPropChangeActionThe method which does the actual modification of the property definition.- Specified by:
changePropertyDefinitionin classAbstractPropChangeAction- Parameters:
xclass- the affected classpropertyName- the property to changecontext- the current request context- Throws:
XWikiException- if a storage error occurs
-
-