Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.action
Class RevertEditedFromLiveVersionAction  view RevertEditedFromLiveVersionAction download RevertEditedFromLiveVersionAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.RuntimeCollective.webapps.action.RevertEditedFromLiveVersionAction

public final class RevertEditedFromLiveVersionAction
extends org.apache.struts.action.Action

Implementation of Action that reverts the Edited version of a Versioned to its Live version. This is done by copying the Live version on top of the Edited version. The Live version itself is not touched. The id of the Versioned is passed as a parameter.

Version:
$Id: RevertEditedFromLiveVersionAction.java,v 1.6 2003/09/30 15:13:08 joe Exp $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
RevertEditedFromLiveVersionAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Revert the Edited version to the Live version.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, 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

RevertEditedFromLiveVersionAction

public RevertEditedFromLiveVersionAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Revert the Edited version to the Live version. The id of the Versioned is passed as a parameter.

The following Forwards are returned:
success - local forward if it worked
failure - local forward to go to if there was a problem
cancel - local forward to go to if the action was cancelled.

The following error messages are returned:
error.db.connection - if there was a problem connecting to the database