org.squashtest.tm.service.internal.campaign
@Service(value="squashtest.tm.service.IterationTestPlanManagerService") @Transactional public class IterationTestPlanManagerServiceImpl extends Object implements IterationTestPlanManagerService
| Constructor and Description |
|---|
IterationTestPlanManagerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestCasesToIteration(List<Long> objectsIds,
long iterationId)
Adds a list of test cases to an iteration.
|
List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> |
addTestPlanItemsToIteration(List<Long> testNodesIds,
org.squashtest.tm.domain.campaign.Iteration iteration)
Adds a list of test cases to an iteration.
|
void |
addTestPlanToIteration(List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> testPlan,
long iterationId)
persist each iteration_test_plan_item and add it to iteration
|
void |
assignUserToTestPlanItem(long testPlanItemId,
long userId)
Assign User with Execute Access to a TestPlan item.
|
void |
assignUserToTestPlanItems(List<Long> testPlanIds,
long userId)
Assign User with Execute Access to a multiple TestPlan items.
|
void |
changeTestPlanPosition(long iterationId,
int newPosition,
List<Long> itemIds) |
Collection<org.squashtest.tm.domain.campaign.IterationTestPlanItem> |
createTestPlanFragment(org.squashtest.tm.domain.testcase.TestCase testCase,
org.squashtest.tm.domain.users.User assignee)
Creates a fragment of test plan, containing either :
a unique item when the test case is not parameterized
one item per dataset when the test case is parameterized
Note : The returned test plan fragment is in a transient state.
|
List<org.squashtest.tm.domain.users.User> |
findAssignableUserForTestPlan(long iterationId)
Get Users with Execute Access for an Iteration and its TestPlan.
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IndexedIterationTestPlanItem>> |
findAssignedTestPlan(long iterationId,
org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting,
org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
Returns an iteration filtered for a specific user.
|
List<org.squashtest.tm.domain.testcase.TestCaseLibrary> |
findLinkableTestCaseLibraries()
Returns a collection of
TestCaseLibrary, the test cases of which may be added to the campaign |
List<org.squashtest.tm.domain.testcase.TestCase> |
findPlannedTestCases(Long iterationId) |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IndexedIterationTestPlanItem>> |
findTestPlan(long iterationId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting filter) |
org.squashtest.tm.domain.campaign.IterationTestPlanItem |
findTestPlanItem(long itemTestPlanId) |
org.squashtest.tm.domain.campaign.IterationTestPlanItem |
findTestPlanItemByTestCaseId(long iterationId,
long testCaseId)
Deprecated.
method used only in Integration tests should be removed
|
void |
forceExecutionStatus(long iterationTestPlanItemId,
String statusName)
Assigns an execution status to a test plan item.
|
List<org.squashtest.tm.domain.execution.ExecutionStatus> |
getExecutionStatusList() |
boolean |
removeTestPlanFromIteration(long testPlanItemId)
Removes a test case from an iteration except if the test plans was executed
|
boolean |
removeTestPlansFromIteration(List<Long> testPlanIds,
long iterationId)
Removes a list of test cases from a campaign excepted the test plans which were executed
|
boolean |
removeTestPlansFromIterationObj(List<Long> testPlanItemsIds,
org.squashtest.tm.domain.campaign.Iteration iteration)
Removes a list of test cases from an iteration excepted the test plans which were executed
|
void |
reorderTestPlan(long iterationId,
org.squashtest.tm.core.foundation.collection.MultiSorting newSorting) |
void |
updateMetadata(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
Will update the item test plan execution metadata using the last execution data.
|
@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.testcase.TestCaseLibrary> findLinkableTestCaseLibraries()
IterationTestPlanFinderTestCaseLibrary, the test cases of which may be added to the campaignfindLinkableTestCaseLibraries in interface IterationTestPlanFinderpublic org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IndexedIterationTestPlanItem>> findAssignedTestPlan(long iterationId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting, org.squashtest.tm.core.foundation.collection.ColumnFiltering columnFiltering)
IterationTestPlanManagerServicefindAssignedTestPlan in interface IterationTestPlanManagerServiceorg.squashtest.tm.service.campaign.CustomIterationModificationService#findAssignedTestPlan(long, Paging)@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')") public void addTestCasesToIteration(List<Long> objectsIds, long iterationId)
IterationTestPlanManagerServiceaddTestCasesToIteration in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iteration, \'LINK\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> addTestPlanItemsToIteration(List<Long> testNodesIds, org.squashtest.tm.domain.campaign.Iteration iteration)
IterationTestPlanManagerServiceaddTestPlanItemsToIteration in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')") public void addTestPlanToIteration(List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> testPlan, long iterationId)
IterationTestPlanManagerServicepersist each iteration_test_plan_item and add it to iteration
addTestPlanToIteration in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void changeTestPlanPosition(long iterationId,
int newPosition,
List<Long> itemIds)
changeTestPlanPosition in interface IterationTestPlanManagerServiceCustomIterationModificationService#changeTestPlanPosition(long, int, List)@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void reorderTestPlan(long iterationId,
org.squashtest.tm.core.foundation.collection.MultiSorting newSorting)
reorderTestPlan in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')") public boolean removeTestPlansFromIteration(List<Long> testPlanIds, long iterationId)
IterationTestPlanManagerServiceremoveTestPlansFromIteration in interface IterationTestPlanManagerServicetestPlanIds - the ids of the test plan managing that test case for that iterationiterationId - the id of the iteration@PreAuthorize(value="hasPermission(#iteration, \'LINK\') or hasRole(\'ROLE_ADMIN\')") public boolean removeTestPlansFromIterationObj(List<Long> testPlanItemsIds, org.squashtest.tm.domain.campaign.Iteration iteration)
IterationTestPlanManagerServiceremoveTestPlansFromIterationObj in interface IterationTestPlanManagerServicetestPlanItemsIds - the ids of the test plan managing that test case for that iterationiteration - the iteration@PreAuthorize(value="hasPermission(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'LINK\') or hasRole(\'ROLE_ADMIN\')") public boolean removeTestPlanFromIteration(long testPlanItemId)
IterationTestPlanManagerServiceremoveTestPlanFromIteration in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.testcase.TestCase> findPlannedTestCases(Long iterationId)
findPlannedTestCases in interface IterationTestPlanFinderpublic void updateMetadata(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
IterationTestPlanManagerServiceupdateMetadata in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<IndexedIterationTestPlanItem>> findTestPlan(long iterationId, org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
findTestPlan in interface IterationTestPlanFinderpublic List<org.squashtest.tm.domain.users.User> findAssignableUserForTestPlan(long iterationId)
IterationTestPlanFinderfindAssignableUserForTestPlan in interface IterationTestPlanFinderpublic void assignUserToTestPlanItem(long testPlanItemId,
long userId)
IterationTestPlanManagerServiceassignUserToTestPlanItem in interface IterationTestPlanManagerServiceIterationTestPlanManagerService.assignUserToTestPlanItem(long, long)public void assignUserToTestPlanItems(List<Long> testPlanIds, long userId)
IterationTestPlanManagerServiceassignUserToTestPlanItems in interface IterationTestPlanManagerServiceIterationTestPlanManagerService.assignUserToTestPlanItems(java.util.List,
long)@Deprecated public org.squashtest.tm.domain.campaign.IterationTestPlanItem findTestPlanItemByTestCaseId(long iterationId, long testCaseId)
findTestPlanItemByTestCaseId in interface IterationTestPlanFinderiterationId - testCaseId - public org.squashtest.tm.domain.campaign.IterationTestPlanItem findTestPlanItem(long itemTestPlanId)
findTestPlanItem in interface IterationTestPlanFinderpublic List<org.squashtest.tm.domain.execution.ExecutionStatus> getExecutionStatusList()
getExecutionStatusList in interface IterationTestPlanManagerServicepublic void forceExecutionStatus(long iterationTestPlanItemId,
String statusName)
IterationTestPlanManagerServiceforceExecutionStatus in interface IterationTestPlanManagerServicepublic Collection<org.squashtest.tm.domain.campaign.IterationTestPlanItem> createTestPlanFragment(org.squashtest.tm.domain.testcase.TestCase testCase, org.squashtest.tm.domain.users.User assignee)
IterationTestPlanManagerServiceCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.