com.atlassian.jira.service.util.handler
Class AbstractCommentHandler
java.lang.Object
com.atlassian.jira.service.util.handler.AbstractMessageHandler
com.atlassian.jira.service.util.handler.AbstractCommentHandler
- All Implemented Interfaces:
- MessageHandler
- Direct Known Subclasses:
- FullCommentHandler, NonQuotedCommentHandler, RegexCommentHandler
- public abstract class AbstractCommentHandler
- extends AbstractMessageHandler
Created by IntelliJ IDEA.
User: owenfellows
Date: 17-Jul-2004
Time: 11:59:40
To change this template use File | Settings | File Templates.
Fields inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler |
bulk, catchEmail, CONTENT_TYPE_PKCS7, CONTENT_TYPE_TEXT, createUsers, deleteEmail, KEY_BULK, KEY_CATCHEMAIL, KEY_CREATEUSERS, KEY_NOTIFYUSERS, KEY_REPORTER, notifyUsers, params, reporteruserName |
Method Summary |
protected abstract String |
getEmailBody(javax.mail.Message message)
|
static Long |
getEventTypeId(Collection attachmentsChangeItems)
If there are attachments added dispatch EventType.ISSUE_UPDATED_ID , otherwise
dispatch EventType.ISSUE_COMMENTED_ID . |
boolean |
handleMessage(javax.mail.Message message)
Perform the specific work of this handler for the given message. |
Methods inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler |
addError, addError, addErrorAndReturnFalse, addErrorAndReturnFalse, canHandleMessage, createAttachmentsForMessage, createAttachmentWithPart, getAssociatedIssue, getErrorHandler, getFileFromPart, getI18nBean, getPrecedenceHeader, getReporter, init, recordMessageId, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCommentHandler
protected AbstractCommentHandler()
- Deprecated. Please use other constructor that explicitly sets dependencies
AbstractCommentHandler
protected AbstractCommentHandler(PermissionManager permissionManager,
IssueUpdater issueUpdater,
CommentManager commentManager)
handleMessage
public boolean handleMessage(javax.mail.Message message)
throws javax.mail.MessagingException
- Description copied from class:
AbstractMessageHandler
- Perform the specific work of this handler for the given message.
- Specified by:
handleMessage
in interface MessageHandler
- Specified by:
handleMessage
in class AbstractMessageHandler
- Returns:
- true if the message is to be deleted from the source.
- Throws:
javax.mail.MessagingException
- if anything went wrong.
getEventTypeId
public static Long getEventTypeId(Collection attachmentsChangeItems)
- If there are attachments added dispatch
EventType.ISSUE_UPDATED_ID
, otherwise
dispatch EventType.ISSUE_COMMENTED_ID
.
getEmailBody
protected abstract String getEmailBody(javax.mail.Message message)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
Copyright © 2002-2007 Atlassian. All Rights Reserved.