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

Quick Search    Search Deep

com.RuntimeCollective.sitemap.action
Class MakePublishableToBeApprovedAction  view MakePublishableToBeApprovedAction download MakePublishableToBeApprovedAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.RuntimeCollective.sitemap.action.MakePublishableToBeApprovedAction

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

Implementation of Action that makes a Publishable ToBeApproved (or "Approved", and also makes a new version, if the Publishable's needsApproval() is false). It is passed the id of the Publishable.

Version:
$Id: MakePublishableToBeApprovedAction.java,v 1.6 2003/09/30 15:12:59 joe Exp $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
MakePublishableToBeApprovedAction()
           
 
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)
          Make a Publishable ToBeApproved (or "Approved", and then make a new version, if the Publishable's needsApproval() is false).
 
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

MakePublishableToBeApprovedAction

public MakePublishableToBeApprovedAction()
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
Make a Publishable ToBeApproved (or "Approved", and then make a new version, if the Publishable's needsApproval() is false). Take the id of the Publishable as a parameter.

The following Forwards are returned:
failure - local forward to go to if there was a problem editing
cancel - local forward to go to if the edition was cancelled.
success - local forward to go to if the edition successful.

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