|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.CallStepManagerServiceImpl
@Service(value="squashtest.tm.service.CallStepManagerService") @Transactional public class CallStepManagerServiceImpl
| Constructor Summary | |
|---|---|
CallStepManagerServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addCallTestStep(long parentTestCaseId,
long calledTestCaseId)
will add a call test step. |
void |
checkForCyclicStepCallBeforeExecutionCreation(Long rootTestCaseId)
Used to check if the testPlan call tree is not cyclic before creating it's execution This method is used to prevent infinite cycle in case of bugged data. |
void |
checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
String[] pastedStepId)
Used to check if the destination test case id is found in the calling tree of the pasted steps if so : a CyclicStepCallException is thrown. |
List<TestCase> |
findCallingTestCases(long testCaseId,
CollectionSorting sorting)
That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId. |
List<TestCaseLibrary> |
findLinkableTestCaseLibraries()
Returns the collection of TestCaseLibrarys which TestCases can be linked by a TestCase via
a CallTestStep |
TestCase |
findTestCase(long testCaseId)
|
Set<Long> |
getTestCaseCallTree(Long rootTcId)
given the Id of a test case, will compute the subsequent test case call tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CallStepManagerServiceImpl()
| Method Detail |
|---|
@PreAuthorize(value="(hasPermission(#parentTestCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') and hasPermission(#calledTestCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\')) or hasRole(\'ROLE_ADMIN\')")
public void addCallTestStep(long parentTestCaseId,
long calledTestCaseId)
CallStepManagerService
addCallTestStep in interface CallStepManagerServiceparentTestCaseId - that calls a stepcalledTestCaseId - being called@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')\t") public TestCase findTestCase(long testCaseId)
findTestCase in interface CallStepManagerService@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<TestCaseLibrary> findLinkableTestCaseLibraries()
CallStepManagerServiceTestCaseLibrarys which TestCases can be linked by a TestCase via
a CallTestStep
findLinkableTestCaseLibraries in interface CallStepManagerService@PreAuthorize(value="hasPermission(#rootTcId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')\t") public Set<Long> getTestCaseCallTree(Long rootTcId)
CallStepManagerService
getTestCaseCallTree in interface CallStepManagerService
public List<TestCase> findCallingTestCases(long testCaseId,
CollectionSorting sorting)
CallStepManagerService
findCallingTestCases in interface CallStepManagerServicetestCaseId - the Id of the called test case.sorting - the sorting parameters.
@PreAuthorize(value="hasPermission(#destinationTestCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
String[] pastedStepId)
CallStepManagerService
checkForCyclicStepCallBeforePaste in interface CallStepManagerServicepublic void checkForCyclicStepCallBeforeExecutionCreation(Long rootTestCaseId)
CallStepManagerService
checkForCyclicStepCallBeforeExecutionCreation in interface CallStepManagerService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||