Package com.xpn.xwiki.web
Class PropEnableAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.AbstractPropChangeAction
-
- com.xpn.xwiki.web.PropEnableAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("propenable") @Singleton public class PropEnableAction extends AbstractPropChangeAction
Action for re-enabling a property definition of the current class. The property to enable is specified in thepropname
request parameter, and the class is the one defined in the requested document.- Since:
- 2.4M2
- Version:
- $Id: 7890df0b4e80e6e198cb25fe7ce1a82de0f608f1 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description PropEnableAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changePropertyDefinition(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:AbstractPropChangeAction
The method which does the actual modification of the property definition.- Specified by:
changePropertyDefinition
in classAbstractPropChangeAction
- Parameters:
xclass
- the affected classpropertyName
- the property to changecontext
- the current request context- Throws:
XWikiException
- if a storage error occurs
-
-