org.figure8.join.businessobjects.artifact
Class Deliverable

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.artifact.Deliverable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Artifact

public class Deliverable
extends EntityObject
implements Artifact

A deliverable is an artifact representing a work delivery for the software project. A deliverable is typed and supplied for realizing a specific Release.
Such a delivery must contain information about the supplier, the version of the delivery and some comments.
A key must also be provided to have a unique identifier of this deliverable. Keys are typically generated by type handler that exactly knows how to guarantee key unicity.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux
See Also:
Release, DeliverableType, Serialized Form

Constructor Summary
Deliverable()
          Creates a new instance of Deliverable
Deliverable(java.lang.String versionInfo, java.lang.String comments, java.lang.String supplierId, Release release, DeliverableType type)
          Creates a new instance of Deliverable with mandatory fields.
 
Method Summary
 java.util.List getAssemblies()
           
 java.lang.String getCategoryInfo()
          Return the category information on this deliverable, ie : the key of its associated DeliverableType
 java.lang.String getComments()
           
 java.util.Date getCreationDate()
           
 DeliverableType getDeliverableType()
           
 java.lang.String getKey()
           
 Release getRelease()
          Retrieve the release that has cause this artifact creation
 java.lang.String getSupplierId()
           
 java.lang.String getUniqueId()
          Retrieve the unique identifier of this artifact.
 java.lang.String getVersionInfo()
          Retrieve the version information on this deliverable.
 void setAssemblies(java.util.List assemblies)
           
 void setComments(java.lang.String comments)
           
 void setCreationDate(java.util.Date creationDate)
           
 void setDeliverableType(DeliverableType type)
           
 void setKey(java.lang.String key)
           
 void setRelease(Release release)
           
 void setSupplierId(java.lang.String supplier)
           
 void setVersionInfo(java.lang.String info)
           
 
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
 

Constructor Detail

Deliverable

public Deliverable()
Creates a new instance of Deliverable


Deliverable

public Deliverable(java.lang.String versionInfo,
                   java.lang.String comments,
                   java.lang.String supplierId,
                   Release release,
                   DeliverableType type)
Creates a new instance of Deliverable with mandatory fields.

Parameters:
versionInfo - Information on this deliverable version
comments - Comments on deliverable
supplierId - Identifier of supplier
release - Release this deliverable has been realized for
type - The type of this delierable
Method Detail

getKey

public java.lang.String getKey()
Returns:
This deliverable unique key

setKey

public void setKey(java.lang.String key)
Parameters:
key - This deliverable unique key

getComments

public java.lang.String getComments()
Returns:
Comments on this deliverable

setComments

public void setComments(java.lang.String comments)
Parameters:
comments - Comments on this deliverable

setVersionInfo

public void setVersionInfo(java.lang.String info)
Parameters:
info - Version information for this deliverable

getCreationDate

public java.util.Date getCreationDate()
Returns:
Creation date of this deliverable

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Parameters:
creationDate - The deliverable creation timestamp

getSupplierId

public java.lang.String getSupplierId()
Returns:
The id of user that supplies deliverable

setSupplierId

public void setSupplierId(java.lang.String supplier)
Parameters:
supplier - The id of person who makes delivery

getAssemblies

public java.util.List getAssemblies()
Returns:
A set of Assembly objects containing this deliverable

setAssemblies

public void setAssemblies(java.util.List assemblies)
Parameters:
assemblies - A set of assemblies containing this deliverable

setRelease

public void setRelease(Release release)
Parameters:
release - Release this deliverable has been done for

getDeliverableType

public DeliverableType getDeliverableType()
Returns:
The type of this deliverable

setDeliverableType

public void setDeliverableType(DeliverableType type)
Parameters:
type - The type of this deliverable

getUniqueId

public java.lang.String getUniqueId()
Retrieve the unique identifier of this artifact. (ie : it's key)

Specified by:
getUniqueId in interface Artifact
Returns:
The unique identifier of this deliverable

getVersionInfo

public java.lang.String getVersionInfo()
Retrieve the version information on this deliverable.

Specified by:
getVersionInfo in interface Artifact
Returns:
Version information as character string

getCategoryInfo

public java.lang.String getCategoryInfo()
Return the category information on this deliverable, ie : the key of its associated DeliverableType

Specified by:
getCategoryInfo in interface Artifact
Returns:
The category information as character string

getRelease

public Release getRelease()
Retrieve the release that has cause this artifact creation

Specified by:
getRelease in interface Artifact
Returns:
The release this artifact has been realized for


Copyright © 2005-2008 Join. All Rights Reserved.