Examples of subscribeToBoard()


Examples of plugins.Freetalk.MessageManager.subscribeToBoard()

   
      try {
        MessageManager messageManager = mFreetalk.getMessageManager();
       
        if(subscribe) {
          SubscribedBoard board = messageManager.subscribeToBoard(mOwnIdentity, boardName);

          HTMLNode successBox = addContentBox(l10n().getString("SelectBoardsPage.SubscriptionSucceededBox.Header"));
                  l10n().addL10nSubstitution(
                          successBox.addChild("div"),
                          "SelectBoardsPage.SubscriptionSucceededBox.Text",
View Full Code Here

Examples of plugins.Freetalk.MessageManager.subscribeToBoard()

    final MessageManager messageManager = mFreetalk.getMessageManager();
   
    // TODO: Optimization: Use unsorted iterator, there is none right now.
    for(Board board : messageManager.boardIteratorSortedByName()) {
      try {
        messageManager.subscribeToBoard(getOwner(), board.getName()); // Does not throw if subscription exists.
      } catch(Exception e) {
        mNextProcessingTime = CurrentTimeUTC.getInMillis() + 10 * 60 * 1000;
        mDeleteTime = Long.MAX_VALUE;
      }
    }
View Full Code Here

Examples of plugins.Freetalk.MessageManager.subscribeToBoard()

    for(OwnIdentity identity : mFreetalk.getIdentityManager().ownIdentityIterator()) {
      if(!identity.wantsAutoSubscribeToNewBoards())
        continue;
     
      try {
        messageManager.subscribeToBoard(identity, mBoardName); // Does not throw if subscription exists.
      } catch (Exception e) {
        Logger.error(this, "Auto-subscribing to board failed", e);
        mNextProcessingTime = CurrentTimeUTC.getInMillis() + 10 * 60 * 1000;
        mDeleteTime = Long.MAX_VALUE;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.