org.figure8.join.businessfacades.artifact
Interface AssemblyManager

All Known Implementing Classes:
DefaultAssemblyManager

public interface AssemblyManager

This is a business facade interface for managing composite Artifacts.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Method Summary
 java.util.List getAssemblies(Release release)
          Retrieve all assemblies created for specified release
 Assembly getAssembly(java.lang.String key)
          Retrieve an Assembly using its unique key
 Build getBuild(java.lang.String key)
          Retrieve a Build using its unique key
 java.util.List getBuilds(Release release)
          Retrieve all builds created for specified release
 void saveAssembly(Assembly assembly, java.util.List deliverables)
          Save a specified assembly (indeed a save or update method)
 void saveBuild(Build build, java.util.List components, java.util.Map extractedComponents)
          Save a Build for a specified release (indeed a save or update method)
 

Method Detail

saveAssembly

void saveAssembly(Assembly assembly,
                  java.util.List deliverables)
                  throws DuplicateEntityException
Save a specified assembly (indeed a save or update method)

Parameters:
assembly - The assembly to save within datastore
deliverables - A list of deliverables composing the assembly to create
Throws:
DuplicateEntityException - if another assembly with same deliverables already exists

getAssemblies

java.util.List getAssemblies(Release release)
Retrieve all assemblies created for specified release

Parameters:
release - The release to get assemblies for
Returns:
A list of org.figure8.join.businessobjects.artifact.Assembly objects

getAssembly

Assembly getAssembly(java.lang.String key)
Retrieve an Assembly using its unique key

Parameters:
key - The unique key of assembly to retrieve
Returns:
The corresponding assembly or null if no assembly has this key

saveBuild

void saveBuild(Build build,
               java.util.List components,
               java.util.Map extractedComponents)
               throws DuplicateEntityException
Save a Build for a specified release (indeed a save or update method)

Parameters:
build - The build to save within datastore
components - A list of Components composing the build to create
extractedComponents - A map representing components to extract from an assembly. Key of map entry is a component type and value is the assembly to extract this component from.
Throws:
DuplicateEntityException - if another build with same component already exists

getBuilds

java.util.List getBuilds(Release release)
Retrieve all builds created for specified release

Parameters:
release - The release to get builds for
Returns:
A list of org.figure8.join.businessobjects.artifact.Build objects

getBuild

Build getBuild(java.lang.String key)
Retrieve a Build using its unique key

Parameters:
key - The unique key of build to retrieve
Returns:
The corresponding build or null if no build has this key


Copyright © 2005-2008 Join. All Rights Reserved.