com.xpn.xwiki.web
Class PropDeleteAction

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

public class PropDeleteAction
extends AbstractPropChangeAction

Action for removing a property definition from the current class. The property to remove is specified in the propname request parameter, and the class is the one defined in the requested document.

Since:
2.4M2
Version:
$Id: ccdd4b6bd1bb9b77e38f6c43e1cb511798069002 $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
PropDeleteAction()
           
 
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

PropDeleteAction

public PropDeleteAction()
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.