use of org.olat.modules.openmeetings.manager.OpenMeetingsException in project OpenOLAT by OpenOLAT.
the class OpenMeetingsRunController method doOpenMembers.
private void doOpenMembers(UserRequest ureq) {
cleanupPopups();
try {
OpenMeetingsRoom reloadedRoom = openMeetingsManager.getRoom(group, ores, subIdentifier);
membersController = new OpenMeetingsAdminRoomMembersController(ureq, getWindowControl(), reloadedRoom, readOnly);
listenTo(membersController);
cmc = new CloseableModalController(getWindowControl(), translate("close"), membersController.getInitialComponent(), true, translate("room.members"));
listenTo(cmc);
cmc.activate();
} catch (OpenMeetingsException e) {
showError(e.i18nKey());
}
}
use of org.olat.modules.openmeetings.manager.OpenMeetingsException in project OpenOLAT by OpenOLAT.
the class OpenMeetingsCourseNode method cleanupOnDelete.
@Override
public void cleanupOnDelete(ICourse course) {
super.cleanupOnDelete(course);
// load configuration
OpenMeetingsManager provider = CoreSpringFactory.getImpl(OpenMeetingsManager.class);
// remove meeting
OLATResourceable ores = OresHelper.createOLATResourceableInstance(course.getResourceableTypeName(), course.getResourceableId());
try {
provider.deleteAll(null, ores, getIdent());
} catch (OpenMeetingsException e) {
log.error("A room could not be deleted for course node: " + getIdent() + " of course:" + course, e);
}
}
use of org.olat.modules.openmeetings.manager.OpenMeetingsException in project openolat by klemens.
the class OpenMeetingsRecordingController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == downloadLink) {
try {
String url = openMeetingsManager.getRecordingURL(recording);
MediaResource downloadUrl = new RedirectMediaResource(url);
ureq.getDispatchResult().setResultingMediaResource(downloadUrl);
} catch (OpenMeetingsException e) {
logError("", e);
}
}
}
use of org.olat.modules.openmeetings.manager.OpenMeetingsException in project openolat by klemens.
the class OpenMeetingsRecordingsController method loadModel.
private void loadModel() {
try {
List<OpenMeetingsRecording> recordings = openMeetingsManager.getRecordings(roomId);
List<OpenMeetingsRecording> readyRecordings = new ArrayList<OpenMeetingsRecording>(recordings.size());
for (OpenMeetingsRecording recording : recordings) {
if (StringHelper.containsNonWhitespace(recording.getDownloadName())) {
readyRecordings.add(recording);
}
}
((OpenMeetingsRecordingsDataModel) tableCtr.getTableDataModel()).setObjects(readyRecordings);
tableCtr.modelChanged();
} catch (OpenMeetingsException e) {
showError(e.i18nKey());
}
}
use of org.olat.modules.openmeetings.manager.OpenMeetingsException in project openolat by klemens.
the class OpenMeetingsRunController method doStart.
private void doStart(UserRequest ureq) {
if (room == null && room.getRoomId() <= 0) {
showError("room.notfound.error");
} else {
try {
String securedHash = openMeetingsManager.setUserToRoom(getIdentity(), room.getRoomId(), moderator);
String url = openMeetingsManager.getURL(getIdentity(), room.getRoomId(), securedHash, getLocale());
RedirectMediaResource redirect = new RedirectMediaResource(url);
ureq.getDispatchResult().setResultingMediaResource(redirect);
} catch (OpenMeetingsException e) {
showError(e.i18nKey());
}
}
}
Aggregations