Package org.olat.modules.fo.archiver.formatters

Examples of org.olat.modules.fo.archiver.formatters.ForumRTFFormatter


      if (vfsItem == null || !(vfsItem instanceof VFSContainer)){
        vfsItem = container.createChildContainer(forumName);
      }
      container = (VFSContainer)vfsItem;
       
      ForumRTFFormatter rtff = new ForumRTFFormatter(container, false)
      ForumArchiveManager fam = ForumArchiveManager.getInstance();
      fam.applyFormatter(rtff, forumKey.longValue(), null);
    }
  }
View Full Code Here


      showWarning("may.not.delete.msg.as.author");
    }
  }

  private void doArchiveForum(UserRequest ureq) {
    ForumRTFFormatter rtff = new ForumRTFFormatter(getArchiveContainer(ureq), false);
    ForumArchiveManager fam = ForumArchiveManager.getInstance();
    fam.applyFormatter(rtff, forum.getKey().longValue(), focallback);
  }
View Full Code Here

  private void doArchiveThread(UserRequest ureq, Message currMsg) {
    Message m = currMsg.getThreadtop();
    Long topMessageId = (m == null) ? currMsg.getKey() : m.getKey();

    ForumRTFFormatter rtff = new ForumRTFFormatter(getArchiveContainer(ureq), true);
    ForumArchiveManager fam = ForumArchiveManager.getInstance();
    fam.applyFormatterForOneThread(rtff, forum.getKey().longValue(), topMessageId.longValue());
  }
View Full Code Here

    // don't check quota
    diaNodeElemExportContainer.setLocalSecurityCallback(new FullAccessCallback());
    diaNodeElemExportContainer.copyFrom(dialogFile);

    ForumArchiveManager fam = ForumArchiveManager.getInstance();
    ForumFormatter ff = new ForumRTFFormatter(diaNodeElemExportContainer, false);
    fam.applyFormatter(ff, element.getForumKey().longValue(), null);
  }
View Full Code Here

    Property forumKeyProperty = NarrowedPropertyManager.getInstance(ores).findProperty(null, null, PROP_CAT_BG_COLLABTOOLS, KEY_FORUM);
    if (forumKeyProperty != null) {
      VFSContainer archiveContainer = new LocalFolderImpl(new File(archivFilePath));
      String archiveForumName = "del_forum_" + forumKeyProperty.getLongValue();
      VFSContainer archiveForumContainer = archiveContainer.createChildContainer(archiveForumName);
      ForumFormatter ff = new ForumRTFFormatter(archiveForumContainer, false);
      ForumArchiveManager.getInstance().applyFormatter(ff, forumKeyProperty.getLongValue(), null);
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.modules.fo.archiver.formatters.ForumRTFFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.