Interface IJEMHRuntimeConfig

    • Method Detail

      • getAliases

        KeyValuePair[] getAliases()
        Aliases allow for arbitrary command shortening, can shorten the key, but can also be used to provide a value
        Returns:
        String for simple substitution or String[2] for [0]=key, [1]=value
      • getAssignJiraUsersNameToCustomField

        @Deprecated
        String getAssignJiraUsersNameToCustomField()
        Deprecated.
        Use getJiraUserSenderCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of custom field used for handling JIRA user sender from incoming email.
        Returns:
        jira user custom field
      • getJiraUserSenderCFId

        String getJiraUserSenderCFId()
        Get ID of the custom field used to handle JIRA user sender from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getAssignJiraUsersOriginalEmailAddressToCustomField

        @Deprecated
        String getAssignJiraUsersOriginalEmailAddressToCustomField()
        Deprecated.
        Use getJiraUserSenderEmailAddressCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of custom field used for handling JIRA user sender email address of incoming email.
        Returns:
        custom field name
      • getJiraUserSenderEmailAddressCFId

        String getJiraUserSenderEmailAddressCFId()
        Get ID of the custom field used to handle JIRA user sender email address from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getAssignNonJiraUsersOriginalNameToCustomField

        @Deprecated
        String getAssignNonJiraUsersOriginalNameToCustomField()
        Deprecated.
        Use getNonJiraUserSenderNameCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of custom field used for handling non-JIRA user
        Returns:
        name of custom field
      • getNonJiraUserSenderNameCFId

        String getNonJiraUserSenderNameCFId()
        Get ID of the custom field used to handle non-JIRA user sender name from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getAssignNonJiraUsersOriginalEmailAddressToCustomField

        @Deprecated
        String getAssignNonJiraUsersOriginalEmailAddressToCustomField()
        Deprecated.
        Use getNonJiraUserSenderEmailAddressCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of custom field used for handling non-JIRA user email address from incoming email.
        Returns:
        name of custom field
      • getNonJiraUserSenderEmailAddressCFId

        String getNonJiraUserSenderEmailAddressCFId()
        Get ID of the custom field used to handle non-JIRA user sender email address from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getWhitelistedAttachmentTypes

        String[] getWhitelistedAttachmentTypes()
      • getBlacklistedAttachmentTypes

        String[] getBlacklistedAttachmentTypes()
      • getBlacklistedAttMimeTypes

        String[] getBlacklistedAttMimeTypes()
      • getBlacklistRecipients

        String[] getBlacklistRecipients()
      • getBlacklistSenders

        String[] getBlacklistSenders()
      • getNonRenamedAtts

        String[] getNonRenamedAtts()
      • getProjectMappingDomainRuleAddresseeMatch

        CatchEmailResult getProjectMappingDomainRuleAddresseeMatch​(javax.mail.Message message)
      • getCatchEmailHeaders

        String[] getCatchEmailHeaders()
      • getCCHandling

        String[] getCCHandling()
      • getCCHandlingJiraUsersCustomFieldName

        @Deprecated
        String getCCHandlingJiraUsersCustomFieldName()
        Deprecated.
        Use getCCHandlingJiraUsersCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of the custom field used for handling JIRA user reci@Override pients from incoming email.
        Returns:
        name of custom field
      • getCCHandlingJiraUsersCFId

        String getCCHandlingJiraUsersCFId()
        Get ID of the custom field used to handle JIRA user recipients from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getCCHandlingNonJiraUsersCustomFieldName

        @Deprecated
        String getCCHandlingNonJiraUsersCustomFieldName()
        Deprecated.
        Use getCCHandlingNonJiraUsersCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of the custom field used for handling non-JIRA user recipients from incoming email.
        Returns:
        name of custom field
      • getCCHandlingNonJiraUsersCFId

        String getCCHandlingNonJiraUsersCFId()
        Get ID of the custom field used to handle non-JIRA user recipients from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getCCEmailAddressesCustomFieldName

        @Deprecated
        String getCCEmailAddressesCustomFieldName()
        Deprecated.
        Use getCCEmailAddressesCFId() to get unambiguous ID's instead of locale-sensitive names.
        Get name of the custom field used to handle email addresses found in the CC header from incoming email.
        Returns:
        name of custom field
      • getCCEmailAddressesCFId

        String getCCEmailAddressesCFId()
        Get ID of the custom field used to handle email addresses found in the CC header from incoming email.
        Returns:
        ID string of the form customfield_xxxxx
      • getCreateUsersIDFrom

        String getCreateUsersIDFrom()
      • getAlternateIdProvider

        String getAlternateIdProvider()
      • getCreateUsersIDFromEmailDomainBlacklist

        String[] getCreateUsersIDFromEmailDomainBlacklist()
      • getCreateUsersIDFromEmailDomainWhitelist

        String[] getCreateUsersIDFromEmailDomainWhitelist()
      • getCustomEmailFromAddress

        String getCustomEmailFromAddress()
      • getCustomEmailFromName

        String getCustomEmailFromName()
      • getCustomEmailReplyToAddress

        String getCustomEmailReplyToAddress()
      • getCustomEmailReplyToName

        String getCustomEmailReplyToName()
      • getDefaultAutoJoinGroups

        String[] getDefaultAutoJoinGroups()
      • isAutoJoinNewUsersGroup

        boolean isAutoJoinNewUsersGroup()
      • getDefaultCommentVisibility

        String getDefaultCommentVisibility()
      • getDefaultCustomFieldValue

        String getDefaultCustomFieldValue​(String customFieldName,
                                          javax.mail.Message incomingMessage)
      • getDefaultCustomFieldValue

        String getDefaultCustomFieldValue​(com.atlassian.jira.issue.fields.CustomField arg0,
                                          boolean isCreating,
                                          javax.mail.Message incomingMessage)
      • isDefaultCustomFieldRuleMatch

        boolean isDefaultCustomFieldRuleMatch​(String name,
                                              com.atlassian.jira.issue.Issue fRelatedIssue)
      • getDateFormats

        String[] getDateFormats()
      • getDateTimeFormats

        String[] getDateTimeFormats()
      • getDefaultDueDateDays

        String getDefaultDueDateDays()
      • getIssueCommentLimit

        int getIssueCommentLimit()
        gets the max number of comments that can be added to an issue
        Returns:
        comment size limit
      • isIssueCommentLimitExceedsJiraLimit

        boolean isIssueCommentLimitExceedsJiraLimit​(int commentCountLimit)
        detect if the comment limit exceeds the jira limit
        Parameters:
        commentCountLimit -
        Returns:
        true if jemh limit exceeds jira limit
      • getIssueCommentCountLimitExceededAction

        IJEMHDataTypes.CommentCountLimitAction getIssueCommentCountLimitExceededAction()
        When the COUNT of issue comments hits the JEMH limit, what do we do. Determines how failure should be handled, either send to 'forward' user or 'reject' through normal hintOgram method. This value reflects Project Mapping definitions (ie inherited from Default Project Mapping, with mapping Project Mapping being able to override, and same again for Rules)
        Returns:
        typed value: reject, forward, allow
      • getIssueCommentMaxChars

        int getIssueCommentMaxChars()
        The limit to be set stopping excessively large comments being added to issues, possibly erroneously
        Returns:
        comment size limit in bytes
      • getIssueCommentMaxCharsExceededAction

        IJEMHDataTypes.CommentMaxCharsLimitAction getIssueCommentMaxCharsExceededAction()
        When the SIZE of issue comments hits the JEMH limit, what do we do. Determines how failure should be handled, either send to 'forward' user, 'reject' through normal hintOgram method, or 'truncate' (and attach full content). This value reflects Project Mapping definitions (ie inherited from Default Project Mapping, with mapping Project Mapping being able to override, and same again for Rules)
        Returns:
        typed value: reject, forward, truncate
      • getDefaultIssueLinkType

        String getDefaultIssueLinkType()
      • isCommentVisibilityOptional

        boolean isCommentVisibilityOptional()
      • getDefaultReporterUserKey

        String getDefaultReporterUserKey()
      • getDefaultSummary

        String getDefaultSummary()
      • getDefaultComment

        String getDefaultComment()
      • getDefaultWorklogSecurityGroup

        String getDefaultWorklogSecurityGroup()
      • getDefaultWorklogSecurityRole

        String getDefaultWorklogSecurityRole()
      • getDirectiveProcessingBehaviour

        String getDirectiveProcessingBehaviour()
        Indicate if any specific variation should be used to enable JEMH directive processing
        Returns:
        onComment, onCreateAndComment
      • isUseTranslatedFieldNames

        boolean isUseTranslatedFieldNames()
      • getWhitelistDirectives

        String[] getWhitelistDirectives()
      • getBlacklistDirectives

        String[] getBlacklistDirectives()
      • getDirectiveGroups

        String[] getDirectiveGroups()
        enabled for JIRA users with given groups
        Returns:
        String[] of Group names whose members may use Directives
      • getEatEmptyBodyLinesMax

        int getEatEmptyBodyLinesMax()
      • getEnabledFieldProcessors

        String[] getEnabledFieldProcessors()
      • getForceUserIdCase

        String getForceUserIdCase()
      • getHintogramEmailTemplate

        Integer getHintogramEmailTemplate()
      • getIndicateSourcedByEmailTemplate

        Integer getIndicateSourcedByEmailTemplate()
      • getForwardEmailTemplate

        Integer getForwardEmailTemplate()
      • getUserSignupEmailTemplate

        Integer getUserSignupEmailTemplate()
      • getThreadMatchRejectTemplate

        Integer getThreadMatchRejectTemplate()
      • getJiraDurationUtils

        com.atlassian.jira.util.JiraDurationUtils getJiraDurationUtils​(com.atlassian.jira.security.JiraAuthenticationContext jac)
        Specified by:
        getJiraDurationUtils in interface IJEMHSystemConfigHelper
      • getOverrideHintOgramEmailAddress

        String getOverrideHintOgramEmailAddress()
        Returns:
        Provide ability to intercept all hintOgrams
      • getPrivilegedUser

        com.atlassian.jira.user.ApplicationUser getPrivilegedUser()
      • getProfileId

        int getProfileId()
      • getProfileGroupKey

        String getProfileGroupKey()
      • isProfileGroupDefault

        boolean isProfileGroupDefault()
      • isGroupOutcomeControlEnabled

        boolean isGroupOutcomeControlEnabled()
      • getProfileName

        String getProfileName()
      • getProfileGroupOrder

        int getProfileGroupOrder()
      • isSenderMustHaveAcct

        boolean isSenderMustHaveAcct()
      • getWhitelistSenders

        String[] getWhitelistSenders()
      • isAddSenderAsWatcher

        boolean isAddSenderAsWatcher()
      • isAutoFlushMailQueue

        boolean isAutoFlushMailQueue()
      • isCommentLevelVisibilityForGroupsEnabled

        boolean isCommentLevelVisibilityForGroupsEnabled()
      • isCreateUsers

        boolean isCreateUsers()
      • getUserDirectoryForCreate

        String getUserDirectoryForCreate()
      • isCreateUserSignupEmail

        boolean isCreateUserSignupEmail()
      • isDebugPrintEmail

        boolean isDebugPrintEmail()
      • isDefaultReporterOverridesDerivedReporter

        boolean isDefaultReporterOverridesDerivedReporter()
      • isEnableAutomaticIssueAssignee

        boolean isEnableAutomaticIssueAssignee()
      • isHintOgramEnabled

        boolean isHintOgramEnabled()
      • isNotifyOfAllIssueCreationFailure

        boolean isNotifyOfAllIssueCreationFailure()
      • getCustomEventFireMode

        @Deprecated
        IJEMHDataTypes.CustomEventFireMode getCustomEventFireMode()
        Deprecated.
        since 3.3.14, as only bundles should be fired
        Returns:
        type representing how custom events should be fired by JEMH.
      • isIndicateSourcedByEmailHeader

        @Deprecated
        boolean isIndicateSourcedByEmailHeader()
        Deprecated.
      • isIndicateWhichHandlerProcessedMail

        boolean isIndicateWhichHandlerProcessedMail()
      • isEmbeddedAttsEnabled

        boolean isEmbeddedAttsEnabled()
      • isNotifyUsers

        boolean isNotifyUsers()
      • isProjectAutoAssign

        boolean isProjectAutoAssign()
      • isProjectAutoAssignSubAddresses

        boolean isProjectAutoAssignSubAddresses()
      • isStripQuotes

        boolean isStripQuotes()
      • isUpdateWithCommentsAlwaysToTriggerUpdateEvents

        boolean isUpdateWithCommentsAlwaysToTriggerUpdateEvents()
      • isUseEmailSenderForSecurityChecks

        boolean isUseEmailSenderForSecurityChecks()
      • isUseGenericEventEnabled

        boolean isUseGenericEventEnabled()
      • isProjLeadForForward

        boolean isProjLeadForForward()
      • getForwardEmails

        String getForwardEmails()
      • isAddOriginalEmailToForwardNotification

        boolean isAddOriginalEmailToForwardNotification()
      • getIssueSecurityLevel

        String getIssueSecurityLevel()
      • getHtmlExtractMethod

        String getHtmlExtractMethod()
      • isUseProvidedHtmlImageAttributes

        boolean isUseProvidedHtmlImageAttributes()
      • getHtmlImageAttributes

        String getHtmlImageAttributes()
      • isAssigneeFirstValidUser

        boolean isAssigneeFirstValidUser()
      • getSubjectCleanupRegexps

        String getSubjectCleanupRegexps()
        This field is now applied Before Directive processing only. For post-Directive processing, us Project Mapping cleanup regexps
        Returns:
        csv regexps
      • getBodyCleanupRegexps

        String getBodyCleanupRegexps()
        This field is now applied Before Directive processing only. For post-Directive processing, us Project Mapping cleanup regexps
        Returns:
        csv regexps
      • getSubjectIssueKeyRegexp

        String getSubjectIssueKeyRegexp()
      • isSubjectIssueKeyLimitedToMappedProjects

        boolean isSubjectIssueKeyLimitedToMappedProjects()
      • getSubjectIssueKeyJqlFilt

        String getSubjectIssueKeyJqlFilt()
      • getForwardSubjectPrefixes

        String getForwardSubjectPrefixes()
      • isPreValidateCustomFieldValues

        boolean isPreValidateCustomFieldValues()
      • isHideHtmlLinks

        boolean isHideHtmlLinks()
      • isRemoveNbsp

        boolean isRemoveNbsp()
      • isIgnoreSubjectIssueKeys

        boolean isIgnoreSubjectIssueKeys()
      • isDisableAttZipWrapper

        boolean isDisableAttZipWrapper()
      • getCreateEmailNameFormat

        String getCreateEmailNameFormat()
      • getCommentEmailNameFormat

        String getCommentEmailNameFormat()
      • getProjAssignFromSubj

        String getProjAssignFromSubj()
      • getCustomEventOnComment

        int getCustomEventOnComment()
      • isAutoLabelEnabled

        boolean isAutoLabelEnabled()
      • getAutoLabelIgnores

        List<String> getAutoLabelIgnores()
      • getAutoLabelSubstitutions

        Map<String,​String> getAutoLabelSubstitutions()
      • getAutoLabelMinCharCount

        int getAutoLabelMinCharCount()
      • getAutoLabelMaxCharCount

        int getAutoLabelMaxCharCount()
      • getAutoLabelSubjectDelimiter

        String getAutoLabelSubjectDelimiter()
      • isAutoLabelAddSuggestions

        boolean isAutoLabelAddSuggestions()
      • isAutoLabelAddUniqueOriginals

        boolean isAutoLabelAddUniqueOriginals()
      • isCanCreateLabels

        boolean isCanCreateLabels()
      • isAutoLabelSenderDomain

        boolean isAutoLabelSenderDomain()
      • getWhitelistAutoLabelSenderDomains

        Set<String> getWhitelistAutoLabelSenderDomains()
      • getBlacklistAutoLabelSenderDomains

        Set<String> getBlacklistAutoLabelSenderDomains()
      • getSenderDomainCfId

        String getSenderDomainCfId()
        Get ID of custom field used for sender domain
        Returns:
        ID of custom field in form customfield_xxxxx
      • getCustomEventOnCreate

        int getCustomEventOnCreate()
      • isColonSuffixMultilineDisabled

        boolean isColonSuffixMultilineDisabled()
      • isAddAttachImgLinks

        boolean isAddAttachImgLinks()
      • isAddAttachFileLinks

        boolean isAddAttachFileLinks()
      • getEmailSentDateCF

        @Deprecated
        String getEmailSentDateCF()
        Deprecated.
        Get name of custom field used for handling email sent date of incoming email.
        Returns:
        name of custom field
      • getEmailSentDateCFId

        String getEmailSentDateCFId()
        Get ID of custom field used for email sent date of incoming email.
        Returns:
        ID of cutom field in form customfield_xxxxx
      • isAllowAnonymousCommenting

        boolean isAllowAnonymousCommenting()
      • getNonCatchmailMatchAction

        String getNonCatchmailMatchAction()
      • getNoIssOnCommentAction

        String getNoIssOnCommentAction()
      • isNormaliseNewlines

        boolean isNormaliseNewlines()
      • isUseReprocessedMessage

        boolean isUseReprocessedMessage()
      • isThreadCheckDisabled

        boolean isThreadCheckDisabled()
      • isMergeResentMessages

        boolean isMergeResentMessages()
      • isThreadMatchRejectEnforced

        boolean isThreadMatchRejectEnforced()
      • getThreadMatchNotWithResolutions

        String[] getThreadMatchNotWithResolutions()
      • getThreadMatchJql

        String getThreadMatchJql()
      • isNotifyThreadMatchReject

        boolean isNotifyThreadMatchReject()
      • getThreadRejectSenderCfId

        long getThreadRejectSenderCfId()
      • getNoCommentHeaderAddresses

        String getNoCommentHeaderAddresses()
      • isEnableGenericThirdPartyCFHandling

        boolean isEnableGenericThirdPartyCFHandling()
      • isTreatUnprivilegedAsNonJira

        boolean isTreatUnprivilegedAsNonJira()
      • getUnprivReporterAction

        String getUnprivReporterAction()
      • getUnprivReporterCondition

        String getUnprivReporterCondition()
      • isEscapeWikiMarkup

        boolean isEscapeWikiMarkup()
      • isUseXpriorityHeader

        boolean isUseXpriorityHeader()
      • isAddIssueEntityProps

        boolean isAddIssueEntityProps()
      • getPrecedenceFilterAction

        String getPrecedenceFilterAction​(String headerValue)
        Get action for late running precedence filter from matching project mapping. Implementation should be aware what mapping/rule was found to match.
        Parameters:
        headerValue - the value from the email header
        Returns:
        a String representing the action to be taken
      • getMappedProjectKey

        String getMappedProjectKey()
      • getProjectMappingKeys

        Set<String> getProjectMappingKeys()
      • clearMessage

        void clearMessage()
        Method to remove Message object and related meta data from the config, to limit memory usage in multi-profile configurations
      • isJsdExternalCommentsEnabled

        boolean isJsdExternalCommentsEnabled()
      • getProcessingThrottle

        int getProcessingThrottle()
      • isAddOrgMemberAsReqPart

        boolean isAddOrgMemberAsReqPart()
      • getPostProcessedMessage

        javax.mail.Message getPostProcessedMessage()
      • getCustomActionFromConfig

        String getCustomActionFromConfig​(String filterHeader,
                                         String filterHeaderValue)
      • getCustomMessageFilterHeaders

        Set<String> getCustomMessageFilterHeaders()
      • getCommentRateLimit

        int getCommentRateLimit()
      • getCommentRateLimitPeriod

        int getCommentRateLimitPeriod()
      • isAuditingEnabled

        boolean isAuditingEnabled()