Package plugins.Freetalk

Examples of plugins.Freetalk.MessageList


    WoTOwnMessageList list = new WoTOwnMessageList(author, getFreeOwnMessageListIndex(author));
    list.initializeTransient(mFreetalk);
   
    // TODO: Optimization: This is debug code which was added on 2011-02-13 for preventing DuplicateMessageListException, it can be removed after some months if they do not happen.
    try {
      final MessageList existingList = mFreetalk.getMessageManager().getOwnMessageList(list.getID());
      throw new RuntimeException("getFreeOwnMessageListIndex reported non-free index, taken by: " + existingList);
    } catch(NoSuchMessageListException e) {}
   
    list.addMessage(message);
    list.storeWithoutCommit();


    mIndex = Math.max(mIndex+1, freeIndex);
    mID = MessageListID.construct(getAuthor(), mIndex).toString();
   
    // TODO: Optimization: This is debug code which was added on 2011-02-13 for preventing DuplicateMessageListException, it can be removed after some months if they do not happen.
    try {
      final MessageList existingList = mFreetalk.getMessageManager().getOwnMessageList(mID);
      throw new RuntimeException("getFreeOwnMessageListIndex reported non-free index, taken by: " + existingList);
    } catch(NoSuchMessageListException e) {}
   
    storeWithoutCommit();
  }

TOP

Related Classes of plugins.Freetalk.MessageList

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.