org.squashtest.csp.tm.domain.project
Class Project

java.lang.Object
  extended by org.squashtest.csp.tm.domain.project.Project
All Implemented Interfaces:
org.squashtest.csp.core.domain.Identified

@Entity
public class Project
extends Object
implements org.squashtest.csp.core.domain.Identified


Constructor Summary
Project()
           
 
Method Summary
 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.
 org.squashtest.csp.core.bugtracker.domain.BugTracker findBugTracker()
           
 BugTrackerBinding getBugtrackerBinding()
           
 CampaignLibrary getCampaignLibrary()
           
 String getDescription()
           
 Long getId()
           
 String getLabel()
           
 String getName()
           
 RequirementLibrary getRequirementLibrary()
           
 TestAutomationServer getServerOfLatestBoundProject()
           
 Collection<TestAutomationProject> getTestAutomationProjects()
           
 TestCaseLibrary getTestCaseLibrary()
           
 boolean hasTestAutomationProjects()
           
 boolean isActive()
           
 boolean isBugtrackerConnected()
           
 boolean isTestAutomationEnabled()
           
 void removeBugTrackerBinding()
           
 void setActive(boolean isActive)
           
 void setBugtrackerBinding(BugTrackerBinding bugtrackerBinding)
           
 void setCampaignLibrary(CampaignLibrary campaignLibrary)
           
 void setDescription(String description)
           
 void setLabel(String label)
           
 void setName(String name)
           
 void setRequirementLibrary(RequirementLibrary requirementLibrary)
           
 void setTestAutomationEnabled(boolean enabled)
           
 void setTestCaseLibrary(TestCaseLibrary testCaseLibrary)
           
 void unbindTestAutomationProject(Long TAprojectId)
           
 void unbindTestAutomationProject(TestAutomationProject project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project()
Method Detail

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)

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


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.