org.squashtest.csp.tm.domain.campaign
Class Campaign
java.lang.Object
org.squashtest.csp.tm.domain.library.GenericLibraryNode
org.squashtest.csp.tm.domain.campaign.CampaignLibraryNode
org.squashtest.csp.tm.domain.campaign.Campaign
- All Implemented Interfaces:
- org.squashtest.csp.core.domain.Identified, AttachmentHolder, BoundEntity, Copiable, LibraryNode, NodeContainer<Iteration>, TreeNode, ProjectResource<Project>
@Entity
public class Campaign
- extends CampaignLibraryNode
- implements NodeContainer<Iteration>, BoundEntity
| Methods inherited from interface org.squashtest.csp.core.domain.Identified |
getId |
Campaign
public Campaign()
accept
public void accept(CampaignLibraryNodeVisitor visitor)
- Specified by:
accept in class CampaignLibraryNode
setScheduledStartDate
public void setScheduledStartDate(Date startDate)
getScheduledStartDate
public Date getScheduledStartDate()
setScheduledEndDate
public void setScheduledEndDate(Date endDate)
getScheduledEndDate
public Date getScheduledEndDate()
getActualStartDate
public Date getActualStartDate()
setActualStartDate
public void setActualStartDate(Date actualStartDate)
getActualEndDate
public Date getActualEndDate()
getTestPlan
public List<CampaignTestPlanItem> getTestPlan()
setActualEndDate
public void setActualEndDate(Date actualEndDate)
isActualStartAuto
public boolean isActualStartAuto()
isActualEndAuto
public boolean isActualEndAuto()
setActualStartAuto
public void setActualStartAuto(boolean actualStartAuto)
setActualEndAuto
public void setActualEndAuto(boolean actualEndAuto)
getTestPlanForTestPlanItemId
@Deprecated
public CampaignTestPlanItem getTestPlanForTestPlanItemId(Long testCaseId)
- Deprecated. use
findTestPlanItem(TestCase)
- Parameters:
testCaseId -
- Returns:
findTestPlanItem
public CampaignTestPlanItem findTestPlanItem(TestCase testCase)
- Parameters:
testCase -
- Returns:
- the test plan item which references the given test case, if any.
addToTestPlan
public void addToTestPlan(@NotNull
CampaignTestPlanItem itemTestPlan)
- Parameters:
itemTestPlan -
removeTestPlanItem
public void removeTestPlanItem(@NotNull
CampaignTestPlanItem itemTestPlan)
removeTestPlanItem
public void removeTestPlanItem(long itemId)
removeTestPlanItems
public void removeTestPlanItems(List<Long> itemIds)
removeIteration
public void removeIteration(@NotNull
Iteration iteration)
getIterations
public List<Iteration> getIterations()
addIteration
public void addIteration(@NotNull
Iteration iteration)
createCopy
public Campaign createCopy()
- Specified by:
createCopy in interface Copiable
isContentNameAvailable
public boolean isContentNameAvailable(String name)
- Specified by:
isContentNameAvailable in interface NodeContainer<Iteration>
updateActualStart
public void updateActualStart(Date newIterationStartDate)
- If the iteration have autodates set, they will be updated accordingly.
- Parameters:
newItemTestPlanDate -
updateActualEnd
public void updateActualEnd(Date newIterationEndDate)
testPlanContains
public boolean testPlanContains(@NotNull
TestCase tc)
hasIterations
public boolean hasIterations()
moveTestPlanItems
public void moveTestPlanItems(int targetIndex,
List<Long> itemIds)
getBoundEntityId
public Long getBoundEntityId()
- Specified by:
getBoundEntityId in interface BoundEntity
getBoundEntityType
public BindableEntity getBoundEntityType()
- Specified by:
getBoundEntityType in interface BoundEntity
accept
public void accept(NodeVisitor visitor)
- Specified by:
accept in interface TreeNode
getContent
public Set<Iteration> getContent()
- Specified by:
getContent in interface NodeContainer<Iteration>
hasContent
public boolean hasContent()
- Specified by:
hasContent in interface NodeContainer<Iteration>
addContent
public void addContent(Iteration iteration)
throws DuplicateNameException,
org.apache.commons.lang.NullArgumentException
- Description copied from interface:
NodeContainer
- Adds new content to this container. Should refuse to add null content, should refuse to add content with duplicate
name.
- Specified by:
addContent in interface NodeContainer<Iteration>
- Throws:
DuplicateNameException
org.apache.commons.lang.NullArgumentException
removeContent
public void removeContent(Iteration contentToRemove)
throws org.apache.commons.lang.NullArgumentException
- Specified by:
removeContent in interface NodeContainer<Iteration>
- Throws:
org.apache.commons.lang.NullArgumentException
getContentNames
public List<String> getContentNames()
- Specified by:
getContentNames in interface NodeContainer<Iteration>
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.