com.xpn.xwiki.web
Class PropDisableAction

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.PropDisableAction

public class PropDisableAction
extends AbstractPropChangeAction

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

Since:
2.4M2
Version:
$Id: 214eddb1fc60e9579fe053114c6b891e54d2ea5e $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
PropDisableAction()
           
 
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, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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

PropDisableAction

public PropDisableAction()
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-2013 XWiki. All Rights Reserved.