Search in sources :

Example 6 with OpenMeetingsException

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());
    }
}
Also used : OpenMeetingsRoom(org.olat.modules.openmeetings.model.OpenMeetingsRoom) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) OpenMeetingsException(org.olat.modules.openmeetings.manager.OpenMeetingsException)

Example 7 with OpenMeetingsException

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);
    }
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) OpenMeetingsException(org.olat.modules.openmeetings.manager.OpenMeetingsException) OpenMeetingsManager(org.olat.modules.openmeetings.manager.OpenMeetingsManager)

Example 8 with OpenMeetingsException

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);
        }
    }
}
Also used : RedirectMediaResource(org.olat.core.gui.media.RedirectMediaResource) OpenMeetingsException(org.olat.modules.openmeetings.manager.OpenMeetingsException) MediaResource(org.olat.core.gui.media.MediaResource) RedirectMediaResource(org.olat.core.gui.media.RedirectMediaResource)

Example 9 with OpenMeetingsException

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());
    }
}
Also used : OpenMeetingsRecording(org.olat.modules.openmeetings.model.OpenMeetingsRecording) ArrayList(java.util.ArrayList) OpenMeetingsException(org.olat.modules.openmeetings.manager.OpenMeetingsException)

Example 10 with OpenMeetingsException

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());
        }
    }
}
Also used : RedirectMediaResource(org.olat.core.gui.media.RedirectMediaResource) OpenMeetingsException(org.olat.modules.openmeetings.manager.OpenMeetingsException)

Aggregations

OpenMeetingsException (org.olat.modules.openmeetings.manager.OpenMeetingsException)14 RedirectMediaResource (org.olat.core.gui.media.RedirectMediaResource)4 OpenMeetingsManager (org.olat.modules.openmeetings.manager.OpenMeetingsManager)4 File (java.io.File)2 ArrayList (java.util.ArrayList)2 CalendarManager (org.olat.commons.calendar.CalendarManager)2 ImportToCalendarManager (org.olat.commons.calendar.manager.ImportToCalendarManager)2 OlatRootFolderImpl (org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl)2 DisplayOrDownloadComponent (org.olat.core.gui.components.download.DisplayOrDownloadComponent)2 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 MediaResource (org.olat.core.gui.media.MediaResource)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 AssertException (org.olat.core.logging.AssertException)2 VFSContainer (org.olat.core.util.vfs.VFSContainer)2 ForumManager (org.olat.modules.fo.manager.ForumManager)2 OpenMeetingsModule (org.olat.modules.openmeetings.OpenMeetingsModule)2 OpenMeetingsRecording (org.olat.modules.openmeetings.model.OpenMeetingsRecording)2 OpenMeetingsRoom (org.olat.modules.openmeetings.model.OpenMeetingsRoom)2 NarrowedPropertyManager (org.olat.properties.NarrowedPropertyManager)2 Property (org.olat.properties.Property)2