com.atlassian.studio.jira.service.util.handler
Class StudioEmailHandler

java.lang.Object
  extended by com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler
      extended by com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler
          extended by com.atlassian.studio.jira.service.util.handler.StudioEmailHandler
All Implemented Interfaces:
MessageHandler

public class StudioEmailHandler
extends CreateOrCommentHandler

A message handler to create a new issue, or add a comment to an existing issue, from an incoming message. If sender is not user in jira, message will be bounced back to the user and email deleted.


Field Summary
 
Fields inherited from class com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler
issueType, KEY_ISSUETYPE, KEY_PROJECT, KEY_QUOTES, projectKey, stripquotes
 
Fields inherited from class com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler
applicationProperties, bulk, catchEmail, CONTENT_TYPE_TEXT, createUsers, deleteEmail, HEADER_IN_REPLY_TO, HEADER_MESSAGE_ID, KEY_BULK, KEY_CATCHEMAIL, KEY_CREATEUSERS, KEY_FINGER_PRINT, KEY_NOTIFYUSERS, KEY_REPORTER, messageUserProcessor, notifyUsers, params, reporteruserName, userManager, VALUE_BULK_DELETE, VALUE_BULK_FORWARD, VALUE_BULK_IGNORE, VALUE_FINGER_PRINT_ACCEPT, VALUE_FINGER_PRINT_FORWARD, VALUE_FINGER_PRINT_IGNORE
 
Constructor Summary
StudioEmailHandler()
           
 
Method Summary
protected  MessageUserProcessor getMessageUserProcessor()
           
 void init(Map<String,String> params, MessageHandlerErrorCollector messageHandlerErrorCollector)
          Will be called before any messages are to be handled.
 
Methods inherited from class com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler
attachHtmlParts, attachPlainTextParts, handleMessage
 
Methods inherited from class com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler
attachAttachmentsParts, attachInlineParts, attachMessagePart, attachRelatedPart, canHandleMessage, createAttachmentsForMessage, createAttachmentWithPart, createUserForReporter, getAssociatedIssue, getFileFromPart, getFilenameForAttachment, getI18nBean, getPrecedenceHeader, getReporter, isAutoSubmitted, isDeliveryStatus, recordMessageId, renameFileIfInvalid, shouldAttach
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudioEmailHandler

public StudioEmailHandler()
Method Detail

init

public void init(Map<String,String> params,
                 MessageHandlerErrorCollector messageHandlerErrorCollector)
Description copied from interface: MessageHandler
Will be called before any messages are to be handled.

Specified by:
init in interface MessageHandler
Overrides:
init in class CreateOrCommentHandler
Parameters:
params - configuration.
messageHandlerErrorCollector - potential problems encountered during initialization of the handler should be reported here. Depending on the run mode it may be e.g. displayed back to the user (when handler is tested from UI) or logged to the file .

getMessageUserProcessor

protected MessageUserProcessor getMessageUserProcessor()
Overrides:
getMessageUserProcessor in class AbstractMessageHandler


Copyright © 2002-2012 Atlassian. All Rights Reserved.