@PublicApi public interface

MailThreadManager

com.atlassian.jira.mail.MailThreadManager
Known Indirect Subclasses

@PublicApi

This interface is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Summary

Constants
String ISSUE_COMMENTED_FROM_EMAIL
String ISSUE_CREATED_FROM_EMAIL
String NOTIFICATION_KEY
Fields
public static final String NOTIFICATION_ISSUE_ASSIGNED
public static final String NOTIFICATION_ISSUE_CLOSED
public static final String NOTIFICATION_ISSUE_COMMENTED
public static final String NOTIFICATION_ISSUE_COMMENT_EDITED
public static final String NOTIFICATION_ISSUE_CREATED
public static final String NOTIFICATION_ISSUE_DELETED
public static final String NOTIFICATION_ISSUE_GENERICEVENT
public static final String NOTIFICATION_ISSUE_MOVED
public static final String NOTIFICATION_ISSUE_REOPENED
public static final String NOTIFICATION_ISSUE_RESOLVED
public static final String NOTIFICATION_ISSUE_UPDATED
public static final String NOTIFICATION_ISSUE_WORKLOGGED
public static final String NOTIFICATION_ISSUE_WORKLOG_DELETED
public static final String NOTIFICATION_ISSUE_WORKLOG_UPDATED
public static final String NOTIFICATION_ISSUE_WORKSTARTED
public static final String NOTIFICATION_ISSUE_WORKSTOPPED
Public Methods
void createMailThread(String type, Long source, String emailAddress, String messageId)
@Deprecated GenericValue getAssociatedIssue(Message message)
This method is deprecated. use instead getAssociatedIssueObject(Message) method. Since 26/11/2011
@Nullable Issue getAssociatedIssueObject(Message message)
Looks for an issue associated with given message.
String getThreadType(Long eventTypeId)
int removeAssociatedEntries(Long issueId)
void threadNotificationEmail(Email email, Long issueId)

Constants

public static final String ISSUE_COMMENTED_FROM_EMAIL

Constant Value: "ISSUE_COMMENTED_FROM_EMAIL"

public static final String ISSUE_CREATED_FROM_EMAIL

Constant Value: "ISSUE_CREATED_FROM_EMAIL"

public static final String NOTIFICATION_KEY

Constant Value: "NOTIFICATION_"

Fields

public static final String NOTIFICATION_ISSUE_ASSIGNED

public static final String NOTIFICATION_ISSUE_CLOSED

public static final String NOTIFICATION_ISSUE_COMMENTED

public static final String NOTIFICATION_ISSUE_COMMENT_EDITED

public static final String NOTIFICATION_ISSUE_CREATED

public static final String NOTIFICATION_ISSUE_DELETED

public static final String NOTIFICATION_ISSUE_GENERICEVENT

public static final String NOTIFICATION_ISSUE_MOVED

public static final String NOTIFICATION_ISSUE_REOPENED

public static final String NOTIFICATION_ISSUE_RESOLVED

public static final String NOTIFICATION_ISSUE_UPDATED

public static final String NOTIFICATION_ISSUE_WORKLOGGED

public static final String NOTIFICATION_ISSUE_WORKLOG_DELETED

public static final String NOTIFICATION_ISSUE_WORKLOG_UPDATED

public static final String NOTIFICATION_ISSUE_WORKSTARTED

public static final String NOTIFICATION_ISSUE_WORKSTOPPED

Public Methods

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

@Deprecated public GenericValue getAssociatedIssue (Message message)

This method is deprecated.
use instead getAssociatedIssueObject(Message) method. Since 26/11/2011

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.

@Nullable public Issue getAssociatedIssueObject (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.

public String getThreadType (Long eventTypeId)

public int removeAssociatedEntries (Long issueId)

public void threadNotificationEmail (Email email, Long issueId)