Package scap.check.assessment

Examples of scap.check.assessment.AssessmentResultItem


      handleCheckResultInstance(data, checkResultInstance);
    }
  }

  private boolean hasAssessmentResultItem(CheckResultInstance checkResultInstance) {
    AssessmentResultItem item = checkResultInstance.getAssessmentResultItem();
    // If the result was not evaluated, the item will be null
    return (item != null);
  }
View Full Code Here


    try {
      getOutputBuilder().handleCheckResult(data, checkResultInstance);
    } catch (IOException e) {
      String system = checkResultInstance.getCheck().getSystem();

      AssessmentResultItem item = checkResultInstance.getAssessmentResultItem();
      String name = item.getId();
      log.error("Unable to resolve check content href for check: "+system+": "+name);
      throw new ResultBuilderException(e);
    }
  }
View Full Code Here

    result.setInstances(instances);
    return result;
  }

  private EvaluatedCheckResult handleSingle(AssessmentResult assessmentResult, ResolvedCheck check) {
    AssessmentResultItem item = assessmentResult.getAssessmentResultItem(check.getCheckContent().getName());
    if (item == null) {
      throw new NullPointerException("Unable to find assessment result for check: "+check.getCheckContent().getName());
    }

    EvaluatedCheckResult result = new EvaluatedCheckResult(check, CheckResult.Result.CHECKED, assessmentResult);
View Full Code Here

  }

  public void handleCheckResult(CheckType data, CheckResultInstance instance) throws IOException {
    data.setSystem(instance.getCheck().getSystem());

    AssessmentResultItem item = instance.getAssessmentResultItem();
   
    CheckContentRefType checkContentRef = data.addNewCheckContentRef();
    checkContentRef.setName(item.getId());

    ResultContext resultContext = item.getAssessmentResult().getResultContext();
    checkContentRef.setHref(resultContext.resolveRelative(getXccdfResultContext()));
  }
View Full Code Here

  }

  public void handleCheckResult(CheckType data, CheckResultInstance instance) throws IOException {
    data.setSystem(instance.getCheck().getSystem());

    AssessmentResultItem item = instance.getAssessmentResultItem();
   
    CheckContentRefType checkContentRef = data.addNewCheckContentRef();
    checkContentRef.setName(item.getId());

    ResultContext resultContext = item.getAssessmentResult().getResultContext();
    checkContentRef.setHref(resultContext.resolveRelative(getXccdfResultContext()));
  }
View Full Code Here

TOP

Related Classes of scap.check.assessment.AssessmentResultItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.