|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.domain.campaign.Iteration
@Entity public class Iteration
| Constructor Summary | |
|---|---|
Iteration()
|
|
| Method Summary | |
|---|---|
void |
accept(NodeVisitor visitor)
|
void |
addContent(TestSuite testSuite)
Adds new content to this container. |
void |
addTestPlan(IterationTestPlanItem testPlan)
|
void |
addTestSuite(TestSuite suite)
|
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. |
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()
|
Set |
getContent()
|
List<String> |
getContentNames()
|
String |
getDescription()
|
List<Execution> |
getExecutions()
flattened list of the executions |
Long |
getId()
|
int |
getIndexOf(IterationTestPlanItem item)
|
String |
getName()
|
List<TestCase> |
getPlannedTestCase()
|
Project |
getProject()
|
Date |
getScheduledEndDate()
|
Date |
getScheduledStartDate()
|
IterationTestPlanItem |
getTestPlan(Long testPlanId)
|
List<IterationTestPlanItem> |
getTestPlans()
|
Set<TestSuite> |
getTestSuites()
|
boolean |
hasContent()
|
boolean |
hasTestSuites()
|
boolean |
isActualEndAuto()
|
boolean |
isActualStartAuto()
|
boolean |
isContentNameAvailable(String name)
|
void |
moveTestPlan(int currentPosition,
int newPosition)
Deprecated. |
void |
moveTestPlans(int newIndex,
List<IterationTestPlanItem> movedItems)
|
void |
removeContent(TestSuite contentToRemove)
|
void |
removeTestPlan(IterationTestPlanItem testPlan)
|
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 |
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,
Execution execution)
will update acual end and start dates if are auto and if they were driven by the execution last-executed on |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Iteration()
| Method Detail |
|---|
public List<Execution> getExecutions()
public void setName(String name)
setName in interface Copiable@NotBlank public String getName()
getName in interface Copiablepublic 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 org.squashtest.csp.core.domain.Identifiedpublic IterationTestPlanItem getTestPlan(Long testPlanId)
public Iteration createCopy()
copy of iteration doesn't contain test-suites !!
createCopy in interface Copiablepublic List<IterationTestPlanItem> getTestPlans()
public List<TestCase> getPlannedTestCase()
public void removeTestSuite(@NotNull
TestSuite testSuite)
public void removeTestPlan(@NotNull
IterationTestPlanItem testPlan)
public void addTestPlan(@NotNull
IterationTestPlanItem testPlan)
public int findTestCaseIndexInTestPlan(long testCaseId)
testCaseId - the id of the test case we're looking for
UnknownEntityException - if not found.public int findItemIndexInTestPlan(long testPlanId)
testPlanId - the id of the test plan we're looking for
UnknownEntityException - if not found.
@Deprecated
public void moveTestPlan(int currentPosition,
int newPosition)
currentPosition - the current positionnewPosition - the new position
public void moveTestPlans(int newIndex,
List<IterationTestPlanItem> movedItems)
public int getIndexOf(IterationTestPlanItem item)
public Set<TestSuite> getTestSuites()
public void addTestSuite(TestSuite suite)
public boolean checkSuiteNameAvailable(String name)
public boolean hasTestSuites()
public AttachmentList getAttachmentList()
AttachmentHoldernull.
getAttachmentList in interface AttachmentHolderAttachmentList of this object.public Project getProject()
getProject in interface BoundEntitypublic CampaignLibrary getCampaignLibrary()
public void updateAutoDates(Date newItemTestPlanDate)
newItemTestPlanDate - public Map<TestSuite,List<Integer>> createTestSuitesPastableCopy()
public void updateAutoDatesAfterExecutionDetach(IterationTestPlanItem iterationTestPlanItem,
Execution execution)
execution - public Long getBoundEntityId()
getBoundEntityId in interface BoundEntitypublic BindableEntity getBoundEntityType()
getBoundEntityType in interface BoundEntitypublic void accept(NodeVisitor visitor)
accept in interface TreeNode
public void addContent(@NotNull
TestSuite testSuite)
throws DuplicateNameException,
org.apache.commons.lang.NullArgumentException
NodeContainer
addContent in interface NodeContainer<TestSuite>DuplicateNameException
org.apache.commons.lang.NullArgumentExceptionpublic boolean isContentNameAvailable(String name)
isContentNameAvailable in interface NodeContainer<TestSuite>public Set getContent()
getContent in interface NodeContainer<TestSuite>public boolean hasContent()
hasContent in interface NodeContainer<TestSuite>
public void removeContent(TestSuite contentToRemove)
throws org.apache.commons.lang.NullArgumentException
removeContent in interface NodeContainer<TestSuite>org.apache.commons.lang.NullArgumentExceptionpublic List<String> getContentNames()
getContentNames in interface NodeContainer<TestSuite>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||