org.dspace.xmlworkflow.state.actions.processingaction
Class AcceptEditRejectAction

java.lang.Object
  extended by org.dspace.xmlworkflow.state.actions.Action
      extended by org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
          extended by org.dspace.xmlworkflow.state.actions.processingaction.AcceptEditRejectAction

public class AcceptEditRejectAction
extends ProcessingAction

Processing class of an action that allows users to edit/accept/reject a workflow item

Author:
Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)

Field Summary
static int MAIN_PAGE
           
static int REJECT_PAGE
           
 
Constructor Summary
AcceptEditRejectAction()
           
 
Method Summary
 void activate(Context c, XmlWorkflowItem wf)
           
 ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)
           
 ActionResult processMainPage(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)
           
 ActionResult processRejectPage(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
isAuthorized
 
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
addErrorField, alertUsersOnActivation, getErrorFields, getParent, getProvenanceStartId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_PAGE

public static final int MAIN_PAGE
See Also:
Constant Field Values

REJECT_PAGE

public static final int REJECT_PAGE
See Also:
Constant Field Values
Constructor Detail

AcceptEditRejectAction

public AcceptEditRejectAction()
Method Detail

activate

public void activate(Context c,
                     XmlWorkflowItem wf)
              throws SQLException
Specified by:
activate in class Action
Throws:
SQLException

execute

public ActionResult execute(Context c,
                            XmlWorkflowItem wfi,
                            Step step,
                            javax.servlet.http.HttpServletRequest request)
                     throws SQLException,
                            AuthorizeException,
                            IOException
Specified by:
execute in class Action
Throws:
SQLException
AuthorizeException
IOException

processMainPage

public ActionResult processMainPage(Context c,
                                    XmlWorkflowItem wfi,
                                    Step step,
                                    javax.servlet.http.HttpServletRequest request)
                             throws SQLException,
                                    AuthorizeException
Throws:
SQLException
AuthorizeException

processRejectPage

public ActionResult processRejectPage(Context c,
                                      XmlWorkflowItem wfi,
                                      Step step,
                                      javax.servlet.http.HttpServletRequest request)
                               throws SQLException,
                                      AuthorizeException,
                                      IOException
Throws:
SQLException
AuthorizeException
IOException


Copyright © 2012 DuraSpace. All Rights Reserved.