use of org.asqatasun.webapp.presentation.data.CriterionResultImpl in project Asqatasun by Asqatasun.
the class CriterionResultFactory method getCriterionResult.
/**
*
* @param criterionStatistics
* @return
*/
public CriterionResult getCriterionResult(CriterionStatistics criterionStatistics) {
CriterionResult criterionResult = new CriterionResultImpl();
criterionResult.setCriterion(criterionStatistics.getCriterion());
criterionResult.setCriterionCode(criterionStatistics.getCriterion().getCode());
criterionResult.setLevelCode(criterionDataService.getCriterionLevel(criterionStatistics.getCriterion()).getCode());
criterionResult.setResult(criterionStatistics.getCriterionResult().toString());
criterionResult.setResultCode(setResultToLowerCase(criterionStatistics.getCriterionResult()));
return criterionResult;
}
Aggregations