|
||||||||||
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.Build
public class Build
A build if a composite artifact build from components.
It represents a version of the software system you are building.
Builds are meant for being deployed on production environnements.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_KEY_TEMPLATE
Constant for the default builds 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 build keys |
Constructor Summary | |
---|---|
Build()
Creates a new instance of Build |
|
Build(java.lang.String versionInfo,
java.lang.String comments,
java.lang.String composerId,
Release release)
Creates a new instance of Build with mandatory attributes |
Method Summary | |
---|---|
void |
addComponent(Component component)
Convenient method for adding a components to a build. |
protected static java.lang.String |
generateBuildKey(Build build)
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()
|
java.util.Map |
getComponents()
|
java.lang.String |
getComposerId()
|
java.util.Date |
getCreationDate()
|
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 |
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 Build()
public Build(java.lang.String versionInfo, java.lang.String comments, java.lang.String composerId, Release release)
versionInfo
- Information of this build 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 build unique keypublic java.lang.String getComments()
public void setComments(java.lang.String comments)
comments
- The comments on this buildpublic void setVersionInfo(java.lang.String versionInfo)
versionInfo
- Information on this build version within releasepublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate
- The creation date of this buildpublic java.lang.String getComposerId()
public void setComposerId(java.lang.String composerId)
composerId
- The id of user that has composed this buildpublic Status getStatus()
public void setStatus(Status status)
status
- The current status of this buildpublic void setRelease(Release release)
release
- Release this build has been done forpublic java.util.Map getComponents()
public void setComponents(java.util.Map components)
components
- A map of components contained in buildpublic void addComponent(Component component)
component
- The component to add to 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 generateBuildKey(Build build)
Artifact
. So this implementation is using
a java.text.MessageFormat using 2 arguments that are the build release name
(unique for a relase) and the build version infos (unique for a build
within a release).template
used as MessageFormat can be specified using the
build.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.
build
- Build 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 |