|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.CustomTestCaseModificationServiceImpl
@Service(value="CustomTestCaseModificationService") public class CustomTestCaseModificationServiceImpl
| Constructor Summary | |
|---|---|
CustomTestCaseModificationServiceImpl()
|
|
| Method Summary | |
|---|---|
TestStep |
addActionTestStep(long parentTestCaseId,
ActionTestStep newTestStep)
|
void |
changeTestStepPosition(long testCaseId,
long testStepId,
int newStepPosition)
Deprecated. |
void |
changeTestStepsPosition(long testCaseId,
int newPosition,
List<Long> stepIds)
Will move a list of steps to a new position. |
org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<RequirementVersion>> |
findAllDirectlyVerifiedRequirementsByTestCaseId(long testCaseId,
org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
Returns the filtered list of RequirementVersions directly verified by a test case. |
org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<VerifiedRequirement>> |
findAllVerifiedRequirementsByTestCaseId(long testCaseId,
org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
|
TestCase |
findById(long testCaseId)
|
FilteredCollectionHolder<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<TestStep> |
findStepsByTestCaseId(long testCaseId)
|
FilteredCollectionHolder<List<TestStep>> |
findStepsByTestCaseIdFiltered(long testCaseId,
CollectionFilter filter)
|
TestCase |
findTestCaseWithSteps(long testCaseId)
|
void |
pasteCopiedTestStep(Long testCaseId,
Long idToCopyAfter,
Long copiedTestStepId)
will insert a test step into a test case script, possibly after a step (the position), given their Ids. |
void |
removeListOfSteps(long testCaseId,
List<Long> testStepIds)
|
void |
removeStepFromTestCase(long testCaseId,
long testStepId)
|
void |
rename(long testCaseId,
String newName)
|
void |
updateTestStepAction(long testStepId,
String newAction)
|
void |
updateTestStepExpectedResult(long testStepId,
String newExpectedResult)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomTestCaseModificationServiceImpl()
| Method Detail |
|---|
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long testCaseId,
String newName)
throws DuplicateNameException
rename in interface CustomTestCaseModificationServiceDuplicateNameException@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public TestCase findById(long testCaseId)
findById in interface CustomTestCaseModificationService@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<TestStep> findStepsByTestCaseId(long testCaseId)
findStepsByTestCaseId in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#parentTestCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public TestStep addActionTestStep(long parentTestCaseId,
ActionTestStep newTestStep)
addActionTestStep in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testStepId, \'org.squashtest.csp.tm.domain.testcase.TestStep\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void updateTestStepAction(long testStepId,
String newAction)
updateTestStepAction in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testStepId, \'org.squashtest.csp.tm.domain.testcase.TestStep\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void updateTestStepExpectedResult(long testStepId,
String newExpectedResult)
updateTestStepExpectedResult in interface CustomTestCaseModificationService
@Deprecated
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void changeTestStepPosition(long testCaseId,
long testStepId,
int newStepPosition)
changeTestStepPosition in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void changeTestStepsPosition(long testCaseId,
int newPosition,
List<Long> stepIds)
CustomTestCaseModificationService
changeTestStepsPosition in interface CustomTestCaseModificationServicetestCaseId - the id of the test casenewPosition - the position we want the first element of movedSteps to be once the operation is complete
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void removeStepFromTestCase(long testCaseId,
long testStepId)
removeStepFromTestCase in interface CustomTestCaseModificationService@PostAuthorize(value="hasPermission(returnObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public TestCase findTestCaseWithSteps(long testCaseId)
findTestCaseWithSteps in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<RequirementVersion>> findAllDirectlyVerifiedRequirementsByTestCaseId(long testCaseId,
org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
CustomTestCaseModificationServiceRequirementVersions directly verified by a test case.
findAllDirectlyVerifiedRequirementsByTestCaseId in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void removeListOfSteps(long testCaseId,
List<Long> testStepIds)
removeListOfSteps in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public FilteredCollectionHolder<List<TestStep>> findStepsByTestCaseIdFiltered(long testCaseId,
CollectionFilter filter)
findStepsByTestCaseIdFiltered in interface CustomTestCaseModificationService
@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void pasteCopiedTestStep(Long testCaseId,
Long idToCopyAfter,
Long copiedTestStepId)
CustomTestCaseModificationService
pasteCopiedTestStep in interface CustomTestCaseModificationServicetestCaseId - the id of the test case.idToCopyAfter - the id of the step after which we'll insert the copy of a step, may be null.copiedTestStepId - the id of the testStep to copy.
public org.squashtest.csp.core.infrastructure.collection.PagedCollectionHolder<List<VerifiedRequirement>> findAllVerifiedRequirementsByTestCaseId(long testCaseId,
org.squashtest.csp.core.infrastructure.collection.PagingAndSorting pas)
findAllVerifiedRequirementsByTestCaseId in interface CustomTestCaseModificationService
public FilteredCollectionHolder<List<TestCase>> findCallingTestCases(long testCaseId,
CollectionSorting sorting)
CustomTestCaseModificationService
findCallingTestCases in interface CustomTestCaseModificationServicetestCaseId - the Id of the called test case.sorting - the sorting parameters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||