com.xpn.xwiki.web
Class PropEnableAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.xpn.xwiki.web.XWikiAction
          extended by com.xpn.xwiki.web.AbstractPropChangeAction
              extended by com.xpn.xwiki.web.PropEnableAction

public class PropEnableAction
extends AbstractPropChangeAction

Action for re-enabling a property definition of the current class. The property to enable is specified in the propname request parameter, and the class is the one defined in the requested document.

Since:
2.4M2
Version:
$Id: 5d5a83e2a6391064f65841e1f039bde3bc2e4e17 $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
PropEnableAction()
           
 
Method Summary
 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, render
 
Methods inherited from class com.xpn.xwiki.web.XWikiAction
cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, sendGlobalRedirect, sendRedirect
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropEnableAction

public PropEnableAction()
Method Detail

changePropertyDefinition

public void changePropertyDefinition(BaseClass xclass,
                                     String propertyName,
                                     XWikiContext context)
                              throws XWikiException
The method which does the actual modification of the property definition.

Specified by:
changePropertyDefinition in class AbstractPropChangeAction
Parameters:
xclass - the affected class
propertyName - the property to change
context - the current request context
Throws:
XWikiException - if a storage error occurs


Copyright © 2004–2014 XWiki. All rights reserved.