org.squashtest.csp.tm.domain.project
Class GenericProject
java.lang.Object
org.squashtest.csp.tm.domain.project.GenericProject
- All Implemented Interfaces:
- org.squashtest.csp.core.domain.Identified, AttachmentHolder
- Direct Known Subclasses:
- Project, ProjectTemplate
@Entity
public abstract class GenericProject
- extends Object
- implements org.squashtest.csp.core.domain.Identified, AttachmentHolder
GenericProject is the superclass of Project and ProjectTemplate. Even though there is no other structural difference
between an project and a template, choosing a specialization through inheritance (instead of a specialization through
composition) lets the app rely on polymorphism and reduce the impact upon project templates introduction.
- Author:
- Gregory Fouquet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericProject
public GenericProject()
getLabel
public String getLabel()
setLabel
public void setLabel(String label)
getId
public Long getId()
- Specified by:
getId in interface org.squashtest.csp.core.domain.Identified
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getName
@NotBlank
public String getName()
setName
public void setName(String name)
setActive
public void setActive(boolean isActive)
isActive
public boolean isActive()
isBugtrackerConnected
public boolean isBugtrackerConnected()
getTestCaseLibrary
public TestCaseLibrary getTestCaseLibrary()
setTestCaseLibrary
public void setTestCaseLibrary(TestCaseLibrary testCaseLibrary)
getRequirementLibrary
public RequirementLibrary getRequirementLibrary()
setRequirementLibrary
public void setRequirementLibrary(RequirementLibrary requirementLibrary)
getCampaignLibrary
public CampaignLibrary getCampaignLibrary()
setCampaignLibrary
public void setCampaignLibrary(CampaignLibrary campaignLibrary)
getBugtrackerBinding
public BugTrackerBinding getBugtrackerBinding()
setBugtrackerBinding
public void setBugtrackerBinding(BugTrackerBinding bugtrackerBinding)
getAttachmentList
public AttachmentList getAttachmentList()
- Description copied from interface:
AttachmentHolder
- Should return the container for this object's attachments. Should never return
null.
- Specified by:
getAttachmentList in interface AttachmentHolder
- Returns:
- the
AttachmentList of this object.
bindTestAutomationProject
public void bindTestAutomationProject(TestAutomationProject project)
- will add a TestAutomationProject if it wasn't added already, or won't do anything if it was already bound to
this.
- Parameters:
project -
unbindTestAutomationProject
public void unbindTestAutomationProject(TestAutomationProject project)
unbindTestAutomationProject
public void unbindTestAutomationProject(long taProjectId)
isTestAutomationEnabled
public boolean isTestAutomationEnabled()
setTestAutomationEnabled
public void setTestAutomationEnabled(boolean enabled)
hasTestAutomationProjects
public boolean hasTestAutomationProjects()
getServerOfLatestBoundProject
public TestAutomationServer getServerOfLatestBoundProject()
getTestAutomationProjects
public Collection<TestAutomationProject> getTestAutomationProjects()
removeBugTrackerBinding
public void removeBugTrackerBinding()
findBugTracker
public org.squashtest.csp.core.bugtracker.domain.BugTracker findBugTracker()
- Returns:
- the BugTracker the Project is bound to
- Throws:
NoBugTrackerBindingException - if the project is not BugtrackerConnected
accept
public abstract void accept(ProjectVisitor visitor)
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.