|
||||||||||
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.core.SortableEntityObject org.figure8.join.businessobjects.artifact.DeliverableType
public class DeliverableType
Entity object representing a deliverable type. Such a type helps
categorizing work deliveries done and managed through Join application.
A deliverable type will help by knowing how to generate unique keys for
deliverable artifacts. (see the generateDeliverableKey()
method)
It is also a handler for all the connection informations to the
underlying Versionning and Configuration System ; in the case such a
system is used for retrieving deliverables. (see the getVCSAccessor()
method)
VCSAccessor
,
Serialized FormConstructor Summary | |
---|---|
DeliverableType()
Creates a new instance of DeliverableType |
|
DeliverableType(java.lang.String key,
java.lang.String label,
java.lang.String keyTemplate,
boolean versionable,
boolean mandatory)
Creates a new instance of DeliverableType with mandatory attributes |
Method Summary | |
---|---|
java.lang.String |
generateDeliverableKey(Deliverable deliverable)
Generate a unique key for a deliverable. |
java.lang.String |
getKey()
|
java.lang.String |
getKeyTemplate()
|
java.lang.String |
getLabel()
|
boolean |
getMandatory()
|
java.lang.String |
getStringForComparison()
Get the comparision criterion as a string. |
VCSAccessor |
getVCSAccessor()
Get the VCSAccessor associated to this type (if any). |
java.lang.String |
getVcsAccessorClass()
|
boolean |
getVcsDeliverable()
|
java.lang.String |
getVcsModule()
|
java.lang.String |
getVcsPassword()
|
java.lang.String |
getVcsRoot()
|
java.lang.String |
getVcsUser()
|
boolean |
getVersionable()
|
protected void |
instantiateVCSAccessor()
Try to instantiate the VCSAccessor associated with this type (if any ...) |
void |
setKey(java.lang.String key)
|
void |
setKeyTemplate(java.lang.String keyTemplate)
The template used for deliverables key generation. |
void |
setLabel(java.lang.String label)
|
void |
setMandatory(boolean mandatory)
|
void |
setVcsAccessorClass(java.lang.String vcsAccessorClass)
Assign a VCS implementation to this deliverable type. ie : an helper object that allows to connect to the version and configuration system used for retrieving deliverables of this type. |
void |
setVcsDeliverable(boolean vcsDeliverable)
|
void |
setVcsModule(java.lang.String vcsModule)
|
void |
setVcsPassword(java.lang.String vcsPassword)
|
void |
setVcsRoot(java.lang.String vcsRoot)
|
void |
setVcsUser(java.lang.String vcsUser)
|
void |
setVersionable(boolean versionable)
|
Methods inherited from class org.figure8.join.core.SortableEntityObject |
---|
compareTo |
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 |
---|
public DeliverableType()
public DeliverableType(java.lang.String key, java.lang.String label, java.lang.String keyTemplate, boolean versionable, boolean mandatory)
key
- The instance unique keylabel
- The type instance labelkeyTemplate
- The deliverable type template for key generationversionable
- Wether deliverables should appear in versionsmandatory
- Wether deliverables are mandatory in version compositionAssembly
Method Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- This type unique keypublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- This deliverable type labelpublic java.lang.String getKeyTemplate()
public void setKeyTemplate(java.lang.String keyTemplate)
MessageFormat
with
2 arguments. (ex: myDeliverable_r{0}_v{1})
keyTemplate
- MessageFormat templateMessageFormat
public boolean getVersionable()
Assembly
Assembly
public void setVersionable(boolean versionable)
versionable
- Wether deliverables are used for composing Versions
public boolean getMandatory()
Assembly
Assembly
public void setMandatory(boolean mandatory)
mandatory
- Wether deliverables are mandatory whe composing Versions
public boolean getVcsDeliverable()
public void setVcsDeliverable(boolean vcsDeliverable)
vcsDeliverable
- Wether deliverables are retrieved using a version and configuration systempublic java.lang.String getVcsUser()
public void setVcsUser(java.lang.String vcsUser)
vcsUser
- The user for connecting to VCSpublic java.lang.String getVcsPassword()
public void setVcsPassword(java.lang.String vcsPassword)
vcsPassword
- The password for connection to VCSpublic java.lang.String getVcsRoot()
public void setVcsRoot(java.lang.String vcsRoot)
vcsRoot
- The root of VCS used (CVS root, SVN Url, ...)public java.lang.String getVcsModule()
public void setVcsModule(java.lang.String vcsModule)
vcsModule
- Name of module corresponding to deliverables in VCSpublic java.lang.String getVcsAccessorClass()
public void setVcsAccessorClass(java.lang.String vcsAccessorClass) throws InvalidParameterException
org.figure8.join.services.vcs.VCSAccessor
vcsAccessorClass
- FQN of Java class
InvalidParameterException
- if the vcsImplementationClass is not validpublic VCSAccessor getVCSAccessor() throws InvalidParameterException
VCSAccessor
associated to this type (if any). The returned accessor
is "ready to use" : it has been initialized with corret properties.
InvalidParameterException
- if the vcsAccessorClass inner field is not validpublic java.lang.String generateDeliverableKey(Deliverable deliverable)
Artifact
. So this implementation is using
the given keyTemplate as a java.text.MessageFormat using 2 arguments
that are the deliverable release name (unique for a relase) and the deliverable
version infos (unique for a deliverable within a release).
deliverable
- Deliverable for whom a key should be generated
MessageFormat
,
Artifact
protected void instantiateVCSAccessor() throws InvalidParameterException
VCSAccessor
associated with this type (if any ...)
InvalidParameterException
- if the vcsAccessorClass inner field is not validpublic java.lang.String getStringForComparison()
getStringForComparison
in class SortableEntityObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |