@Service(value="squashtest.tm.service.MilestoneMembershipManager") public class MilestoneMembershipManagerImpl extends Object implements MilestoneMembershipManager
| Constructor and Description |
|---|
MilestoneMembershipManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindCampaignToMilestone(long campaignId,
Long milestoneId)
unlike other entities, a campaign can belong to one milestone only.
|
void |
bindRequirementVersionToMilestones(long versionId,
Collection<Long> milestoneIds) |
void |
bindTestCaseToMilestones(long testCaseId,
Collection<Long> milestoneIds) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAllMilestonesForTestCase(long testCaseId)
Returns the milestones of which the test case is directly a member,
plus all the milestones of which its verified requirement are members.
|
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAllMilestonesForUser(long userId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesToCampaign(long campaignId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesToRequirementVersion(long versionId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAssociableMilestonesToTestCase(long testCaseId) |
Collection<org.squashtest.tm.domain.campaign.Campaign> |
findCampaignsByMilestoneId(long milestoneId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForCampaign(long campaignId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForIteration(long iterationId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForRequirementVersion(long versionId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findMilestonesForTestSuite(long testSuiteId) |
boolean |
isMilestoneBoundToACampainInProjects(Long milestoneId,
List<Long> projectIds) |
boolean |
isTestCaseMilestoneDeletable(long testCaseId)
Says whether a test case cannot be deleted because of milestone
it belongs directly, and also because of those of the requirements
this test case verifies.
|
boolean |
isTestCaseMilestoneModifiable(long testCaseId)
Says whether a test case cannot be modified because of milestone
it belongs directly, and also because of those of the requirements
this test case verifies.
|
void |
unbindCampaignFromMilestones(long campaignId,
Collection<Long> milestoneIds) |
void |
unbindRequirementVersionFromMilestones(long versionId,
Collection<Long> milestoneIds) |
void |
unbindTestCaseFromMilestones(long testCaseId,
Collection<Long> milestoneIds) |
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void bindTestCaseToMilestones(long testCaseId,
Collection<Long> milestoneIds)
bindTestCaseToMilestones in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void unbindTestCaseFromMilestones(long testCaseId,
Collection<Long> milestoneIds)
unbindTestCaseFromMilestones in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#versionId, \'org.squashtest.tm.domain.requirement.RequirementVersion\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void bindRequirementVersionToMilestones(long versionId,
Collection<Long> milestoneIds)
bindRequirementVersionToMilestones in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#versionId, \'org.squashtest.tm.domain.requirement.RequirementVersion\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void unbindRequirementVersionFromMilestones(long versionId,
Collection<Long> milestoneIds)
unbindRequirementVersionFromMilestones in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void bindCampaignToMilestone(long campaignId,
Long milestoneId)
MilestoneMembershipManagerbindCampaignToMilestone in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void unbindCampaignFromMilestones(long campaignId,
Collection<Long> milestoneIds)
unbindCampaignFromMilestones in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findAllMilestonesForTestCase(long testCaseId)
MilestoneMembershipFinderfindAllMilestonesForTestCase in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public boolean isTestCaseMilestoneDeletable(long testCaseId)
MilestoneMembershipFinderisTestCaseMilestoneDeletable in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public boolean isTestCaseMilestoneModifiable(long testCaseId)
MilestoneMembershipFinderisTestCaseMilestoneModifiable in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesToTestCase(long testCaseId)
findAssociableMilestonesToTestCase in interface MilestoneMembershipManagerpublic Collection<org.squashtest.tm.domain.milestone.Milestone> findAllMilestonesForUser(long userId)
findAllMilestonesForUser in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#versionId, \'org.squashtest.tm.domain.requirement.RequirementVersion\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesToRequirementVersion(long versionId)
findAssociableMilestonesToRequirementVersion in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#versionId, \'org.squashtest.tm.domain.requirement.RequirementVersion\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForRequirementVersion(long versionId)
findMilestonesForRequirementVersion in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findAssociableMilestonesToCampaign(long campaignId)
findAssociableMilestonesToCampaign in interface MilestoneMembershipManager@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForCampaign(long campaignId)
findMilestonesForCampaign in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForIteration(long iterationId)
findMilestonesForIteration in interface MilestoneMembershipFinder@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findMilestonesForTestSuite(long testSuiteId)
findMilestonesForTestSuite in interface MilestoneMembershipFinderpublic Collection<org.squashtest.tm.domain.campaign.Campaign> findCampaignsByMilestoneId(long milestoneId)
findCampaignsByMilestoneId in interface MilestoneMembershipManagerpublic boolean isMilestoneBoundToACampainInProjects(Long milestoneId, List<Long> projectIds)
isMilestoneBoundToACampainInProjects in interface MilestoneMembershipFinderCopyright © 2010–2017 Henix, henix.fr. All rights reserved.