|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.campaign.IterationTestPlanManagerServiceImpl
@Service(value="squashtest.tm.service.IterationTestPlanManagerService") @Transactional public class IterationTestPlanManagerServiceImpl
| Constructor Summary | |
|---|---|
IterationTestPlanManagerServiceImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IterationTestPlanManagerServiceImpl()
| Method Detail |
|---|
@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 campaign
findLinkableTestCaseLibraries in interface IterationTestPlanFinder
public 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)
IterationTestPlanManagerService
findAssignedTestPlan 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)
IterationTestPlanManagerService
addTestCasesToIteration 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)
IterationTestPlanManagerService
addTestPlanItemsToIteration 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)
IterationTestPlanManagerService
removeTestPlansFromIteration 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)
IterationTestPlanManagerService
removeTestPlansFromIterationObj 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)
IterationTestPlanManagerService
removeTestPlanFromIteration 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)
IterationTestPlanManagerService
updateMetadata 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)
IterationTestPlanFinder
findAssignableUserForTestPlan in interface IterationTestPlanFinder
public void assignUserToTestPlanItem(long testPlanItemId,
long userId)
IterationTestPlanManagerService
assignUserToTestPlanItem in interface IterationTestPlanManagerServiceIterationTestPlanManagerService.assignUserToTestPlanItem(long, long)
public void assignUserToTestPlanItems(List<Long> testPlanIds,
long userId)
IterationTestPlanManagerService
assignUserToTestPlanItems 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 IterationTestPlanManagerService
public void forceExecutionStatus(long iterationTestPlanItemId,
String statusName)
IterationTestPlanManagerService
forceExecutionStatus in interface IterationTestPlanManagerService
public Collection<org.squashtest.tm.domain.campaign.IterationTestPlanItem> createTestPlanFragment(org.squashtest.tm.domain.testcase.TestCase testCase,
org.squashtest.tm.domain.users.User assignee)
IterationTestPlanManagerService
createTestPlanFragment in interface IterationTestPlanManagerServiceIterationTestPlanManagerService.createTestPlanFragment(org.squashtest.tm.domain.testcase.TestCase,
org.squashtest.tm.domain.users.User)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||