org.mmbase.applications.vprowizards.spring.action
Class UpdateNodeAction

java.lang.Object
  extended by org.mmbase.applications.vprowizards.spring.action.Action
      extended by org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction
          extended by org.mmbase.applications.vprowizards.spring.action.UpdateNodeAction

public class UpdateNodeAction
extends AbstractNodeAction

This class finds the node that is identified by the field 'nodenr', and updates it with the given field values.

Author:
Ernst Bunders

Field Summary
 
Fields inherited from class org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction
securityContext
 
Constructor Summary
UpdateNodeAction()
           
 
Method Summary
protected  void createCacheFlushHints()
          This template method is called when the node to edit is changed.
protected  Node createNode(Transaction transaction, Map<String,Node> idMap, HttpServletRequest request)
          This template method is called to obtain the node for this action.
 String getNodenr()
           
 void setNodenr(String nodenr)
           
 
Methods inherited from class org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction
addCachFlushHint, addFieldError, addFieldError, addFieldErrorTypeMessage, addFieldErrorTypeMessage, addFieldErrorTypeValue, addGlobalError, addGlobalError, addGlobalError, addNodeParam, addParam, getDateFields, getFields, getFile, getId, getLocale, getNode, hasChanged, hasErrors, isNodeNullIllegal, mayCreate, mayDelete, mayWrite, process, processNode, setChanged, setDateFields, setFields, setFile, setHtmlField, setId, setSecurityContext, shouldProcess, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateNodeAction

public UpdateNodeAction()
Method Detail

createCacheFlushHints

protected final void createCacheFlushHints()
Description copied from class: AbstractNodeAction
This template method is called when the node to edit is changed. custom cachflush hints can be set here. This class dous not know if the current node is updated or created, so it dousn't know what kind of events to create.

Specified by:
createCacheFlushHints in class AbstractNodeAction

createNode

protected final Node createNode(Transaction transaction,
                                Map<String,Node> idMap,
                                HttpServletRequest request)
Description copied from class: AbstractNodeAction
This template method is called to obtain the node for this action. it is the responsibility of the implementation of this method to set a global error (using addGlobalError) when something goes wrong. In that case the action stops.

Specified by:
createNode in class AbstractNodeAction
Parameters:
transaction - the mmmbase transaction
Returns:
the node this action should handle or null if an error occurs

setNodenr

public final void setNodenr(String nodenr)

getNodenr

public final String getNodenr()


MMBase 2.0-SNAPSHOT - null