|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.businessfacades.artifact.DefaultArtifactManager
public class DefaultArtifactManager
This is the default implementation of ArtifactManager
.
Field Summary | |
---|---|
protected ComponentDao |
componentDao
Component data access object |
protected ComponentTypeDao |
componentTypeDao
Component type data access object |
protected DeliverableDao |
deliverableDao
Deliverable data access object |
protected Repository |
deliverablesRepository
The Repository implementation to use for storing deliverables |
protected DeliverableTypeDao |
deliverableTypeDao
Deliverable type data access object |
protected EventPublicationManager |
publicationManager
The event publication manager implementation for reporting events |
Constructor Summary | |
---|---|
DefaultArtifactManager()
Creates a new instance of DefaultArtifactManager |
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 category 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 |
setComponentDao(ComponentDao dao)
|
void |
setComponentTypeDao(ComponentTypeDao dao)
|
void |
setDeliverableDao(DeliverableDao dao)
|
void |
setDeliverablesRepository(Repository repository)
Set the repository to use for storing deliverables. |
void |
setDeliverableTypeDao(DeliverableTypeDao dao)
|
void |
setEventPublicationManager(EventPublicationManager manager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ComponentDao componentDao
protected DeliverableDao deliverableDao
protected ComponentTypeDao componentTypeDao
protected DeliverableTypeDao deliverableTypeDao
protected EventPublicationManager publicationManager
protected Repository deliverablesRepository
Constructor Detail |
---|
public DefaultArtifactManager()
Method Detail |
---|
public void setComponentDao(ComponentDao dao)
dao
- A Component data access objectpublic void setDeliverableDao(DeliverableDao dao)
dao
- A Deliverable data access objectpublic void setComponentTypeDao(ComponentTypeDao dao)
dao
- A Component type data access objectpublic void setDeliverableTypeDao(DeliverableTypeDao dao)
dao
- A Deliverable type data access objectpublic void setEventPublicationManager(EventPublicationManager manager)
manager
- A Event publication manager implementation instancepublic void bindComponent(Component component, Assembly assembly)
bindComponent
in interface ArtifactManager
component
- The component to bind to assemblyassembly
- The assembly that is containing componentpublic Component getComponent(java.lang.String key)
getComponent
in interface ArtifactManager
key
- Unique business identifier of component to retrieve
public java.util.List getComponents(ComponentType type, Release release)
getComponents
in interface ArtifactManager
type
- The component type of the components to retrieverelease
- The release the components have been bound to
org.figure8.join.businessobjects.artifact.Component
spublic java.util.List getContainedComponents(ComponentType type, Release release)
getContainedComponents
in interface ArtifactManager
type
- The component type of the components to retrieverelease
- The release the components have been bound to
org.figure8.join.businessobjects.artifact.Component
spublic void saveComponentType(ComponentType type) throws DuplicateEntityException
saveComponentType
in interface ArtifactManager
type
- Type to save (create or update)
DuplicateEntityException
- if another type with same key already existspublic ComponentType getComponentType(java.lang.String key)
getComponentType
in interface ArtifactManager
key
- Unique business identifier of the component type to retrieve
public java.util.List getComponentTypes()
getComponentTypes
in interface ArtifactManager
org.figure8.join.businessobjects.artifact.ComponentType
public void registerDeliverable(Deliverable deliverable, java.io.InputStream content) throws InvalidParameterException, DuplicateEntityException
registerDeliverable
in interface ArtifactManager
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 existspublic void saveDeliverable(Deliverable deliverable) throws InvalidParameterException
registerDeliverable()
method.
saveDeliverable
in interface ArtifactManager
deliverable
- The deliverable to save (just an update)
InvalidParameterException
- if deliverable has not been registered beforepublic Deliverable getDeliverable(java.lang.String key)
getDeliverable
in interface ArtifactManager
key
- Unique business identifier of deliverable to retrieve
public java.util.List getLastDeliverables(DeliverableType type, int maxResult)
getLastDeliverables
in interface ArtifactManager
type
- The deliverable type of the deliverables to retrievemaxResult
- An int to limit the size of list returned
org.figure8.join.businessobjects.artifact.Deliverable
spublic java.util.List getDeliverables(DeliverableType type, Release release)
getDeliverables
in interface ArtifactManager
type
- The deliverable type of the deliverables to retrieverelease
- The release the deliverables have been bound to
org.figure8.join.businessobjects.artifact.Deliverable
spublic void setDeliverablesRepository(Repository repository)
setDeliverablesRepository
in interface ArtifactManager
repository
- The repository for storing deliverables contentpublic void saveDeliverableType(DeliverableType type) throws DuplicateEntityException
saveDeliverableType
in interface ArtifactManager
type
- Type to save (create or update)
DuplicateEntityException
- if another type with same key already existspublic DeliverableType getDeliverableType(java.lang.String key)
getDeliverableType
in interface ArtifactManager
key
- Unique business identifier of the deliverable type to retrieve
public java.util.List getDeliverableTypes()
getDeliverableTypes
in interface ArtifactManager
org.figure8.join.businessobjects.artifact.DeliverableType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |