@Service(value="squashtest.tm.service.ParameterModificationService") public class ParameterModificationServiceImpl extends Object implements ParameterModificationService
| Constructor and Description |
|---|
ParameterModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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> |
findAllParameters(long testCaseId)
Returns a list of parameters that either belongs to this test case, either belongs to
test cases being called by a call step that uses the parameter delegation mode.
|
org.squashtest.tm.domain.testcase.Parameter |
findById(long parameterId)
Simply find the parameter matching the given id
|
List<org.squashtest.tm.domain.testcase.Parameter> |
findOwnParameters(long testCaseId)
Returns the parameters that belongs to this test case only.
|
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) |
public List<org.squashtest.tm.domain.testcase.Parameter> findOwnParameters(long testCaseId)
findOwnParameters in interface ParameterFinderpublic List<org.squashtest.tm.domain.testcase.Parameter> findAllParameters(long testCaseId)
findAllParameters in interface ParameterFinderpublic 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)
ParameterModificationServicecreateParamsForStep in interface ParameterModificationServicestepId - : the id of the concerned stepParameterModificationService.createParamsForStep(long)public void createParamsForStep(org.squashtest.tm.domain.testcase.TestStep step)
ParameterModificationServicecreateParamsForStep in interface ParameterModificationServicestep - : the concerned stepParameterModificationService.createParamsForStep(TestStep)public boolean isUsed(long parameterId)
ParameterFinderisUsed in interface ParameterFinderparameterId - : the id of the concerned parametertrue 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)
ParameterFinderfindById in interface ParameterFinderparameterId - : the id of the Parameter to findParameter matching the id or nullParameterFinder.findById(long)public void createParamsForTestCaseSteps(org.squashtest.tm.domain.testcase.TestCase testCase)
ParameterModificationServicecreateParamsForTestCaseSteps in interface ParameterModificationServicetestCase - : the concerned test caseParameterModificationService.createParamsForTestCaseSteps(TestCase)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.