com.atlassian.jira.mail
Interface MailThreadManager

All Known Implementing Classes:
MailThreadManagerImpl

@PublicApi
public interface MailThreadManager


Field Summary
static String ISSUE_COMMENTED_FROM_EMAIL
           
static String ISSUE_CREATED_FROM_EMAIL
           
static String NOTIFICATION_ISSUE_ASSIGNED
           
static String NOTIFICATION_ISSUE_CLOSED
           
static String NOTIFICATION_ISSUE_COMMENT_EDITED
           
static String NOTIFICATION_ISSUE_COMMENTED
           
static String NOTIFICATION_ISSUE_CREATED
           
static String NOTIFICATION_ISSUE_DELETED
           
static String NOTIFICATION_ISSUE_GENERICEVENT
           
static String NOTIFICATION_ISSUE_MOVED
           
static String NOTIFICATION_ISSUE_REOPENED
           
static String NOTIFICATION_ISSUE_RESOLVED
           
static String NOTIFICATION_ISSUE_UPDATED
           
static String NOTIFICATION_ISSUE_WORKLOG_DELETED
           
static String NOTIFICATION_ISSUE_WORKLOG_UPDATED
           
static String NOTIFICATION_ISSUE_WORKLOGGED
           
static String NOTIFICATION_ISSUE_WORKSTARTED
           
static String NOTIFICATION_ISSUE_WORKSTOPPED
           
static String NOTIFICATION_KEY
           
 
Method Summary
 void createMailThread(String type, Long source, String emailAddress, String messageId)
           
 org.ofbiz.core.entity.GenericValue getAssociatedIssue(javax.mail.Message message)
          Deprecated. use instead getAssociatedIssueObject(javax.mail.Message) method.
 Issue getAssociatedIssueObject(javax.mail.Message message)
          Looks for an issue associated with given message.
 String getThreadType(Long eventTypeId)
           
 int removeAssociatedEntries(Long issueId)
           
 void threadNotificationEmail(Email email, Long issueId)
           
 

Field Detail

NOTIFICATION_KEY

static final String NOTIFICATION_KEY
See Also:
Constant Field Values

NOTIFICATION_ISSUE_CREATED

static final String NOTIFICATION_ISSUE_CREATED

NOTIFICATION_ISSUE_UPDATED

static final String NOTIFICATION_ISSUE_UPDATED

NOTIFICATION_ISSUE_ASSIGNED

static final String NOTIFICATION_ISSUE_ASSIGNED

NOTIFICATION_ISSUE_RESOLVED

static final String NOTIFICATION_ISSUE_RESOLVED

NOTIFICATION_ISSUE_CLOSED

static final String NOTIFICATION_ISSUE_CLOSED

NOTIFICATION_ISSUE_COMMENTED

static final String NOTIFICATION_ISSUE_COMMENTED

NOTIFICATION_ISSUE_COMMENT_EDITED

static final String NOTIFICATION_ISSUE_COMMENT_EDITED

NOTIFICATION_ISSUE_REOPENED

static final String NOTIFICATION_ISSUE_REOPENED

NOTIFICATION_ISSUE_DELETED

static final String NOTIFICATION_ISSUE_DELETED

NOTIFICATION_ISSUE_WORKLOGGED

static final String NOTIFICATION_ISSUE_WORKLOGGED

NOTIFICATION_ISSUE_WORKLOG_UPDATED

static final String NOTIFICATION_ISSUE_WORKLOG_UPDATED

NOTIFICATION_ISSUE_WORKLOG_DELETED

static final String NOTIFICATION_ISSUE_WORKLOG_DELETED

NOTIFICATION_ISSUE_MOVED

static final String NOTIFICATION_ISSUE_MOVED

NOTIFICATION_ISSUE_WORKSTARTED

static final String NOTIFICATION_ISSUE_WORKSTARTED

NOTIFICATION_ISSUE_WORKSTOPPED

static final String NOTIFICATION_ISSUE_WORKSTOPPED

NOTIFICATION_ISSUE_GENERICEVENT

static final String NOTIFICATION_ISSUE_GENERICEVENT

ISSUE_CREATED_FROM_EMAIL

static final String ISSUE_CREATED_FROM_EMAIL
See Also:
Constant Field Values

ISSUE_COMMENTED_FROM_EMAIL

static final String ISSUE_COMMENTED_FROM_EMAIL
See Also:
Constant Field Values
Method Detail

createMailThread

void createMailThread(String type,
                      Long source,
                      String emailAddress,
                      String messageId)

threadNotificationEmail

void threadNotificationEmail(Email email,
                             Long issueId)

getThreadType

String getThreadType(Long eventTypeId)

getAssociatedIssueObject

@Nullable
Issue getAssociatedIssueObject(javax.mail.Message message)
Looks for an issue associated with given message. "In-Reply-To" header of the message is analysed for the the original message id. Such message id has to be associted first with an issue by createMailThread(String, Long, String, String) method

Parameters:
message - message to analyse
Returns:
associated issue or null if no issue has been associated with this message.

getAssociatedIssue

@Deprecated
org.ofbiz.core.entity.GenericValue getAssociatedIssue(javax.mail.Message message)
Deprecated. use instead getAssociatedIssueObject(javax.mail.Message) method.

Looks for an issue associated with given message. "In-Reply-To" header of the message is analysed for the the original message id. Such message id has to be associted first with an issue by createMailThread(String, Long, String, String) method

Parameters:
message - message to analyse
Returns:
associated issue or null if no issue has been associated with this message.

removeAssociatedEntries

int removeAssociatedEntries(Long issueId)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2012 Atlassian. All Rights Reserved.