@Entity
@Indexed
@ClassBridges(value={@ClassBridge(name="attachments",store=YES,analyze=NO,impl=RequirementVersionAttachmentBridge.class),@ClassBridge(name="cufs",store=YES,impl=CUFBridge.class,params={,}),@ClassBridge(name="cufs",store=YES,analyze=NO,impl=CUFBridge.class,params={,}),@ClassBridge(name="isCurrentVersion",store=YES,analyze=NO,impl=RequirementVersionIsCurrentBridge.class),@ClassBridge(name="parent",store=YES,analyze=NO,impl=RequirementVersionHasParentBridge.class)})
public class RequirementVersion
extends Resource
implements BoundEntity, MilestoneHolder
| Modifier and Type | Class and Description |
|---|---|
class |
RequirementVersion.PropertiesSetter |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_REF_SIZE |
| Constructor and Description |
|---|
RequirementVersion() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequirementCoverage(RequirementVersionCoverage coverage)
Simply add the coverage to this.requirementVersionCoverage
THIS DOES NOT SET THE coverage->version SIDE OF THE ASSOCIATION !
|
void |
bindMilestone(Milestone milestone) |
void |
checkLinkable() |
static RequirementVersion |
createFromMemento(RequirementVersionImportMemento memento)
Factory methiod which creates a
RequirementVersion from a memento objet which holds the new object's
target state. |
RequirementVersion |
createPastableCopy()
Will create a copy of the requirement version with all attributes, and attachments.
|
List<RequirementVersionCoverage> |
createRequirementVersionCoveragesForCopy(RequirementVersion copyVersion)
Will create a copy of this.requirementVersionCoverages.
|
Boolean |
doMilestonesAllowCreation() |
Boolean |
doMilestonesAllowEdition() |
Long |
getBoundEntityId() |
BindableEntity |
getBoundEntityType() |
InfoListItem |
getCategory() |
RequirementCriticality |
getCriticality() |
String |
getFullName() |
Set<Milestone> |
getMilestones() |
Project |
getProject() |
RequirementVersion.PropertiesSetter |
getPropertySetter() |
String |
getReference() |
Requirement |
getRequirement() |
RequirementVersionCoverage |
getRequirementVersionCoverageOrNullFor(TestCase testCase) |
Set<RequirementVersionCoverage> |
getRequirementVersionCoverages() |
RequirementStatus |
getStatus() |
Set<TestCase> |
getVerifyingTestCases()
Returns an UNMODIFIABLE VIEW of the verifying test cases.
|
int |
getVersionNumber() |
boolean |
isLinkable() |
boolean |
isMemberOf(Milestone milestone) |
boolean |
isModifiable()
Tells if this requirement's "intrinsic" properties can be modified.
|
boolean |
isNotObsolete() |
void |
removeRequirementVersionCoverage(RequirementVersionCoverage requirementVersionCoverage)
Simply remove the RequirementVersionCoverage from this.requirementVersionCoverages.
|
void |
setCategory(InfoListItem category)
Set the requirement category
|
void |
setCriticality(RequirementCriticality criticality)
Set the requirement criticality
|
void |
setDescription(String description) |
void |
setName(String name) |
void |
setReference(String reference)
Set the requirement reference
|
void |
setStatus(RequirementStatus status)
Sets this object's status, following status transition rules.
|
void |
setVersionNumber(int versionNumber) |
void |
unbindAllMilestones() |
void |
unbindMilestone(Long milestoneId) |
void |
unbindMilestone(Milestone milestone) |
equals, getAttachmentList, getDescription, getId, getName, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetIdpublic static final int MAX_REF_SIZE
public void setDescription(String description)
setDescription in class Resourcepublic Set<TestCase> getVerifyingTestCases()
public void checkLinkable()
public String getReference()
public void setReference(String reference)
reference - public String getFullName()
public RequirementCriticality getCriticality()
public void setCriticality(RequirementCriticality criticality)
criticality - public InfoListItem getCategory()
public void setCategory(InfoListItem category)
category - public void setStatus(RequirementStatus status)
status - public RequirementStatus getStatus()
public boolean isLinkable()
true if this requirement can be (un)linked by new verifying testcasespublic boolean isModifiable()
#verifyingTestCases are governed by the isLinkable() state,
status is governed by itself.true if this requirement's properties can be modified.public Requirement getRequirement()
public int getVersionNumber()
public void setVersionNumber(int versionNumber)
public RequirementVersion createPastableCopy()
public boolean isNotObsolete()
public static RequirementVersion createFromMemento(@NotNull RequirementVersionImportMemento memento)
RequirementVersion from a memento objet which holds the new object's
target state. This method overrides any RequirementStatus workflow check.memento - public Long getBoundEntityId()
getBoundEntityId in interface BoundEntitypublic BindableEntity getBoundEntityType()
getBoundEntityType in interface BoundEntitypublic Project getProject()
getProject in interface BoundEntitygetProject in interface MilestoneHolderpublic void addRequirementCoverage(RequirementVersionCoverage coverage)
coverage - public RequirementVersionCoverage getRequirementVersionCoverageOrNullFor(TestCase testCase)
public void removeRequirementVersionCoverage(RequirementVersionCoverage requirementVersionCoverage)
requirementVersionCoverage - : the entity to remove from this requirement version's RequirementVersionCoverages list.RequirementVersionNotLinkableExceptionpublic List<RequirementVersionCoverage> createRequirementVersionCoveragesForCopy(RequirementVersion copyVersion)
RequirementVersionCoverage having, instead
of this the copyVersion param as their verifiedRequirementVersion.copyVersion - RequirementVersionCoveragesRequirementVersionNotLinkableExceptionRequirementAlreadyVerifiedExceptionpublic Set<RequirementVersionCoverage> getRequirementVersionCoverages()
public Set<Milestone> getMilestones()
getMilestones in interface MilestoneMemberpublic boolean isMemberOf(Milestone milestone)
isMemberOf in interface MilestoneMemberpublic void bindMilestone(Milestone milestone)
bindMilestone in interface MilestoneHolderpublic void unbindMilestone(Milestone milestone)
unbindMilestone in interface MilestoneHolderpublic void unbindMilestone(Long milestoneId)
unbindMilestone in interface MilestoneHolderpublic void unbindAllMilestones()
unbindAllMilestones in interface MilestoneHolderMilestoneHolder.unbindAllMilestones()public Boolean doMilestonesAllowCreation()
doMilestonesAllowCreation in interface MilestoneMemberpublic Boolean doMilestonesAllowEdition()
doMilestonesAllowEdition in interface MilestoneMemberpublic RequirementVersion.PropertiesSetter getPropertySetter()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.