|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.testcase.ParameterModificationServiceImpl
@Service(value="squashtest.tm.service.ParameterModificationService") public class ParameterModificationServiceImpl
| Constructor Summary | |
|---|---|
ParameterModificationServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addNewParameterToTestCase(org.squashtest.tm.domain.testcase.Parameter parameter,
long testCaseId)
|
void |
changeDescription(long parameterId,
String newDescription)
|
void |
changeName(long parameterId,
String newName)
|
void |
createParamsForStep(long stepId)
Will create all parameters used in the step if they don't already exist. |
void |
createParamsForStep(org.squashtest.tm.domain.testcase.TestStep step)
Will create all parameters used in the step if they don't already exist. |
void |
createParamsForTestCaseSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
Will go through the test case's steps and create the missing parameter. |
List<org.squashtest.tm.domain.testcase.Parameter> |
findAllforTestCase(long testCaseId)
Will find all parameters for the test case along with all parameters found for the call steps. |
org.squashtest.tm.domain.testcase.Parameter |
findById(long parameterId)
Simply find the parameter matching the given id |
static List<String> |
findUsedParamsNamesTestCaseSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
|
boolean |
isUsed(long parameterId)
Returns true if the parameter is used in one of it's test case action steps |
void |
remove(org.squashtest.tm.domain.testcase.Parameter parameter)
|
void |
removeAllByTestCaseIds(List<Long> testCaseIds)
|
void |
removeById(long parameterId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterModificationServiceImpl()
| Method Detail |
|---|
public List<org.squashtest.tm.domain.testcase.Parameter> findAllforTestCase(long testCaseId)
ParameterFinder
findAllforTestCase in interface ParameterFinder
public void addNewParameterToTestCase(org.squashtest.tm.domain.testcase.Parameter parameter,
long testCaseId)
addNewParameterToTestCase in interface ParameterModificationServiceParameterModificationService.addNewParameterToTestCase(Parameter, long)
public void changeName(long parameterId,
String newName)
changeName in interface ParameterModificationServiceParameterModificationService.addNewParameterToTestCase(Parameter, long)
public void changeDescription(long parameterId,
String newDescription)
changeDescription in interface ParameterModificationServiceParameterModificationService.changeDescription(long, String)public void remove(org.squashtest.tm.domain.testcase.Parameter parameter)
remove in interface ParameterModificationServiceParameterModificationService.remove(Parameter)public void removeAllByTestCaseIds(List<Long> testCaseIds)
removeAllByTestCaseIds in interface ParameterModificationServiceParameterModificationService.removeAllByTestCaseIds(List)public void removeById(long parameterId)
removeById in interface ParameterModificationServiceParameterModificationService.removeById(long)public void createParamsForStep(long stepId)
ParameterModificationService
createParamsForStep in interface ParameterModificationServicestepId - : the id of the concerned stepParameterModificationService.createParamsForStep(long)public void createParamsForStep(org.squashtest.tm.domain.testcase.TestStep step)
ParameterModificationService
createParamsForStep in interface ParameterModificationServicestep - : the concerned stepParameterModificationService.createParamsForStep(TestStep)public boolean isUsed(long parameterId)
ParameterFinder
isUsed in interface ParameterFinderparameterId - : the id of the concerned parameter
true if the parameter is used in one of it's test case action step.ParameterFinder.isUsed(long)public org.squashtest.tm.domain.testcase.Parameter findById(long parameterId)
ParameterFinder
findById in interface ParameterFinderparameterId - : the id of the Parameter to find
Parameter matching the id or nullParameterFinder.findById(long)public void createParamsForTestCaseSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
ParameterModificationService
createParamsForTestCaseSteps in interface ParameterModificationServicetestCase - : the concerned test caseParameterModificationService.createParamsForTestCaseSteps(TestCase)public static List<String> findUsedParamsNamesTestCaseSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||