final Date end = logFileChooserForm.getEndDate();
UserManager um = UserManager.getInstance();
final String charset = um.getUserCharset(ureq.getIdentity());
ICourse course = CourseFactory.loadCourse(ores);
final String courseTitle = course.getCourseTitle();
final String targetDir = CourseFactory.getOrCreateDataExportDirectory(ureq.getIdentity(), courseTitle).getPath();
final Long resId = ores.getResourceableId();
final Locale theLocale = ureq.getLocale();
final String email = ureq.getIdentity().getUser().getProperty(UserConstants.EMAIL, ureq.getLocale());
AsyncExportManager.getInstance().asyncArchiveCourseLogFiles(ureq.getIdentity(), new Runnable() {
@Override
public void run() {
showExportFinished();
}
},
resId, targetDir, begin, end, logAdminChecked, logUserChecked, logStatisticChecked, charset, theLocale, email);
showExportOngoing(courseTitle);
}
else if (event == Form.EVNT_FORM_CANCELLED) {
myPanel.setContent(myContent);
}
}
else if (source == showFileButton){
ICourse course = CourseFactory.loadCourse(ores);
String personalFolderDir = CourseFactory.getPersonalDirectory(ureq.getIdentity()).getPath();
String targetDir = CourseFactory.getOrCreateDataExportDirectory(ureq.getIdentity(), course.getCourseTitle()).getPath();
String relPath = "";
if (targetDir.startsWith(personalFolderDir)) {
// that should always be the case