use of org.olat.course.assessment.model.AssessmentNodeData in project openolat by klemens.
the class AssessmentHelper method getAssessmentNodeDataList.
/**
* Add all assessable nodes and the scoring data to a list. Each item in the list is an object array
* that has the following data:
* @param recursionLevel
* @param courseNode
* @param userCourseEnv
* @param discardEmptyNodes
* @param discardComments
* @return list of object arrays or null if empty
*/
public static List<AssessmentNodeData> getAssessmentNodeDataList(UserCourseEnvironment userCourseEnv, AssessmentNodesLastModified lastModifications, boolean followUserVisibility, boolean discardEmptyNodes, boolean discardComments) {
List<AssessmentNodeData> data = new ArrayList<AssessmentNodeData>(50);
ScoreAccounting scoreAccounting = userCourseEnv.getScoreAccounting();
scoreAccounting.evaluateAll();
getAssessmentNodeDataList(0, userCourseEnv.getCourseEnvironment().getRunStructure().getRootNode(), scoreAccounting, userCourseEnv, followUserVisibility, discardEmptyNodes, discardComments, data, lastModifications);
return data;
}
use of org.olat.course.assessment.model.AssessmentNodeData in project openolat by klemens.
the class IdentityAssessmentOverviewController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
String cmd = se.getCommand();
AssessmentNodeData nodeData = tableModel.getObject(se.getIndex());
if (CMD_SELECT_NODE.equals(cmd)) {
CourseNode node = runStructure.getNode(nodeData.getIdent());
selectedCourseNode = (AssessableCourseNode) node;
fireEvent(ureq, EVENT_NODE_SELECTED);
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.course.assessment.model.AssessmentNodeData in project openolat by klemens.
the class CertificateAndEfficiencyStatementController method selectCourseInfos.
private void selectCourseInfos(UserRequest ureq) {
if (courseDetailsCtrl == null) {
List<Map<String, Object>> assessmentNodes = efficiencyStatement.getAssessmentNodes();
List<AssessmentNodeData> assessmentNodeList = AssessmentHelper.assessmentNodeDataMapToList(assessmentNodes);
courseDetailsCtrl = new IdentityAssessmentOverviewController(ureq, getWindowControl(), assessmentNodeList);
listenTo(courseDetailsCtrl);
}
mainVC.put("segmentCmp", courseDetailsCtrl.getInitialComponent());
}
use of org.olat.course.assessment.model.AssessmentNodeData in project openolat by klemens.
the class SelectTestOrSurveyController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (tableEl == source) {
if (event instanceof SelectionEvent) {
SelectionEvent se = (SelectionEvent) event;
AssessmentNodeData data = tableModel.getObject(se.getIndex());
archiver.setData(data);
if (validateFormLogic(ureq)) {
fireEvent(ureq, new SelectTestOrSurveyEvent(archiver, data));
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.course.assessment.model.AssessmentNodeData in project OpenOLAT by OpenOLAT.
the class CertificateAndEfficiencyStatementController method selectCourseInfos.
private void selectCourseInfos(UserRequest ureq) {
if (courseDetailsCtrl == null) {
List<Map<String, Object>> assessmentNodes = efficiencyStatement.getAssessmentNodes();
List<AssessmentNodeData> assessmentNodeList = AssessmentHelper.assessmentNodeDataMapToList(assessmentNodes);
courseDetailsCtrl = new IdentityAssessmentOverviewController(ureq, getWindowControl(), assessmentNodeList);
listenTo(courseDetailsCtrl);
}
mainVC.put("segmentCmp", courseDetailsCtrl.getInitialComponent());
}
Aggregations