| Modifier and Type | Field and Description |
|---|---|
protected MilestoneImportHelper |
milestoneHelper |
| Constructor and Description |
|---|
FacilityImpl() |
| Modifier and Type | Method and Description |
|---|---|
LogTrain |
addActionStep(TestStepTarget target,
org.squashtest.tm.domain.testcase.ActionTestStep testStep,
Map<String,String> cufValues) |
LogTrain |
addCallStep(TestStepTarget target,
org.squashtest.tm.domain.testcase.CallTestStep testStep,
TestCaseTarget calledTestCase,
CallStepParamsInfo paramInfo,
org.squashtest.tm.domain.testcase.ActionTestStep actionStepBackup) |
protected List<Long> |
boundMilestonesIds(Milestoned instr)
Returnd the ids of the milestones to be bound as per test case instruction
|
LogTrain |
createCoverage(CoverageInstruction instr) |
LogTrain |
createDataset(DatasetTarget dataset)
The creation of a dataset is idempotent (if such dataset exists it wont be created twice)
|
LogTrain |
createParameter(ParameterTarget target,
org.squashtest.tm.domain.testcase.Parameter param) |
LogTrain |
createRequirementLink(RequirementLinkInstruction instr)
Will bind two requirement versions with a RequirementLink
|
LogTrain |
createRequirementVersion(RequirementVersionInstruction instr)
Will create a RequirementVersion.
|
LogTrain |
createTestCase(TestCaseInstruction instr)
Does exactly the same as the method above but with other arguments.
|
LogTrain |
deleteDataset(DatasetTarget dataset) |
LogTrain |
deleteParameter(ParameterTarget target) |
LogTrain |
deleteRequirementLink(RequirementLinkInstruction instr)
Will remove a link between two requirements
|
LogTrain |
deleteRequirementVersion(RequirementVersionInstruction instr)
Will delete a RequirementVersion when implemented some day, today it
is not and will log a Failure if invoked.
|
LogTrain |
deleteTestCase(TestCaseTarget target) |
LogTrain |
deleteTestStep(TestStepTarget target) |
protected void |
doUpdateCustomFields(Map<String,String> cufValues,
org.squashtest.tm.domain.customfield.BoundEntity bindableEntity) |
LogTrain |
failsafeUpdateParameterValue(DatasetTarget dataset,
ParameterTarget param,
String value,
boolean isUpdate)
Will update the value for the given parameter in the given dataset.
|
protected org.squashtest.tm.domain.customfield.InputType |
getInputTypeFor(String cufCode)
Returns the input type of a customfield given its code.
|
void |
initializeCustomFieldTransator(org.squashtest.tm.service.internal.batchimport.CustomFieldTransator customFieldTransator) |
void |
initializeFactories() |
void |
initializeValidator(ValidationFacility validator) |
void |
postprocess(List<Instruction<?>> instructions)
for all other stuffs that need to be done afterward
|
protected Map<Long,org.squashtest.tm.domain.customfield.RawValue> |
toAcceptableCufs(Map<String,String> origCufs)
because the service identifies cufs by their id, not their code
also populates the cache (cufIdByCode), and transform the input data in a single string or a collection of string depending on the type of the custom field (Tags on non-tags). |
LogTrain |
updateActionStep(TestStepTarget target,
org.squashtest.tm.domain.testcase.ActionTestStep testStep,
Map<String,String> cufValues) |
LogTrain |
updateCallStep(TestStepTarget target,
org.squashtest.tm.domain.testcase.CallTestStep testStep,
TestCaseTarget calledTestCase,
CallStepParamsInfo paramInfo,
org.squashtest.tm.domain.testcase.ActionTestStep actionStepBackup) |
LogTrain |
updateParameter(ParameterTarget target,
org.squashtest.tm.domain.testcase.Parameter param) |
LogTrain |
updateRequirementLink(RequirementLinkInstruction instr)
Will update the link between two requirements
|
LogTrain |
updateRequirementVersion(RequirementVersionInstruction instr)
Updates a RequiremenVersion with a new content.
|
LogTrain |
updateTestCase(TestCaseInstruction instr)
Does exactly the same as the method above but with other arguments.
|
@Inject protected MilestoneImportHelper milestoneHelper
public LogTrain createTestCase(TestCaseInstruction instr)
FacilitycreateTestCase in interface FacilityFacility.createTestCase(org.squashtest.tm.service.internal.batchimport.TestCaseInstruction)public LogTrain updateTestCase(TestCaseInstruction instr)
FacilityupdateTestCase in interface FacilityFacility.updateTestCase(org.squashtest.tm.service.internal.batchimport.TestCaseInstruction)public LogTrain deleteTestCase(TestCaseTarget target)
deleteTestCase in interface Facilitypublic LogTrain addActionStep(TestStepTarget target, org.squashtest.tm.domain.testcase.ActionTestStep testStep, Map<String,String> cufValues)
addActionStep in interface Facilitypublic LogTrain addCallStep(TestStepTarget target, org.squashtest.tm.domain.testcase.CallTestStep testStep, TestCaseTarget calledTestCase, CallStepParamsInfo paramInfo, org.squashtest.tm.domain.testcase.ActionTestStep actionStepBackup)
addCallStep in interface Facilitypublic LogTrain updateActionStep(TestStepTarget target, org.squashtest.tm.domain.testcase.ActionTestStep testStep, Map<String,String> cufValues)
updateActionStep in interface Facilitypublic LogTrain updateCallStep(TestStepTarget target, org.squashtest.tm.domain.testcase.CallTestStep testStep, TestCaseTarget calledTestCase, CallStepParamsInfo paramInfo, org.squashtest.tm.domain.testcase.ActionTestStep actionStepBackup)
updateCallStep in interface Facilitypublic LogTrain deleteTestStep(TestStepTarget target)
deleteTestStep in interface Facilitypublic LogTrain createParameter(ParameterTarget target, org.squashtest.tm.domain.testcase.Parameter param)
createParameter in interface Facilitypublic LogTrain updateParameter(ParameterTarget target, org.squashtest.tm.domain.testcase.Parameter param)
updateParameter in interface Facilitypublic LogTrain deleteParameter(ParameterTarget target)
deleteParameter in interface Facilitypublic LogTrain failsafeUpdateParameterValue(DatasetTarget dataset, ParameterTarget param, String value, boolean isUpdate)
FacilityfailsafeUpdateParameterValue in interface Facilitypublic LogTrain createDataset(DatasetTarget dataset)
FacilitycreateDataset in interface Facilitypublic LogTrain deleteDataset(DatasetTarget dataset)
deleteDataset in interface Facilitypublic LogTrain createRequirementVersion(RequirementVersionInstruction instr)
FacilitycreateRequirementVersion in interface Facilitypublic LogTrain updateRequirementVersion(RequirementVersionInstruction instr)
FacilityupdateRequirementVersion in interface Facilitypublic LogTrain deleteRequirementVersion(RequirementVersionInstruction instr)
FacilitydeleteRequirementVersion in interface Facilitypublic LogTrain createRequirementLink(RequirementLinkInstruction instr)
FacilitycreateRequirementLink in interface Facilitypublic LogTrain updateRequirementLink(RequirementLinkInstruction instr)
FacilityupdateRequirementLink in interface Facilitypublic LogTrain deleteRequirementLink(RequirementLinkInstruction instr)
FacilitydeleteRequirementLink in interface Facilitypublic void postprocess(List<Instruction<?>> instructions)
public LogTrain createCoverage(CoverageInstruction instr)
createCoverage in interface Facility@PostConstruct public void initializeFactories()
protected final List<Long> boundMilestonesIds(Milestoned instr)
instr - the instruction holding the names of candidate milestonesprotected final Map<Long,org.squashtest.tm.domain.customfield.RawValue> toAcceptableCufs(Map<String,String> origCufs)
protected final org.squashtest.tm.domain.customfield.InputType getInputTypeFor(String cufCode)
cufCode - protected final void doUpdateCustomFields(Map<String,String> cufValues, org.squashtest.tm.domain.customfield.BoundEntity bindableEntity)
public void initializeCustomFieldTransator(org.squashtest.tm.service.internal.batchimport.CustomFieldTransator customFieldTransator)
public void initializeValidator(ValidationFacility validator)
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.