|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.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<IterationTestPlanItem> |
addTestPlanItemsToIteration(List<Long> testNodesIds,
Iteration iteration)
Adds a list of test cases to an iteration. |
void |
addTestPlanToIteration(List<IterationTestPlanItem> testPlan,
long iterationId)
persist each iteration_test_plan_item and add it to iteration |
void |
assignExecutionStatusToTestPlanItem(Long testPlanId,
long iterationId,
String statusName)
Assigns an execution status to a test plan item Overrides the current execution status |
void |
assignUserToTestPlanItem(Long testPlanId,
long iterationId,
Long userId)
Assign User with Execute Access to a TestPlan item. |
void |
assignUserToTestPlanItems(List<Long> testPlanIds,
long iterationId,
Long userId)
Assign User with Execute Access to a multiple TestPlan items. |
List<User> |
findAssignableUserForTestPlan(long iterationId)
Get Users with Execute Access for an Iteration and its TestPlan. |
List<TestCaseLibrary> |
findLinkableTestCaseLibraries()
Returns a collection of TestCaseLibrary, the test cases of which may be added to the campaign |
List<TestCase> |
findPlannedTestCases(Long iterationId)
|
FilteredCollectionHolder<List<IterationTestPlanItem>> |
findTestPlan(long iterationId,
CollectionSorting filter)
|
IterationTestPlanItem |
findTestPlanItem(Long iterationId,
Long itemTestPlanId)
|
IterationTestPlanItem |
findTestPlanItemByTestCaseId(long iterationId,
long testCaseId)
Deprecated. method used only in Integration tests should be removed |
List<ExecutionStatus> |
getExecutionStatusList()
|
boolean |
removeTestPlanFromIteration(Long testPlanId,
long iterationId)
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> testPlanIds,
Iteration iteration)
Removes a list of test cases from an iteration excepted the test plans which were executed |
void |
setObjectAclService(org.squashtest.csp.core.security.acls.model.ObjectAclService aclService)
|
void |
setObjectIdentityRetrievalStrategy(org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
|
void |
updateTestCaseLastExecutedByAndOn(IterationTestPlanItem givenTestPlan,
Date lastExecutedOn,
String lastExecutedBy)
Update item test plan lastExecuted data (by and on) (for the moment they're constants) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IterationTestPlanManagerServiceImpl()
| Method Detail |
|---|
@ServiceReference public void setObjectAclService(org.squashtest.csp.core.security.acls.model.ObjectAclService aclService)
@ServiceReference public void setObjectIdentityRetrievalStrategy(org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<TestCaseLibrary> findLinkableTestCaseLibraries()
IterationTestPlanFinderTestCaseLibrary, the test cases of which may be added to the campaign
findLinkableTestCaseLibraries in interface IterationTestPlanFinder
@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.csp.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<IterationTestPlanItem> addTestPlanItemsToIteration(List<Long> testNodesIds,
Iteration iteration)
IterationTestPlanManagerService
addTestPlanItemsToIteration in interface IterationTestPlanManagerService
@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.csp.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public void addTestPlanToIteration(List<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.csp.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> testPlanIds,
Iteration iteration)
IterationTestPlanManagerService
removeTestPlansFromIterationObj in interface IterationTestPlanManagerServicetestPlanIds - the ids of the test plan managing that test case for that iterationiteration - the iteration
@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.csp.tm.domain.campaign.Iteration\', \'LINK\') or hasRole(\'ROLE_ADMIN\')")
public boolean removeTestPlanFromIteration(Long testPlanId,
long iterationId)
IterationTestPlanManagerService
removeTestPlanFromIteration in interface IterationTestPlanManagerServicetestPlanId - the id of the test plan managing that test case for that iteration
@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.csp.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<TestCase> findPlannedTestCases(Long iterationId)
findPlannedTestCases in interface IterationTestPlanFinder
public void updateTestCaseLastExecutedByAndOn(IterationTestPlanItem givenTestPlan,
Date lastExecutedOn,
String lastExecutedBy)
IterationTestPlanManagerService
updateTestCaseLastExecutedByAndOn in interface IterationTestPlanManagerServicegivenTestPlan - : the test plan to update
@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.csp.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public FilteredCollectionHolder<List<IterationTestPlanItem>> findTestPlan(long iterationId,
CollectionSorting filter)
findTestPlan in interface IterationTestPlanFinderpublic List<User> findAssignableUserForTestPlan(long iterationId)
IterationTestPlanFinder
findAssignableUserForTestPlan in interface IterationTestPlanFinder
public void assignUserToTestPlanItem(Long testPlanId,
long iterationId,
Long userId)
IterationTestPlanManagerService
assignUserToTestPlanItem in interface IterationTestPlanManagerService
public void assignUserToTestPlanItems(List<Long> testPlanIds,
long iterationId,
Long userId)
IterationTestPlanManagerService
assignUserToTestPlanItems in interface IterationTestPlanManagerService
@Deprecated
public IterationTestPlanItem findTestPlanItemByTestCaseId(long iterationId,
long testCaseId)
findTestPlanItemByTestCaseId in interface IterationTestPlanFinderiterationId - testCaseId -
public IterationTestPlanItem findTestPlanItem(Long iterationId,
Long itemTestPlanId)
findTestPlanItem in interface IterationTestPlanFinderpublic List<ExecutionStatus> getExecutionStatusList()
getExecutionStatusList in interface IterationTestPlanManagerService
public void assignExecutionStatusToTestPlanItem(Long testPlanId,
long iterationId,
String statusName)
IterationTestPlanManagerService
assignExecutionStatusToTestPlanItem in interface IterationTestPlanManagerService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||