Package com.atlassian.jira.mail.settings
Class MailSettings.Send
java.lang.Object
com.atlassian.jira.mail.settings.MailSettings.Send
- Enclosing interface:
- MailSettings
Represents the state of outgoing mail for this JIRA instance. This can either be enabled or disabled.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleandisable()Disables sending outgoing mail from JIRA.booleanenable()Enables sending outgoing mail from JIRA.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 date when outgoing mail was last enabled or disabled, or null if it has never been modified.booleanWhether outgoing mail is currently disabled.booleanWhether outgoing mail is currently disabled via the application property.booleanWhether outgoing mail is currently enabled.booleanWhether the outgoing mail setting can be changed from enabled to disabled, or viceversa.
-
Field Details
-
DISABLED_APPLICATION_PROPERTY
- See Also:
-
DISABLED_SYSTEM_PROPERTY_KEY
- See Also:
-
-
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
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
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:
-