org.figure8.join.control.action
Class ComponentActions

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

public class ComponentActions
extends JoinAction

This is a Struts action for managing all the components within Join.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
protected  ArtifactManager artifactManager
          Join artifact manager instance.
static java.lang.String COMPONENT_KEY
          The request scope attribute under which the Component is stored.
static java.lang.String COMPONENTS_KEY
          The request scope attribute under which the Components are stored.
static java.lang.String DETAILS_OP
          Operation code for getting details on a specific Component
protected  IntegrationProcessManager processManager
          The integration process manager implementation to use.
static java.lang.String SEARCH_OP
          Operation code for searching components using type and release
 
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
ComponentActions()
          Creates a new instance of ComponentActions.
 
Method Summary
 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 getComponentDetails(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Get all the details onto an existing Component.
protected  org.apache.struts.action.ActionForward searchComponents(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Serch all the components using the type and the bound release criteria.
 void setArtifactManager(ArtifactManager manager)
           
 void setIntegrationProcessManager(IntegrationProcessManager 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

SEARCH_OP

public static final java.lang.String SEARCH_OP
Operation code for searching components using type and release

See Also:
Constant Field Values

DETAILS_OP

public static final java.lang.String DETAILS_OP
Operation code for getting details on a specific Component

See Also:
Constant Field Values

COMPONENT_KEY

public static final java.lang.String COMPONENT_KEY
The request scope attribute under which the Component is stored.

See Also:
Constant Field Values

COMPONENTS_KEY

public static final java.lang.String COMPONENTS_KEY
The request scope attribute under which the Components are stored.

See Also:
Constant Field Values

artifactManager

protected ArtifactManager artifactManager
Join artifact manager instance.


processManager

protected IntegrationProcessManager processManager
The integration process manager implementation to use.

Constructor Detail

ComponentActions

public ComponentActions()
Creates a new instance of ComponentActions.

Method Detail

setArtifactManager

public void setArtifactManager(ArtifactManager manager)
Parameters:
manager - ArtifactManager implementation instance

setIntegrationProcessManager

public void setIntegrationProcessManager(IntegrationProcessManager manager)
Parameters:
manager - The integration process manager 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
Description copied from class: JoinAction
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 ...

searchComponents

protected org.apache.struts.action.ActionForward searchComponents(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
Serch all the components using the type and the bound release criteria.

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

getComponentDetails

protected org.apache.struts.action.ActionForward getComponentDetails(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
Get all the details onto an existing Component.

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


Copyright © 2005-2008 Join. All Rights Reserved.