org.figure8.join.control.action
Class EISMappingActions

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.figure8.join.control.JoinAction
          extended by org.figure8.join.control.action.EISMappingActions

public class EISMappingActions
extends JoinAction

This is a Struts action for managing all operations related to mappings between EIS and Gateways.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
static java.lang.String CLOSE_OP
          Operation code for closing a EISMapping (close)
static java.lang.String CREATE_OP
          Operation code for saving a EISMapping (create)
static java.lang.String LOAD_OP
          Operation code for loading a specific EISMapping
static java.lang.String MAPPING_KEY
          The session scope attribute under which the EISMapping object currently selected by our logged-in User is stored.
static java.lang.String MAPPINGS_KEY
          The request scope attribute under which the retrieved EISMappings list is stored.
static java.lang.String VIEW_OP
          Operation code for retrieving EISMappings for a gateway
 
Fields inherited from class org.figure8.join.control.JoinAction
BODY_ATTRIBUTE, BODY_PARAMETER, EXCEPTION_KEY, GUI_KEY, OP_PARAMETER, REND_MAIN, REND_NONE, REND_PARAMETER, REND_POPUP, XHR_PARAMETER
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EISMappingActions()
          Creates a new instance of EISMappingActions.
 
Method Summary
protected  org.apache.struts.action.ActionForward closeMapping(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Close an EIS mapping and update the gateway.
protected  org.apache.struts.action.ActionForward createMapping(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Create an EIS mapping into datastore and bind specified EIS and gateway to it.
 org.apache.struts.action.ActionForward doExecute(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Abstract method that subclasses must implement.
protected  org.apache.struts.action.ActionForward loadMapping(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Load a specified EIS mapping from datastore and fill form with it.
 void setResourceManager(ResourceManager manager)
           
 
Methods inherited from class org.figure8.join.control.JoinAction
execute, getUserContainer, isLoggedIn, isXhrRequest, removeObsoleteForm
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, 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
 

Field Detail

LOAD_OP

public static final java.lang.String LOAD_OP
Operation code for loading a specific EISMapping

See Also:
Constant Field Values

CREATE_OP

public static final java.lang.String CREATE_OP
Operation code for saving a EISMapping (create)

See Also:
Constant Field Values

CLOSE_OP

public static final java.lang.String CLOSE_OP
Operation code for closing a EISMapping (close)

See Also:
Constant Field Values

VIEW_OP

public static final java.lang.String VIEW_OP
Operation code for retrieving EISMappings for a gateway

See Also:
Constant Field Values

MAPPING_KEY

public static final java.lang.String MAPPING_KEY
The session scope attribute under which the EISMapping object currently selected by our logged-in User is stored.

See Also:
Constant Field Values

MAPPINGS_KEY

public static final java.lang.String MAPPINGS_KEY
The request scope attribute under which the retrieved EISMappings list is stored.

See Also:
Constant Field Values
Constructor Detail

EISMappingActions

public EISMappingActions()
Creates a new instance of EISMappingActions.

Method Detail

setResourceManager

public void setResourceManager(ResourceManager manager)
Parameters:
manager - The ResourceManager implementation to use

doExecute

public org.apache.struts.action.ActionForward doExecute(java.lang.String operation,
                                                        org.apache.struts.action.ActionMapping mapping,
                                                        org.apache.struts.action.ActionForm form,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
                                                 throws java.lang.Exception
Abstract method that subclasses must implement. The real execution must be done here according to the specified operation. ActionForward returned by execution should only point on page fragment : this superclass is responsible of including them within a whole page.

Specified by:
doExecute in class JoinAction
Parameters:
operation - String representing the operation to invoke on Action
mapping - Mapping between forwards name and path for this action
form - The form object containing request parameters
request - The servlet container request wrapper
response - The servlet container response wrapper
Returns:
A forward to the next view to render and display
Throws:
java.lang.Exception - such as InfraStructureExceptions ...

loadMapping

protected org.apache.struts.action.ActionForward loadMapping(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
                                                      throws java.lang.Exception
Load a specified EIS mapping from datastore and fill form with it.

Returns:
A forward to the next view to render and display
Throws:
java.lang.Exception

createMapping

protected org.apache.struts.action.ActionForward createMapping(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws java.lang.Exception
Create an EIS mapping into datastore and bind specified EIS and gateway to it.

Returns:
A forward to the next view to render and display
Throws:
java.lang.Exception

closeMapping

protected org.apache.struts.action.ActionForward closeMapping(org.apache.struts.action.ActionMapping mapping,
                                                              org.apache.struts.action.ActionForm form,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response)
                                                       throws java.lang.Exception
Close an EIS mapping and update the gateway.

Returns:
A forward to the next view to render and display
Throws:
java.lang.Exception


Copyright © 2005-2008 Join. All Rights Reserved.