@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.
|
void |
addTestCaseToIteration(Long testcaseId,
Long datasetId,
long iterationId)
Will add the given test case, with the given test plan, to the test plan of the given 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 |
changeDataset(long itemId,
Long datasetId)
Attach a dataset to an item.
|
void |
changeTestPlanPosition(long iterationId,
int newPosition,
List<Long> itemIds) |
void |
copyTestPlanItems(List<Long> iterationTestPlanIds,
long iterationId)
Will copy each items into the test plan of the given iteration.
|
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.campaign.IterationTestPlanItem> |
findByReferencedTestCase(org.squashtest.tm.domain.testcase.TestCase referencedTestCase) |
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) |
List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> |
findTestPlanItems(List<Long> ids) |
List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> |
forceExecutionStatus(List<Long> testPlanIds,
String statusName)
|
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 IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')") public void addTestCasesToIteration(List<Long> objectsIds, long iterationId)
IterationTestPlanManagerServiceId annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classesaddTestCasesToIteration in interface IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')") public void addTestCaseToIteration(Long testcaseId, Long datasetId, long iterationId)
IterationTestPlanManagerServiceId annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classesaddTestCaseToIteration 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 IterationTestPlanManagerServicepublic void copyTestPlanItems(List<Long> iterationTestPlanIds, long iterationId)
IterationTestPlanManagerServicecopyTestPlanItems 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 IterationTestPlanManagerService@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 IterationTestPlanFinder@PreAuthorize(value="hasPermission(#item, \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')or hasRole(\'ROLE_TA_API_CLIENT\')") public 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 List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findByReferencedTestCase(org.squashtest.tm.domain.testcase.TestCase referencedTestCase)
findByReferencedTestCase in interface IterationTestPlanFinder@PreAuthorize(value="hasPermission(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public 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)@PreAuthorize(value="hasPermission(#itemTestPlanId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'READ\') or hasRole(\'ROLE_ADMIN\')") 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 List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> forceExecutionStatus(List<Long> testPlanIds, String statusName)
forceExecutionStatus 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)
IterationTestPlanManagerService@PreAuthorize(value="hasPermission(#itemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void changeDataset(long itemId,
Long datasetId)
IterationTestPlanManagerServicechangeDataset in interface IterationTestPlanManagerServicedatasetId - (may be null)public List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> findTestPlanItems(List<Long> ids)
findTestPlanItems in interface IterationTestPlanFinderCopyright © 2010–2017 Henix, henix.fr. All rights reserved.