org.scrashmeow.ojb.console.ui.action.repoeditor
Class RepositoryEditorAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--org.apache.struts.actions.DispatchAction
              |
              +--org.apache.struts.actions.LookupDispatchAction
                    |
                    +--org.scrashmeow.ojb.console.framework.OjbcLookupDispatchAction
                          |
                          +--org.scrashmeow.ojb.console.ui.action.repoeditor.RepositoryEditorAction
All Implemented Interfaces:
ApplicationServiceAware, BrowseActionAware, CancelActionAware, CommitActionAware, CrudActionAware, java.io.Serializable, ViewerActionAware

public class RepositoryEditorAction
extends OjbcLookupDispatchAction
implements BrowseActionAware, CommitActionAware, CrudActionAware

Author:
alexander To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.actions.LookupDispatchAction
keyMethodMap, localeMap
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Fields inherited from interface org.scrashmeow.ojb.console.framework.dispatch.CommitActionAware
COMMIT_METHOD
 
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
 
Constructor Summary
RepositoryEditorAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward browse(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          The dispatch method to display the data that the user is browsing.
 org.apache.struts.action.ActionForward cancel(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 cancel.
 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 create(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 create something.
 org.apache.struts.action.ActionForward display(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 display the data, typically the default dispatch action behavior.
 org.apache.struts.action.ActionForward edit(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 edit something.
 org.apache.struts.action.ActionForward getBrowseForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the browse dispatch
 org.apache.struts.action.ActionForward getCancelForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the cancel dispatch
 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
 org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the create dispatch
 org.apache.struts.action.ActionForward getDisplayForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the display dispatch
 org.apache.struts.action.ActionForward getEditForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the edit dispatch
 org.apache.struts.action.ActionForward getFinishForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
           
protected  java.util.Map getKeyMethodMap()
           
 org.apache.struts.action.ActionForward getRemoveForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the remove dispatch
 org.apache.struts.action.ActionForward go(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 go to a specific page of data.
 org.apache.struts.action.ActionForward next(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 move to the next page of data.
 org.apache.struts.action.ActionForward previous(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 move to the previous page of data.
 org.apache.struts.action.ActionForward remove(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 remove something.
 org.apache.struts.action.ActionForward sizeWindow(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 needs to change the window/page size of data.
 org.apache.struts.action.ActionForward sort(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 sort the data.
protected  org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.scrashmeow.ojb.console.framework.OjbcLookupDispatchAction
createBreadcrumbs, execute, findRedirectingForward, getApplicationService, initializeUserSession
 
Methods inherited from class org.apache.struts.actions.LookupDispatchAction
execute
 
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethod, unspecified
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryEditorAction

public RepositoryEditorAction()
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
Description copied from interface: CommitActionAware
The dispatch method that is triggered when a user wishes to commit.

Specified by:
commit in interface CommitActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

display

public org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                                               throws java.lang.Exception
Description copied from interface: ViewerActionAware
The dispatch method that is triggered when a user wishes to display the data, typically the default dispatch action behavior.

Specified by:
display in interface ViewerActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

cancel

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

Specified by:
cancel in interface CancelActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

create

public org.apache.struts.action.ActionForward create(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws java.lang.Exception
Description copied from interface: CrudActionAware
The dispatch method that is triggered when a user wishes to create something.

Specified by:
create in interface CrudActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

edit

public org.apache.struts.action.ActionForward edit(org.apache.struts.action.ActionMapping mapping,
                                                   org.apache.struts.action.ActionForm form,
                                                   HttpServletRequest request,
                                                   HttpServletResponse response)
                                            throws java.lang.Exception
Description copied from interface: CrudActionAware
The dispatch method that is triggered when a user wishes to edit something.

Specified by:
edit in interface CrudActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

remove

public org.apache.struts.action.ActionForward remove(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws java.lang.Exception
Description copied from interface: CrudActionAware
The dispatch method that is triggered when a user wishes to remove something.

Specified by:
remove in interface CrudActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

getCancelForward

public org.apache.struts.action.ActionForward getCancelForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
Description copied from interface: CancelActionAware
Returns the forward for the cancel dispatch

Specified by:
getCancelForward in interface CancelActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

getCreateForward

public org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
Description copied from interface: CrudActionAware
Returns the forward for the create dispatch

Specified by:
getCreateForward in interface CrudActionAware
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!

getEditForward

public org.apache.struts.action.ActionForward getEditForward(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             HttpServletRequest request)
                                                      throws java.lang.Exception
Description copied from interface: CrudActionAware
Returns the forward for the edit dispatch

Specified by:
getEditForward in interface CrudActionAware
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!

getRemoveForward

public org.apache.struts.action.ActionForward getRemoveForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
Description copied from interface: CrudActionAware
Returns the forward for the remove dispatch

Specified by:
getRemoveForward in interface CrudActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
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
Description copied from interface: CommitActionAware
Returns the forward for the commit dispatch

Specified by:
getCommitForward in interface CommitActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

getFinishForward

public org.apache.struts.action.ActionForward getFinishForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
java.lang.Exception

getDisplayForward

public org.apache.struts.action.ActionForward getDisplayForward(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                HttpServletRequest request)
                                                         throws java.lang.Exception
Description copied from interface: ViewerActionAware
Returns the forward for the display dispatch

Specified by:
getDisplayForward in interface ViewerActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

browse

public org.apache.struts.action.ActionForward browse(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws java.lang.Exception
Description copied from interface: BrowseActionAware
The dispatch method to display the data that the user is browsing.

Specified by:
browse in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

getBrowseForward

public org.apache.struts.action.ActionForward getBrowseForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
Description copied from interface: BrowseActionAware
Returns the forward for the browse dispatch

Specified by:
getBrowseForward in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

go

public org.apache.struts.action.ActionForward go(org.apache.struts.action.ActionMapping mapping,
                                                 org.apache.struts.action.ActionForm form,
                                                 HttpServletRequest request,
                                                 HttpServletResponse response)
                                          throws java.lang.Exception
Description copied from interface: BrowseActionAware
The dispatch method that is triggered when a user wishes to go to a specific page of data.

Specified by:
go in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

next

public org.apache.struts.action.ActionForward next(org.apache.struts.action.ActionMapping mapping,
                                                   org.apache.struts.action.ActionForm form,
                                                   HttpServletRequest request,
                                                   HttpServletResponse response)
                                            throws java.lang.Exception
Description copied from interface: BrowseActionAware
The dispatch method that is triggered when a user wishes to move to the next page of data.

Specified by:
next in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

previous

public org.apache.struts.action.ActionForward previous(org.apache.struts.action.ActionMapping mapping,
                                                       org.apache.struts.action.ActionForm form,
                                                       HttpServletRequest request,
                                                       HttpServletResponse response)
                                                throws java.lang.Exception
Description copied from interface: BrowseActionAware
The dispatch method that is triggered when a user wishes to move to the previous page of data.

Specified by:
previous in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

sizeWindow

public org.apache.struts.action.ActionForward sizeWindow(org.apache.struts.action.ActionMapping mapping,
                                                         org.apache.struts.action.ActionForm form,
                                                         HttpServletRequest request,
                                                         HttpServletResponse response)
                                                  throws java.lang.Exception
Description copied from interface: BrowseActionAware
The dispatch method that is triggered when a user needs to change the window/page size of data.

Specified by:
sizeWindow in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

sort

public org.apache.struts.action.ActionForward sort(org.apache.struts.action.ActionMapping mapping,
                                                   org.apache.struts.action.ActionForm form,
                                                   HttpServletRequest request,
                                                   HttpServletResponse response)
                                            throws java.lang.Exception
Description copied from interface: BrowseActionAware
The dispatch method that is triggered when a user wishes to sort the data.

Specified by:
sort in interface BrowseActionAware
Parameters:
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
java.lang.Exception - when an error occurs.

getKeyMethodMap

protected java.util.Map getKeyMethodMap()
Overrides:
getKeyMethodMap in class OjbcLookupDispatchAction
Returns:
@add-javadoc!!!
See Also:
LookupDispatchAction.getKeyMethodMap()

unspecified

protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                                      throws java.lang.Exception
Overrides:
unspecified in class org.apache.struts.actions.DispatchAction
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!
See Also:
org.apache.struts.actions.DispatchAction#unspecified(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)


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