org.figure8.join.control.action
Class DeploymentsActions

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

public class DeploymentsActions
extends JoinAction

This is a Struts action controller for managing Deployments retrieval related operations.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
static java.lang.String DEPLOYMENTS_KEY
          The request scope attribute under which the retrivied deployments list is stored.
protected  EnvironmentManager environmentManager
          The EnvironmentManager implementation to use
static java.lang.String ENVMAPPING_OP
          Operation code for retrieving deployments for an environment mapping.
static java.lang.String LOGICALENV_OP
          Operation code for retrieving deployments for a logical environment.
static java.lang.String PHYSICALENV_OP
          Operation code for retrieving deployments for a physical environment.
static java.lang.String TITLE_KEY
          The request scope for specifying the title of the screen (used by view)
 
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
DeploymentsActions()
          Creates a new instance of DeploymentsActions.
 
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 getDeploymentsForEnvironmentMapping(org.apache.struts.action.ActionMapping mapping, DeploymentsForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Retrieve deployments for a specified environment mapping.
protected  org.apache.struts.action.ActionForward getDeploymentsForLogicalEnvironment(org.apache.struts.action.ActionMapping mapping, DeploymentsForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Retrieve deployments for a specified logical environment.
protected  org.apache.struts.action.ActionForward getDeploymentsForPhysicalEnvironment(org.apache.struts.action.ActionMapping mapping, DeploymentsForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Retrieve deployments for a specified physical environment.
 void setEnvironmentManager(EnvironmentManager environmentManager)
           
 
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

LOGICALENV_OP

public static final java.lang.String LOGICALENV_OP
Operation code for retrieving deployments for a logical environment.

See Also:
Constant Field Values

PHYSICALENV_OP

public static final java.lang.String PHYSICALENV_OP
Operation code for retrieving deployments for a physical environment.

See Also:
Constant Field Values

ENVMAPPING_OP

public static final java.lang.String ENVMAPPING_OP
Operation code for retrieving deployments for an environment mapping.

See Also:
Constant Field Values

TITLE_KEY

public static final java.lang.String TITLE_KEY
The request scope for specifying the title of the screen (used by view)

See Also:
Constant Field Values

DEPLOYMENTS_KEY

public static final java.lang.String DEPLOYMENTS_KEY
The request scope attribute under which the retrivied deployments list is stored.

See Also:
Constant Field Values

environmentManager

protected EnvironmentManager environmentManager
The EnvironmentManager implementation to use

Constructor Detail

DeploymentsActions

public DeploymentsActions()
Creates a new instance of DeploymentsActions.

Method Detail

setEnvironmentManager

public void setEnvironmentManager(EnvironmentManager environmentManager)
Parameters:
environmentManager - The EnvironmentManager 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 ...

getDeploymentsForLogicalEnvironment

protected org.apache.struts.action.ActionForward getDeploymentsForLogicalEnvironment(org.apache.struts.action.ActionMapping mapping,
                                                                                     DeploymentsForm form,
                                                                                     javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response)
                                                                              throws java.lang.Exception
Retrieve deployments for a specified logical environment.

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

getDeploymentsForPhysicalEnvironment

protected org.apache.struts.action.ActionForward getDeploymentsForPhysicalEnvironment(org.apache.struts.action.ActionMapping mapping,
                                                                                      DeploymentsForm form,
                                                                                      javax.servlet.http.HttpServletRequest request,
                                                                                      javax.servlet.http.HttpServletResponse response)
                                                                               throws java.lang.Exception
Retrieve deployments for a specified physical environment.

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

getDeploymentsForEnvironmentMapping

protected org.apache.struts.action.ActionForward getDeploymentsForEnvironmentMapping(org.apache.struts.action.ActionMapping mapping,
                                                                                     DeploymentsForm form,
                                                                                     javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response)
                                                                              throws java.lang.Exception
Retrieve deployments for a specified environment mapping.

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


Copyright © 2005-2008 Join. All Rights Reserved.