Search in sources :

Example 1 with CriterionResultImpl

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;
}
Also used : CriterionResultImpl(org.asqatasun.webapp.presentation.data.CriterionResultImpl) CriterionResult(org.asqatasun.webapp.presentation.data.CriterionResult)

Aggregations

CriterionResult (org.asqatasun.webapp.presentation.data.CriterionResult)1 CriterionResultImpl (org.asqatasun.webapp.presentation.data.CriterionResultImpl)1