public static class

MailSettings.Send

extends Object
java.lang.Object
   ↳ com.atlassian.jira.mail.settings.MailSettings.Send

Class Overview

Represents the state of outgoing mail for this JIRA instance. This can either be enabled or disabled.

Summary

Constants
String DISABLED_APPLICATION_PROPERTY
String DISABLED_SYSTEM_PROPERTY_KEY
Public Methods
boolean disable()
Disables sending outgoing mail from JIRA.
boolean enable()
Enables sending outgoing mail from JIRA.
@Nullable 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.
@Nullable Date getModifiedDate()
Returns the date when outgoing mail was last enabled or disabled, or null if it has never been modified.
boolean isDisabled()
Whether outgoing mail is currently disabled.
boolean isDisabledViaApplicationProperty()
Whether outgoing mail is currently disabled via the application property.
boolean isEnabled()
Whether outgoing mail is currently enabled.
boolean isModifiable()
Whether the outgoing mail setting can be changed from enabled to disabled, or viceversa.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DISABLED_APPLICATION_PROPERTY

Constant Value: "jira.mail.send.disabled"

public static final String DISABLED_SYSTEM_PROPERTY_KEY

Constant Value: "atlassian.mail.senddisabled"

Public Methods

public boolean disable ()

Disables sending outgoing mail from JIRA.

Returns
  • true, if outgoing mail was succesfully disabled. Otherwise, false.
See Also

public boolean enable ()

Enables sending outgoing mail from JIRA.

Returns
  • true, if outgoing mail was succesfully enabled. Otherwise, false.
See Also

@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
See Also

@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.

public boolean isDisabled ()

Whether outgoing mail is currently disabled.

Returns
  • true, if outgoing mail is disabled. Otherwise, false.
See Also

public boolean isDisabledViaApplicationProperty ()

Whether outgoing mail is currently disabled via the application property.

Returns
  • true, if outgoing mail is disabled. Otherwise, false.
See Also

public boolean isEnabled ()

Whether outgoing mail is currently enabled.

Returns
  • true, if outgoing mail is enabled. Otherwise, false.

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.