Search in sources :

Example 1 with ForumDownloadResource

use of org.olat.modules.fo.archiver.formatters.ForumDownloadResource in project OpenOLAT by OpenOLAT.

the class MessageListController method doArchiveThread.

private void doArchiveThread(UserRequest ureq, Message currMsg) {
    Message m = currMsg.getThreadtop();
    Long topMessageId = (m == null) ? currMsg.getKey() : m.getKey();
    VFSContainer forumContainer = forumManager.getForumContainer(forum.getKey());
    ForumDownloadResource download = new ForumDownloadResource("Forum", forum, foCallback, topMessageId, forumContainer, getLocale());
    ureq.getDispatchResult().setResultingMediaResource(download);
}
Also used : ForumDownloadResource(org.olat.modules.fo.archiver.formatters.ForumDownloadResource) ErrorEditMessage(org.olat.modules.fo.ui.events.ErrorEditMessage) Message(org.olat.modules.fo.Message) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Example 2 with ForumDownloadResource

use of org.olat.modules.fo.archiver.formatters.ForumDownloadResource in project OpenOLAT by OpenOLAT.

the class ThreadListController method doArchiveForum.

private void doArchiveForum(UserRequest ureq) {
    VFSContainer forumContainer = forumManager.getForumContainer(forum.getKey());
    ForumDownloadResource download = new ForumDownloadResource("Forum", forum, foCallback, null, forumContainer, getLocale());
    ureq.getDispatchResult().setResultingMediaResource(download);
}
Also used : ForumDownloadResource(org.olat.modules.fo.archiver.formatters.ForumDownloadResource) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Example 3 with ForumDownloadResource

use of org.olat.modules.fo.archiver.formatters.ForumDownloadResource in project openolat by klemens.

the class ThreadListController method doArchiveForum.

private void doArchiveForum(UserRequest ureq) {
    VFSContainer forumContainer = forumManager.getForumContainer(forum.getKey());
    ForumDownloadResource download = new ForumDownloadResource("Forum", forum, foCallback, null, forumContainer, getLocale());
    ureq.getDispatchResult().setResultingMediaResource(download);
}
Also used : ForumDownloadResource(org.olat.modules.fo.archiver.formatters.ForumDownloadResource) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Example 4 with ForumDownloadResource

use of org.olat.modules.fo.archiver.formatters.ForumDownloadResource in project openolat by klemens.

the class MessageListController method doArchiveThread.

private void doArchiveThread(UserRequest ureq, Message currMsg) {
    Message m = currMsg.getThreadtop();
    Long topMessageId = (m == null) ? currMsg.getKey() : m.getKey();
    VFSContainer forumContainer = forumManager.getForumContainer(forum.getKey());
    ForumDownloadResource download = new ForumDownloadResource("Forum", forum, foCallback, topMessageId, forumContainer, getLocale());
    ureq.getDispatchResult().setResultingMediaResource(download);
}
Also used : ForumDownloadResource(org.olat.modules.fo.archiver.formatters.ForumDownloadResource) ErrorEditMessage(org.olat.modules.fo.ui.events.ErrorEditMessage) Message(org.olat.modules.fo.Message) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Aggregations

VFSContainer (org.olat.core.util.vfs.VFSContainer)4 ForumDownloadResource (org.olat.modules.fo.archiver.formatters.ForumDownloadResource)4 Message (org.olat.modules.fo.Message)2 ErrorEditMessage (org.olat.modules.fo.ui.events.ErrorEditMessage)2