public class ThreadBuilder extends Object
The basic steps are: (1) Gather all related messages by doing exhaustive searches on message-ids, references and subject-lines. (2) Try to parent each message by its message-id and references. (3) Try to parent the remainder of messages by subject.
I assure you, when I wrote this class I understood it. Unfortunately, I can make no guarantees about still understanding it in a few months time. This is probably a bad sign. -- c
Does everything through Lucene, so if your search index is messed up, you don't get any threading.
Constructor and Description |
---|
ThreadBuilder(com.atlassian.bonnie.ILuceneConnection luceneConnection) |
Modifier and Type | Method and Description |
---|---|
ThreadNode |
buildThreadAround(String spaceKey,
String messageId)
From a message-id, determine the thread in which that message is contained.
|
public ThreadBuilder(com.atlassian.bonnie.ILuceneConnection luceneConnection)
public ThreadNode buildThreadAround(String spaceKey, String messageId)
spaceKey
- the space in which the message is storedmessageId
- the message-id of the message to threadCopyright © 2003–2016 Atlassian. All rights reserved.