Search in sources :

Example 1 with AssessmentResponseImpl

use of org.olat.ims.qti21.model.jpa.AssessmentResponseImpl in project openolat by klemens.

the class AssessmentResponseDAO method createAssessmentResponse.

public AssessmentResponse createAssessmentResponse(AssessmentTestSession assessmentTestSession, AssessmentItemSession assessmentItemSession, String responseIdentifier, ResponseLegality legality, ResponseDataType type) {
    AssessmentResponseImpl response = new AssessmentResponseImpl();
    Date now = new Date();
    response.setCreationDate(now);
    response.setLastModified(now);
    response.setResponseDataType(type.name());
    response.setResponseLegality(legality.name());
    response.setAssessmentItemSession(assessmentItemSession);
    response.setAssessmentTestSession(assessmentTestSession);
    response.setResponseIdentifier(responseIdentifier);
    return response;
}
Also used : AssessmentResponseImpl(org.olat.ims.qti21.model.jpa.AssessmentResponseImpl) Date(java.util.Date)

Example 2 with AssessmentResponseImpl

use of org.olat.ims.qti21.model.jpa.AssessmentResponseImpl in project OpenOLAT by OpenOLAT.

the class AssessmentResponseDAO method createAssessmentResponse.

public AssessmentResponse createAssessmentResponse(AssessmentTestSession assessmentTestSession, AssessmentItemSession assessmentItemSession, String responseIdentifier, ResponseLegality legality, ResponseDataType type) {
    AssessmentResponseImpl response = new AssessmentResponseImpl();
    Date now = new Date();
    response.setCreationDate(now);
    response.setLastModified(now);
    response.setResponseDataType(type.name());
    response.setResponseLegality(legality.name());
    response.setAssessmentItemSession(assessmentItemSession);
    response.setAssessmentTestSession(assessmentTestSession);
    response.setResponseIdentifier(responseIdentifier);
    return response;
}
Also used : AssessmentResponseImpl(org.olat.ims.qti21.model.jpa.AssessmentResponseImpl) Date(java.util.Date)

Aggregations

Date (java.util.Date)2 AssessmentResponseImpl (org.olat.ims.qti21.model.jpa.AssessmentResponseImpl)2