use of org.olat.ims.qti.QTI12ResultDetailsController in project OpenOLAT by OpenOLAT.
the class IQTESTCourseNode method getDetailsEditController.
/**
* @see org.olat.course.nodes.AssessableCourseNode#getDetailsEditController(org.olat.core.gui.UserRequest,
* org.olat.core.gui.control.WindowControl,
* org.olat.course.run.userview.UserCourseEnvironment)
*/
@Override
public Controller getDetailsEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, UserCourseEnvironment coachCourseEnv, UserCourseEnvironment assessedUserCourseEnv) {
Controller detailsCtrl = null;
RepositoryEntry ref = getReferencedRepositoryEntry();
if (ref != null) {
OLATResource resource = ref.getOlatResource();
Long courseResourceableId = assessedUserCourseEnv.getCourseEnvironment().getCourseResourceableId();
Identity assessedIdentity = assessedUserCourseEnv.getIdentityEnvironment().getIdentity();
if (ImsQTI21Resource.TYPE_NAME.equals(resource.getResourceableTypeName())) {
RepositoryEntry courseEntry = assessedUserCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry();
detailsCtrl = new QTI21AssessmentDetailsController(ureq, wControl, (TooledStackedPanel) stackPanel, courseEntry, this, coachCourseEnv, assessedUserCourseEnv);
} else if (OnyxModule.isOnyxTest(ref.getOlatResource())) {
Translator trans = Util.createPackageTranslator(IQEditController.class, ureq.getLocale());
detailsCtrl = MessageUIFactory.createInfoMessage(ureq, wControl, "", trans.translate("error.onyx"));
} else {
detailsCtrl = new QTI12ResultDetailsController(ureq, wControl, courseResourceableId, getIdent(), coachCourseEnv, assessedIdentity, ref, AssessmentInstance.QMD_ENTRY_TYPE_ASSESS);
}
}
return detailsCtrl;
}
use of org.olat.ims.qti.QTI12ResultDetailsController in project openolat by klemens.
the class IQTESTCourseNode method getDetailsEditController.
/**
* @see org.olat.course.nodes.AssessableCourseNode#getDetailsEditController(org.olat.core.gui.UserRequest,
* org.olat.core.gui.control.WindowControl,
* org.olat.course.run.userview.UserCourseEnvironment)
*/
@Override
public Controller getDetailsEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, UserCourseEnvironment coachCourseEnv, UserCourseEnvironment assessedUserCourseEnv) {
Controller detailsCtrl = null;
RepositoryEntry ref = getReferencedRepositoryEntry();
if (ref != null) {
OLATResource resource = ref.getOlatResource();
Long courseResourceableId = assessedUserCourseEnv.getCourseEnvironment().getCourseResourceableId();
Identity assessedIdentity = assessedUserCourseEnv.getIdentityEnvironment().getIdentity();
if (ImsQTI21Resource.TYPE_NAME.equals(resource.getResourceableTypeName())) {
RepositoryEntry courseEntry = assessedUserCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry();
detailsCtrl = new QTI21AssessmentDetailsController(ureq, wControl, (TooledStackedPanel) stackPanel, courseEntry, this, coachCourseEnv, assessedUserCourseEnv);
} else if (OnyxModule.isOnyxTest(ref.getOlatResource())) {
Translator trans = Util.createPackageTranslator(IQEditController.class, ureq.getLocale());
detailsCtrl = MessageUIFactory.createInfoMessage(ureq, wControl, "", trans.translate("error.onyx"));
} else {
detailsCtrl = new QTI12ResultDetailsController(ureq, wControl, courseResourceableId, getIdent(), coachCourseEnv, assessedIdentity, ref, AssessmentInstance.QMD_ENTRY_TYPE_ASSESS);
}
}
return detailsCtrl;
}
Aggregations