org.figure8.join.control.action
Class AssemblyActions

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

public class AssemblyActions
extends JoinAction

This is a Struts action for managing and viewing assemblies in Join system.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Field Summary
protected  ArtifactManager artifactManager
          The artifact manager implementation to use.
static java.lang.String ASSEMBLIES_KEY
          The request scope attribute under which the retrivied assemblies list is stored.
static java.lang.String ASSEMBLY_KEY
          The session scope attribute under which the Assembly object currently selected by our logged-in User is stored.
protected  AssemblyManager assemblyManager
          The assembly manager implementation to use.
static java.lang.String CREATE_OP
          Operation code for creating a new Assembly
static java.lang.String DELIVERABLES_KEY
          The request scope attribute under which the available deliverables mapping is stored.
static java.lang.String DETAILS_OP
          Operation code for getting details on a specific Assembly
static java.lang.String DUPLICATE_ASSEMBLY_KEY
          The request scope attribute under which is stored the Assembly that has raised a DuplicateEntityException during save of another one.
static java.lang.String FORM_OP
          Operation code fo showing the assembly creation form
protected  IntegrationProcessManager processManager
          The integration process manager implementation to use.
static java.lang.String SEARCH_OP
          Operation code for searching assemblies using release
static java.lang.String STATUS_OP
          Operation code for forcing status of a specified Assembly
 
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
AssemblyActions()
          Creates a new instance of AssemblyActions.
 
Method Summary
protected  org.apache.struts.action.ActionForward createAssembly(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Create and register a new Assembly within Join application.
 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 forceStatus(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Force the status of a given assembly.
protected  org.apache.struts.action.ActionForward getAssemblyDetails(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 Assembly.
protected  org.apache.struts.action.ActionForward searchAssemblies(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 assemblies using the bound release criteria.
 void setArtifactManager(ArtifactManager manager)
           
 void setAssemblyManager(AssemblyManager manager)
           
 void setIntegrationProcessManager(IntegrationProcessManager manager)
           
protected  org.apache.struts.action.ActionForward showAssemblyForm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Prepare all we need for displaying an assembly creation form
 
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

FORM_OP

public static final java.lang.String FORM_OP
Operation code fo showing the assembly creation form

See Also:
Constant Field Values

CREATE_OP

public static final java.lang.String CREATE_OP
Operation code for creating a new Assembly

See Also:
Constant Field Values

SEARCH_OP

public static final java.lang.String SEARCH_OP
Operation code for searching assemblies using release

See Also:
Constant Field Values

DETAILS_OP

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

See Also:
Constant Field Values

STATUS_OP

public static final java.lang.String STATUS_OP
Operation code for forcing status of a specified Assembly

See Also:
Constant Field Values

ASSEMBLY_KEY

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

See Also:
Constant Field Values

ASSEMBLIES_KEY

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

See Also:
Constant Field Values

DELIVERABLES_KEY

public static final java.lang.String DELIVERABLES_KEY
The request scope attribute under which the available deliverables mapping is stored.

See Also:
Constant Field Values

DUPLICATE_ASSEMBLY_KEY

public static final java.lang.String DUPLICATE_ASSEMBLY_KEY
The request scope attribute under which is stored the Assembly that has raised a DuplicateEntityException during save of another one.

See Also:
Constant Field Values

artifactManager

protected ArtifactManager artifactManager
The artifact manager implementation to use.


assemblyManager

protected AssemblyManager assemblyManager
The assembly manager implementation to use.


processManager

protected IntegrationProcessManager processManager
The integration process manager implementation to use.

Constructor Detail

AssemblyActions

public AssemblyActions()
Creates a new instance of AssemblyActions.

Method Detail

setArtifactManager

public void setArtifactManager(ArtifactManager manager)
Parameters:
manager - The ArtifactManager implementation to use

setAssemblyManager

public void setAssemblyManager(AssemblyManager manager)
Parameters:
manager - The AssemblyManager implementation to use

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 ...

showAssemblyForm

protected org.apache.struts.action.ActionForward showAssemblyForm(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
Prepare all we need for displaying an assembly creation form

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

createAssembly

protected org.apache.struts.action.ActionForward createAssembly(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 and register a new Assembly within Join application. No assembly for this release and having this version info should aready exists.

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

searchAssemblies

protected org.apache.struts.action.ActionForward searchAssemblies(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 assemblies using the bound release criteria.

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

getAssemblyDetails

protected org.apache.struts.action.ActionForward getAssemblyDetails(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 Assembly.

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

forceStatus

protected org.apache.struts.action.ActionForward forceStatus(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
Force the status of a given assembly. This is a 2 step operation : retrieve possible status first and display a form ; then set the choosen status for deployment.

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


Copyright © 2005-2008 Join. All Rights Reserved.