Class MailSettings.Send

java.lang.Object
com.atlassian.jira.mail.settings.MailSettings.Send
Enclosing interface:
MailSettings

public static class MailSettings.Send extends Object
Represents the state of outgoing mail for this JIRA instance. This can either be enabled or disabled.
  • Field Details

  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether outgoing mail is currently enabled.
      Returns:
      true, if outgoing mail is enabled. Otherwise, false.
    • isDisabled

      public boolean isDisabled()
      Whether outgoing mail is currently disabled.
      Returns:
      true, if outgoing mail is disabled. Otherwise, false.
      See Also:
    • isDisabledViaApplicationProperty

      public boolean isDisabledViaApplicationProperty()
      Whether outgoing mail is currently disabled via the application property.
      Returns:
      true, if outgoing mail is disabled. Otherwise, false.
      See Also:
    • isModifiable

      public boolean isModifiable()
      Whether the outgoing mail setting can be changed from enabled to disabled, or viceversa.
      Returns:
      true, if outgoing mail can be changed. Otherwise, false.
    • getModifiedBy

      @Nullable public String getModifiedBy()
      Returns the key of the last user to have enabled or disabled outgoing mail, or null if it has never been enabled or disabled.
      Returns:
      the key of the last user to have enabled/disabled outgoing mail, or null
      Since:
      6.1
      See Also:
    • getModifiedDate

      @Nullable public Date getModifiedDate()
      Returns the date when outgoing mail was last enabled or disabled, or null if it has never been modified.
      Returns:
      the date when outgoing mail was last enabled/disabled, or null.
      Since:
      6.1
    • enable

      public boolean enable()
      Enables sending outgoing mail from JIRA.
      Returns:
      true, if outgoing mail was succesfully enabled. Otherwise, false.
      See Also:
    • disable

      public boolean disable()
      Disables sending outgoing mail from JIRA.
      Returns:
      true, if outgoing mail was succesfully disabled. Otherwise, false.
      See Also: