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;
}
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;
}
Aggregations