Search in sources :

Example 11 with LectureBlockIdentityStatistics

use of org.olat.modules.lecture.model.LectureBlockIdentityStatistics in project openolat by klemens.

the class LecturesStatisticsExport method addContentAggregated.

private void addContentAggregated(OpenXMLWorksheet exportSheet, OpenXMLWorkbook workbook) {
    List<LectureBlockIdentityStatistics> aggregatedStatistics = lectureService.groupByIdentity(statistics);
    for (LectureBlockIdentityStatistics statistic : aggregatedStatistics) {
        Row row = exportSheet.newRow();
        int pos = 0;
        pos = addContentUser(statistic, row, pos);
        addContentStatistics(statistic, row, pos, workbook);
    }
}
Also used : LectureBlockIdentityStatistics(org.olat.modules.lecture.model.LectureBlockIdentityStatistics) Row(org.olat.core.util.openxml.OpenXMLWorksheet.Row)

Example 12 with LectureBlockIdentityStatistics

use of org.olat.modules.lecture.model.LectureBlockIdentityStatistics in project openolat by klemens.

the class LecturesStatisticsExport method addContentDetailled.

private void addContentDetailled(OpenXMLWorksheet exportSheet, OpenXMLWorkbook workbook) {
    for (LectureBlockIdentityStatistics statistic : statistics) {
        Row row = exportSheet.newRow();
        int pos = 0;
        pos = addContentUser(statistic, row, pos);
        row.addCell(pos++, statistic.getExternalRef());
        row.addCell(pos++, statistic.getDisplayName());
        addContentStatistics(statistic, row, pos, workbook);
    }
}
Also used : LectureBlockIdentityStatistics(org.olat.modules.lecture.model.LectureBlockIdentityStatistics) Row(org.olat.core.util.openxml.OpenXMLWorksheet.Row)

Aggregations

LectureBlockIdentityStatistics (org.olat.modules.lecture.model.LectureBlockIdentityStatistics)12 ArrayList (java.util.ArrayList)4 HashMap (java.util.HashMap)4 Row (org.olat.core.util.openxml.OpenXMLWorksheet.Row)4 UserPropertyHandler (org.olat.user.propertyhandlers.UserPropertyHandler)4 Date (java.util.Date)2 Map (java.util.Map)2 SelectionEvent (org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent)2 Controller (org.olat.core.gui.control.Controller)2 BasicController (org.olat.core.gui.control.controller.BasicController)2 LectureStatisticsSearchParameters (org.olat.modules.lecture.model.LectureStatisticsSearchParameters)2 LectureRepositoryAdminController (org.olat.modules.lecture.ui.LectureRepositoryAdminController)2