@Entity public class Iteration extends Object implements AttachmentHolder, NodeContainer<TestSuite>, TreeNode, Copiable, Identified, BoundEntity, MilestoneMember
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_REF_SIZE |
| Constructor and Description |
|---|
Iteration() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NodeContainerVisitor visitor) |
void |
accept(NodeVisitor visitor) |
void |
addContent(TestSuite testSuite)
Adds new content to this container.
|
void |
addContent(TestSuite testSuite,
int position)
Adds new content to this container at the given position.
|
void |
addTestPlan(IterationTestPlanItem testPlan) |
void |
addTestSuite(TestSuite suite) |
void |
addTestSuite(TestSuite suite,
int position) |
boolean |
checkSuiteNameAvailable(String name) |
Iteration |
createCopy()
copy of iteration doesn't contain test-suites !!
|
Map<TestSuite,List<Integer>> |
createTestSuitesPastableCopy()
this method is used in case of copy paste of an iteration with test suites.
|
Boolean |
doMilestonesAllowCreation() |
Boolean |
doMilestonesAllowEdition() |
int |
findItemIndexInTestPlan(long testPlanId)
Method which returns the position of an item test plan in the current iteration
|
int |
findTestCaseIndexInTestPlan(long testCaseId)
Method which returns the position of a test case in the current iteration
|
Date |
getActualEndDate() |
Date |
getActualStartDate() |
AttachmentList |
getAttachmentList()
Should return the container for this object's attachments.
|
Long |
getBoundEntityId() |
BindableEntity |
getBoundEntityType() |
Campaign |
getCampaign() |
CampaignLibrary |
getCampaignLibrary() |
List<TestSuite> |
getContent()
The content of an iteration means its test suites.
|
List<String> |
getContentNames() |
String |
getDescription() |
List<Execution> |
getExecutions()
flattened list of the executions
|
String |
getFullName() |
Long |
getId() |
int |
getIndexOf(IterationTestPlanItem item) |
Set<Milestone> |
getMilestones() |
String |
getName() |
Collection<TestSuite> |
getOrderedContent()
Will return the ordered (if order there is) content nodes.
|
List<TestCase> |
getPlannedTestCase() |
Project |
getProject()
A node container can be a library.
|
String |
getReference() |
Date |
getScheduledEndDate() |
Date |
getScheduledStartDate() |
List<IterationTestPlanItem> |
getTestPlans() |
TestSuite |
getTestSuiteByName(String tsName) |
List<TestSuite> |
getTestSuites() |
boolean |
hasContent() |
boolean |
hasTestSuites() |
boolean |
isActualEndAuto() |
boolean |
isActualStartAuto() |
boolean |
isContentNameAvailable(String name) |
boolean |
isMemberOf(Milestone milestone) |
void |
moveTestPlan(int currentPosition,
int newPosition)
Deprecated.
|
void |
moveTestPlans(int newIndex,
List<IterationTestPlanItem> movedItems) |
void |
removeContent(TestSuite contentToRemove) |
void |
removeItemFromTestPlan(IterationTestPlanItem testPlanItem) |
void |
removeTestSuite(TestSuite testSuite) |
void |
setActualEndAuto(boolean actualEndAuto) |
void |
setActualEndDate(Date endDate) |
void |
setActualStartAuto(boolean actualStartAuto) |
void |
setActualStartDate(Date startDate) |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setReference(String reference) |
void |
setScheduledEndDate(Date endDate) |
void |
setScheduledStartDate(Date startDate) |
void |
updateAutoDates(Date newItemTestPlanDate)
If the iteration have autodates set, they will be updated accordingly.
|
void |
updateAutoDatesAfterExecutionDetach(IterationTestPlanItem iterationTestPlanItem)
will update acual end and start dates if are auto and if they were driven by the execution last-executed on
|
public static final int MAX_REF_SIZE
public String getReference()
public void setReference(String reference)
public String getFullName()
public Campaign getCampaign()
public void setDescription(String description)
public String getDescription()
public void setScheduledStartDate(Date startDate)
public Date getScheduledStartDate()
public void setScheduledEndDate(Date endDate)
public Date getScheduledEndDate()
public void setActualStartDate(Date startDate)
public Date getActualStartDate()
public void setActualEndDate(Date endDate)
public Date getActualEndDate()
public boolean isActualStartAuto()
public boolean isActualEndAuto()
public void setActualStartAuto(boolean actualStartAuto)
public void setActualEndAuto(boolean actualEndAuto)
public Long getId()
getId in interface Identifiedpublic Iteration createCopy()
copy of iteration doesn't contain test-suites !!
createCopy in interface Copiablepublic List<IterationTestPlanItem> getTestPlans()
public void removeTestSuite(@NotNull
TestSuite testSuite)
public void removeItemFromTestPlan(@NotNull
IterationTestPlanItem testPlanItem)
public void addTestPlan(@NotNull
IterationTestPlanItem testPlan)
public int findTestCaseIndexInTestPlan(long testCaseId)
testCaseId - the id of the test case we're looking forUnknownEntityException - if not found.public int findItemIndexInTestPlan(long testPlanId)
testPlanId - the id of the test plan we're looking forUnknownEntityException - if not found.@Deprecated public void moveTestPlan(int currentPosition, int newPosition)
currentPosition - the current positionnewPosition - the new positionpublic void moveTestPlans(int newIndex,
List<IterationTestPlanItem> movedItems)
public int getIndexOf(IterationTestPlanItem item)
public void addTestSuite(TestSuite suite)
public void addTestSuite(TestSuite suite, int position)
public boolean checkSuiteNameAvailable(String name)
public boolean hasTestSuites()
public AttachmentList getAttachmentList()
AttachmentHoldernull.getAttachmentList in interface AttachmentHolderAttachmentList of this object.public Project getProject()
NodeContainergetProject in interface BoundEntitygetProject in interface NodeContainer<TestSuite>getProject in interface TreeNodepublic CampaignLibrary getCampaignLibrary()
public void updateAutoDates(Date newItemTestPlanDate)
newItemTestPlanDate - public Map<TestSuite,List<Integer>> createTestSuitesPastableCopy()
public void updateAutoDatesAfterExecutionDetach(IterationTestPlanItem iterationTestPlanItem)
public Long getBoundEntityId()
getBoundEntityId in interface BoundEntitypublic BindableEntity getBoundEntityType()
getBoundEntityType in interface BoundEntitypublic void accept(NodeVisitor visitor)
public void accept(NodeContainerVisitor visitor)
accept in interface NodeContainer<TestSuite>public void addContent(@NotNull
TestSuite testSuite)
throws DuplicateNameException,
org.squashtest.tm.core.foundation.exception.NullArgumentException
NodeContaineraddContent in interface NodeContainer<TestSuite>DuplicateNameExceptionorg.squashtest.tm.core.foundation.exception.NullArgumentExceptionpublic void addContent(@NotNull
TestSuite testSuite,
int position)
throws DuplicateNameException,
org.squashtest.tm.core.foundation.exception.NullArgumentException
NodeContaineraddContent in interface NodeContainer<TestSuite>DuplicateNameExceptionorg.squashtest.tm.core.foundation.exception.NullArgumentExceptionpublic boolean isContentNameAvailable(String name)
isContentNameAvailable in interface NodeContainer<TestSuite>public List<TestSuite> getContent()
getContent in interface NodeContainer<TestSuite>NodeContainer.getContent()public Collection<TestSuite> getOrderedContent()
NodeContainergetOrderedContent in interface NodeContainer<TestSuite>public boolean hasContent()
hasContent in interface NodeContainer<TestSuite>NodeContainer.hasContent()public void removeContent(TestSuite contentToRemove) throws org.squashtest.tm.core.foundation.exception.NullArgumentException
removeContent in interface NodeContainer<TestSuite>org.squashtest.tm.core.foundation.exception.NullArgumentExceptionpublic List<String> getContentNames()
getContentNames in interface NodeContainer<TestSuite>public Set<Milestone> getMilestones()
getMilestones in interface MilestoneMemberpublic boolean isMemberOf(Milestone milestone)
isMemberOf in interface MilestoneMemberpublic Boolean doMilestonesAllowCreation()
doMilestonesAllowCreation in interface MilestoneMemberpublic Boolean doMilestonesAllowEdition()
doMilestonesAllowEdition in interface MilestoneMemberCopyright © 2010–2016 Henix, henix.fr. All rights reserved.