2 Replies Latest reply on Jun 29, 2010 9:17 AM by rzeszotarski

    conversations list

    rzeszotarski

      Hi,


      I have such a question.


      How can I get a list of nested conversations in current conversation.


      I have one not nested conversation and I have to temporary check if this conversation includes nested.


      When I am doing this such a way:


      List<String> idStack = currentConversationEntry
                                              .getConversationIdStack();







      idStack.size == 1



      is true.


      Thanks for help,


      Lukasz


        • 1. Re: conversations list
          cash1981

          I dont understand your question.
          But you can list all conversations like this:




          ConversationEntries conversationEntries = ConversationEntries.instance();
               Collection<ConversationEntry> collection = conversationEntries.getConversationEntries();
               if (collection != null && collection.size() > 0) {
               for (ConversationEntry ce : collection) {
                    log.info("ConversationEntry.getDescription() = " + ce.getDescription());
                    log.info("ConversationEntry.getId() = " + ce.getId());
                    log.info("ConversationEntry.getViewId() = " + ce.getViewId());
                    log.info("ConversationEntry.isNested() = " + ce.isNested());
               }
               } else {
                   log.info("There are no LRCs right now!");
          }



          • 2. Re: conversations list
            rzeszotarski

            Ok, thanks. I thought exactly about that :)