Package com.xpn.xwiki.web
Class PropDeleteAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.AbstractPropChangeAction
-
- com.xpn.xwiki.web.PropDeleteAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("propdelete") @Singleton public class PropDeleteAction extends AbstractPropChangeActionAction for removing a property definition from the current class. The property to remove is specified in thepropnamerequest parameter, and the class is the one defined in the requested document.- Since:
- 2.4M2
- Version:
- $Id: e78d5d78340e1d7ef23cef27dd1d940e8d4421b2 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description PropDeleteAction()
-
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, localizePlainOrKey, 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
-
-