|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.EntityObject org.figure8.join.businessobjects.artifact.Assembly
public class Assembly
An assembly if a composite artifact build from deliverables.
It represents a subset of the future software system you are
building.
During the construction phase of Assembly, software components
are discovered and thus bound to this entity.
Assemblies are meant for being deployed on test environments.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_KEY_TEMPLATE
Constant for the default assemblies key generation template (in case we are not in managed environment) |
static java.lang.String |
KEY_TEMPLATE
Constant denoting the applicative property defining the template for assemblies key |
Constructor Summary | |
---|---|
Assembly()
Creates a new instance of Assembly |
|
Assembly(java.lang.String versionInfo,
java.lang.String comments,
java.lang.String composerId,
Release release)
Creates a new instance of Assembly with mandatory attributes. |
Method Summary | |
---|---|
void |
addComponent(Component component)
Convenient method for adding a components to an assembly. |
void |
addDeliverable(Deliverable deliverable)
Convenient method for adding a deliverable to an assembly. |
protected static java.lang.String |
generateAssemblyKey(Assembly assembly)
Generate a unique key for an assembly. |
java.lang.String |
getCategoryInfo()
Return the category information on this artifact (or null is this artifact implementation is not typed). |
java.lang.String |
getComments()
|
Component |
getComponent(ComponentType type)
Convenient method for retrieving only one component contained assembly |
java.util.Map |
getComponents()
|
java.lang.String |
getComposerId()
|
java.util.Date |
getCreationDate()
|
Deliverable |
getDeliverable(DeliverableType type)
Convenient method for retrieving only one deliverable composing assembly |
java.util.Map |
getDeliverables()
|
java.util.List |
getDeployments()
|
java.lang.String |
getKey()
|
Release |
getRelease()
Retrieve the release that has cause this version creation |
Status |
getStatus()
|
java.lang.String |
getUniqueId()
Retrieve the unique identifier of this artifact. |
java.lang.String |
getVersionInfo()
Retrieve the version information on this Assembly. |
void |
setComments(java.lang.String comments)
|
void |
setComponents(java.util.Map components)
|
void |
setComposerId(java.lang.String composerId)
|
void |
setCreationDate(java.util.Date creationDate)
|
void |
setDeliverables(java.util.Map deliverables)
|
void |
setDeployments(java.util.List deployments)
|
void |
setKey(java.lang.String key)
|
void |
setRelease(Release release)
|
void |
setStatus(Status status)
|
void |
setVersionInfo(java.lang.String versionInfo)
|
Methods inherited from class org.figure8.join.core.EntityObject |
---|
clone, equals, getId, hashCode, isTransient |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_TEMPLATE
public static final java.lang.String DEFAULT_KEY_TEMPLATE
Constructor Detail |
---|
public Assembly()
public Assembly(java.lang.String versionInfo, java.lang.String comments, java.lang.String composerId, Release release)
versionInfo
- Information of this assembly versioncomments
- Comments onto assemblycomposerId
- The identifier of user that has compoed assemblyrelease
- The release for which assembly is createdMethod Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- This assembly unique keypublic java.lang.String getComments()
public void setComments(java.lang.String comments)
comments
- The comments on this assemblypublic void setVersionInfo(java.lang.String versionInfo)
versionInfo
- Information on this assembly version within releasepublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate
- The creation date of this assemblypublic java.lang.String getComposerId()
public void setComposerId(java.lang.String composerId)
composerId
- The id of user that has composed this assemblypublic Status getStatus()
public void setStatus(Status status)
status
- The current status of this assemblypublic void setRelease(Release release)
release
- Release this assembly has been done forpublic java.util.Map getComponents()
public void setComponents(java.util.Map components)
components
- A map of components contained in assemblypublic void addComponent(Component component)
component
- The component to add to assemblypublic Component getComponent(ComponentType type)
type
- The ComponentType of component to return
Component
public java.util.Map getDeliverables()
public void setDeliverables(java.util.Map deliverables)
deliverables
- A map of deliverables contained in assembly, keys are deliverable typespublic void addDeliverable(Deliverable deliverable)
deliverable
- The deliverable to add to assemblypublic Deliverable getDeliverable(DeliverableType type)
type
- The DeliverableType of deliverable to return
Deliverable
public java.util.List getDeployments()
Deployment
s made with this assemblypublic void setDeployments(java.util.List deployments)
deployments
- The set of deployments made with this assemblypublic java.lang.String getUniqueId()
getUniqueId
in interface Artifact
public java.lang.String getVersionInfo()
getVersionInfo
in interface Artifact
public java.lang.String getCategoryInfo()
getCategoryInfo
in interface Artifact
public Release getRelease()
getRelease
in interface Artifact
protected static java.lang.String generateAssemblyKey(Assembly assembly)
Artifact
. So this implementation is using
a java.text.MessageFormat using 2 arguments that are the assembly release name
(unique for a relase) and the assembly version infos (unique for an assembly
within a release).template
used as MessageFormat can be specified using the
assembly.key.template property of ApplicationConfig
object present
into runtime environment. If this property or ApplicationConfig are not present
ito environment, then the default key template is used.
assembly
- Assembly for whom a key should be generated
MessageFormat
,
Artifact
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |