org.scrashmeow.ojb.console.framework.dispatch
Interface CommitActionAware

All Superinterfaces:
CancelActionAware, java.io.Serializable, ViewerActionAware
All Known Implementing Classes:
CommittingFormAction, RepositoryEditorAction

public interface CommitActionAware
extends ViewerActionAware, CancelActionAware

Defines the dispatch method for commiting an activity.

Author:
Alexander Bibighaus

Field Summary
static java.lang.String COMMIT_METHOD
          The method name for the commit dispatch
 
Fields inherited from interface org.scrashmeow.ojb.console.framework.dispatch.ViewerActionAware
DISPLAY_KEY, DISPLAY_METHOD
 
Fields inherited from interface org.scrashmeow.ojb.console.framework.dispatch.CancelActionAware
CANCEL_KEY, CANCEL_METHOD
 
Method Summary
 org.apache.struts.action.ActionForward commit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          The dispatch method that is triggered when a user wishes to commit.
 org.apache.struts.action.ActionForward getCommitForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the commit dispatch
 
Methods inherited from interface org.scrashmeow.ojb.console.framework.dispatch.ViewerActionAware
display, getDisplayForward
 
Methods inherited from interface org.scrashmeow.ojb.console.framework.dispatch.CancelActionAware
cancel, getCancelForward
 

Field Detail

COMMIT_METHOD

public static final java.lang.String COMMIT_METHOD
The method name for the commit dispatch

See Also:
Constant Field Values
Method Detail

commit

public org.apache.struts.action.ActionForward commit(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws java.lang.Exception
The dispatch method that is triggered when a user wishes to commit.

Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

getCommitForward

public org.apache.struts.action.ActionForward getCommitForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
Returns the forward for the commit dispatch

Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.