com.atlassian.jira.mail
Class MailThreadManagerImpl

java.lang.Object
  extended by com.atlassian.jira.mail.MailThreadManagerImpl
All Implemented Interfaces:
MailThreadManager

public class MailThreadManagerImpl
extends Object
implements MailThreadManager


Field Summary
 
Fields inherited from interface com.atlassian.jira.mail.MailThreadManager
ISSUE_COMMENTED_FROM_EMAIL, ISSUE_CREATED_FROM_EMAIL, NOTIFICATION_ISSUE_ASSIGNED, NOTIFICATION_ISSUE_CLOSED, NOTIFICATION_ISSUE_COMMENT_EDITED, NOTIFICATION_ISSUE_COMMENTED, NOTIFICATION_ISSUE_CREATED, NOTIFICATION_ISSUE_DELETED, NOTIFICATION_ISSUE_GENERICEVENT, NOTIFICATION_ISSUE_MOVED, NOTIFICATION_ISSUE_REOPENED, NOTIFICATION_ISSUE_RESOLVED, NOTIFICATION_ISSUE_UPDATED, NOTIFICATION_ISSUE_WORKLOG_DELETED, NOTIFICATION_ISSUE_WORKLOG_UPDATED, NOTIFICATION_ISSUE_WORKLOGGED, NOTIFICATION_ISSUE_WORKSTARTED, NOTIFICATION_ISSUE_WORKSTOPPED, NOTIFICATION_KEY
 
Constructor Summary
MailThreadManagerImpl()
           
MailThreadManagerImpl(org.ofbiz.core.entity.DelegatorInterface genericDelegator, IssueManager issueManager, EventTypeManager eventTypeManager)
           
 
Method Summary
 void createMailThread(String type, Long source, String emailAddress, String messageId)
           
 org.ofbiz.core.entity.GenericValue getAssociatedIssue(javax.mail.Message message)
          Looks for an issue associated with given message.
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailThreadManagerImpl

public MailThreadManagerImpl(org.ofbiz.core.entity.DelegatorInterface genericDelegator,
                             IssueManager issueManager,
                             EventTypeManager eventTypeManager)

MailThreadManagerImpl

public MailThreadManagerImpl()
Method Detail

createMailThread

public void createMailThread(String type,
                             Long source,
                             String emailAddress,
                             String messageId)
Specified by:
createMailThread in interface MailThreadManager

threadNotificationEmail

public void threadNotificationEmail(Email email,
                                    Long issueId)
Specified by:
threadNotificationEmail in interface MailThreadManager

getThreadType

public String getThreadType(Long eventTypeId)
Specified by:
getThreadType in interface MailThreadManager

getAssociatedIssue

public org.ofbiz.core.entity.GenericValue getAssociatedIssue(javax.mail.Message message)
Description copied from interface: MailThreadManager
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 MailThreadManager.createMailThread(String, Long, String, String) method

Specified by:
getAssociatedIssue in interface MailThreadManager
Parameters:
message - message to analyse
Returns:
associated issue or null if no issue has been associated with this message.

getAssociatedIssueObject

@Nullable
public Issue getAssociatedIssueObject(javax.mail.Message message)
Description copied from interface: MailThreadManager
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 MailThreadManager.createMailThread(String, Long, String, String) method

Specified by:
getAssociatedIssueObject in interface MailThreadManager
Parameters:
message - message to analyse
Returns:
associated issue or null if no issue has been associated with this message.

removeAssociatedEntries

public int removeAssociatedEntries(Long issueId)
                            throws org.ofbiz.core.entity.GenericEntityException
Specified by:
removeAssociatedEntries in interface MailThreadManager
Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2012 Atlassian. All Rights Reserved.