|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArtifactManager
This is a business facade interface allowing to manage the software
project artifacts and their categories (aka. DeliverableType
s and
ComponentType
s).
Implementation of this methods should define how artifacts and their categories
are created, updated and retrieved. It may also defined how and when artifacts
are stored within their Repository
. Such repositories are initialized
by container and passed to implementations.
Repository
Method Summary | |
---|---|
void |
bindComponent(Component component,
Assembly assembly)
Bind a component to an existing assembly. |
Component |
getComponent(java.lang.String key)
Get a component having this specified key. |
java.util.List |
getComponents(ComponentType type,
Release release)
Retrieve a list of components corresponding to the specified type and created into release |
ComponentType |
getComponentType(java.lang.String key)
Get a component category having the specified key. |
java.util.List |
getComponentTypes()
Retrieve the component types (or category) of software. |
java.util.List |
getContainedComponents(ComponentType type,
Release release)
Retrieve a list of components of the specified type and contained into release |
Deliverable |
getDeliverable(java.lang.String key)
Get a deliverable having this specified key. |
java.util.List |
getDeliverables(DeliverableType type,
Release release)
Retrieve a list of deliverables corresponding to the specified type for this release |
DeliverableType |
getDeliverableType(java.lang.String key)
Get a deliverable type having the specified key. |
java.util.List |
getDeliverableTypes()
Retrieve the deliverable types (or category) of software. |
java.util.List |
getLastDeliverables(DeliverableType type,
int maxResult)
Retrieve a list of deliverables corresponding to the specified type |
void |
registerDeliverable(Deliverable deliverable,
java.io.InputStream content)
Create a deliverable within datastore and register its content. |
void |
saveComponentType(ComponentType type)
Save a component type within datastore |
void |
saveDeliverable(Deliverable deliverable)
Save a deliverable within datastore. |
void |
saveDeliverableType(DeliverableType type)
Save a deliverable type within datastore. |
void |
setDeliverablesRepository(Repository repository)
Set the repository to use for storing deliverables. |
Method Detail |
---|
void bindComponent(Component component, Assembly assembly)
component
- The component to bind to assemblyassembly
- The assembly that is containing componentComponent getComponent(java.lang.String key)
key
- Unique business identifier of component to retrieve
java.util.List getComponents(ComponentType type, Release release)
type
- The component type of the components to retrieverelease
- The release the components have been bound to
org.figure8.join.businessobjects.artifact.Component
sjava.util.List getContainedComponents(ComponentType type, Release release)
type
- The component type of the components to retrieverelease
- The release the components have been bound to
org.figure8.join.businessobjects.artifact.Component
svoid saveComponentType(ComponentType type) throws DuplicateEntityException
type
- Type to save (create or update)
DuplicateEntityException
- if another type with same key already existsComponentType getComponentType(java.lang.String key)
key
- Unique business identifier of the component type to retrieve
java.util.List getComponentTypes()
org.figure8.join.businessobjects.artifact.ComponentType
void registerDeliverable(Deliverable deliverable, java.io.InputStream content) throws InvalidParameterException, DuplicateEntityException
deliverable
- The new deliverable to register within Join applicationcontent
- The stream containing deliverable content (if any)
InvalidParameterException
- if deliverable is already registered
DuplicateEntityException
- if another deliverable with same key already existsvoid saveDeliverable(Deliverable deliverable) throws InvalidParameterException
registerDeliverable()
method.
deliverable
- The deliverable to save (just an update)
InvalidParameterException
- if deliverable has not been registered beforeDeliverable getDeliverable(java.lang.String key)
key
- Unique business identifier of deliverable to retrieve
java.util.List getLastDeliverables(DeliverableType type, int maxResult)
type
- The deliverable type of the deliverables to retrievemaxResult
- An int to limit the size of list returned
org.figure8.join.businessobjects.artifact.Deliverable
sjava.util.List getDeliverables(DeliverableType type, Release release)
type
- The deliverable type of the deliverables to retrieverelease
- The release the deliverables have been bound to
org.figure8.join.businessobjects.artifact.Deliverable
svoid setDeliverablesRepository(Repository repository)
repository
- The repository for storing deliverables contentvoid saveDeliverableType(DeliverableType type) throws DuplicateEntityException
type
- Type to save (create or update)
DuplicateEntityException
- if another type with same key already existsDeliverableType getDeliverableType(java.lang.String key)
key
- Unique business identifier of the deliverable type to retrieve
java.util.List getDeliverableTypes()
org.figure8.join.businessobjects.artifact.DeliverableType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |