org.figure8.join.businessfacades.commons
Class DefaultIntegrationProcessManager

java.lang.Object
  extended by org.figure8.join.businessfacades.commons.DefaultIntegrationProcessManager
All Implemented Interfaces:
IntegrationProcessManager

public class DefaultIntegrationProcessManager
extends java.lang.Object
implements IntegrationProcessManager

Default implementation of IntegrationProcessManager.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Constructor Summary
DefaultIntegrationProcessManager()
          Creates a new DefaultIntegrationProcessManager
 
Method Summary
 Release getRelease(java.lang.String name)
          Retrieve a Release of software project using its name
 java.util.List getReleases()
          Retrieve the available releases of software project managed by Join.
 java.util.List getStatus()
          Retrieve the available status defining the integration process.
 Status getStatus(long id)
          Retrieve a Status of integration process using its datastore id
 Status getStatus(java.lang.String key)
          Retrieve a Status of integration process using its key
 java.util.List getStatusForType(java.lang.String type)
          Retrieve the available status for the specified integration process
 Step getStep(long id)
          Retrieve a Step of integration process using its datastore id
 Step getStep(java.lang.String label)
          Retrieve a Step of integration process using its label
 java.util.List getSteps()
          Retrieve the available steps defining the integration process.
 Target getTarget(java.lang.String name)
          Retrieve the deployment target having the specified name.
 java.util.List getTargets()
          Retrieve the deployment targets defining the deployment options for software.
 void saveRelease(Release release)
          Save a release within datastore.
 void saveStatus(Status status)
          Save a status within datastore.
 void saveStep(Step step)
          Save a step within datastore.
 void saveTarget(Target target)
          Save a deployment target within datastore.
 void setReleaseDao(ReleaseDao releaseDao)
           
 void setStatusDao(StatusDao statusDao)
           
 void setStepDao(StepDao stepDao)
           
 void setTargetDao(TargetDao targetDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIntegrationProcessManager

public DefaultIntegrationProcessManager()
Creates a new DefaultIntegrationProcessManager

Method Detail

setStepDao

public void setStepDao(StepDao stepDao)
Parameters:
stepDao - The StepDao implementation to use

setStatusDao

public void setStatusDao(StatusDao statusDao)
Parameters:
statusDao - The StatusDao implementation to use

setTargetDao

public void setTargetDao(TargetDao targetDao)
Parameters:
targetDao - The TargetDao implementation to use

setReleaseDao

public void setReleaseDao(ReleaseDao releaseDao)
Parameters:
releaseDao - The ReleaseDao implementation to use

saveStatus

public void saveStatus(Status status)
                throws DuplicateEntityException
Save a status within datastore.

Specified by:
saveStatus in interface IntegrationProcessManager
Parameters:
status - The status to save (create or update)
Throws:
DuplicateEntityException - if another status with same name already exists

getStatus

public java.util.List getStatus()
Retrieve the available status defining the integration process.

Specified by:
getStatus in interface IntegrationProcessManager
Returns:
A List of org.figure8.join.businessobjects.commons.Status

getStatusForType

public java.util.List getStatusForType(java.lang.String type)
Retrieve the available status for the specified integration process

Specified by:
getStatusForType in interface IntegrationProcessManager
Parameters:
type - The type of process to retrieve status for
Returns:
A List of org.figure8.join.businessobjects.commons.Status

getStatus

public Status getStatus(long id)
Retrieve a Status of integration process using its datastore id

Specified by:
getStatus in interface IntegrationProcessManager
Parameters:
id - The datastore identifier of step to retrieve
Returns:
The corresponding step of null is no step has this id

getStatus

public Status getStatus(java.lang.String key)
Retrieve a Status of integration process using its key

Specified by:
getStatus in interface IntegrationProcessManager
Parameters:
key - The key of status to retrieve
Returns:
The corresponding status or null if no step has this key

saveStep

public void saveStep(Step step)
Save a step within datastore. If specified step should already exist and been updated, it should be acquired using one of getStep() methods (so that instance may be associated with underlying persistence manager).

Specified by:
saveStep in interface IntegrationProcessManager
Parameters:
step - The step to save (create or update)

getSteps

public java.util.List getSteps()
Retrieve the available steps defining the integration process.

Specified by:
getSteps in interface IntegrationProcessManager
Returns:
A List of org.figure8.join.businessobjects.commons.Step

getStep

public Step getStep(long id)
Retrieve a Step of integration process using its datastore id

Specified by:
getStep in interface IntegrationProcessManager
Parameters:
id - The datastore identifier of step to retrieve
Returns:
The corresponding step of null is no step has this id

getStep

public Step getStep(java.lang.String label)
Retrieve a Step of integration process using its label

Specified by:
getStep in interface IntegrationProcessManager
Parameters:
label - The label of step to retrieve
Returns:
The corresponding step or null if no step has this label

saveTarget

public void saveTarget(Target target)
                throws DuplicateEntityException
Save a deployment target within datastore.

Specified by:
saveTarget in interface IntegrationProcessManager
Parameters:
target - The target to save (create or update)
Throws:
DuplicateEntityException - if another target with same name already exists

getTargets

public java.util.List getTargets()
Retrieve the deployment targets defining the deployment options for software.

Specified by:
getTargets in interface IntegrationProcessManager
Returns:
A List of org.figure8.join.businessobjects.commons.Target

getTarget

public Target getTarget(java.lang.String name)
Retrieve the deployment target having the specified name.

Specified by:
getTarget in interface IntegrationProcessManager
Parameters:
name - The name of the deployment target to retrieve
Returns:
The corresponding target or null is no target has this name

saveRelease

public void saveRelease(Release release)
                 throws DuplicateEntityException
Save a release within datastore. The major and minor numbers pair should be unique otherwise a DuplicateEntityException is thrown by persistence layer.

Specified by:
saveRelease in interface IntegrationProcessManager
Parameters:
release - The release to save (create or update)
Throws:
DuplicateEntityException - if another release with same major and minor already exists

getReleases

public java.util.List getReleases()
Retrieve the available releases of software project managed by Join.

Specified by:
getReleases in interface IntegrationProcessManager
Returns:
A List of org.figure8.join.businessobjects.commons.Release

getRelease

public Release getRelease(java.lang.String name)
Retrieve a Release of software project using its name

Specified by:
getRelease in interface IntegrationProcessManager
Parameters:
name - The name of release to retrieve
Returns:
The corresponding release or null if no release has this name


Copyright © 2005-2008 Join. All Rights Reserved.