|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.testcase.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 |
checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
List<Long> pastedStepId)
same as CallStepManagerService.checkForCyclicStepCallBeforePaste(long, String[]) with a more comfortable signature |
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. |
void |
checkNoCyclicCall(org.squashtest.tm.domain.testcase.TestCase testCase)
Used to check if the testPlan call tree is not cyclic This method is used to prevent infinite cycle in case of bugged data. |
org.squashtest.tm.domain.testcase.TestCase |
findTestCase(long testCaseId)
|
| 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.tm.domain.testcase.TestCase\' , \'WRITE\') and hasPermission(#calledTestCaseId, \'org.squashtest.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.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')\t") public org.squashtest.tm.domain.testcase.TestCase findTestCase(long testCaseId)
findTestCase in interface CallStepManagerService
@PreAuthorize(value="hasPermission(#destinationTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
String[] pastedStepId)
CallStepManagerService
checkForCyclicStepCallBeforePaste in interface CallStepManagerService
@PreAuthorize(value="hasPermission(#destinationTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
List<Long> pastedStepId)
CallStepManagerServiceCallStepManagerService.checkForCyclicStepCallBeforePaste(long, String[]) with a more comfortable signature
checkForCyclicStepCallBeforePaste in interface CallStepManagerService
@Transactional(readOnly=true)
public void checkNoCyclicCall(org.squashtest.tm.domain.testcase.TestCase testCase)
throws org.squashtest.tm.exception.CyclicStepCallException
TestCaseCyclicCallChecker
checkNoCyclicCall in interface TestCaseCyclicCallCheckerorg.squashtest.tm.exception.CyclicStepCallException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||