@ExperimentalApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface CustomerNotificationSubscriptionService
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,URI> |
getUnsubscribeCustomerNotificationUri(CheckedUser recipient,
com.atlassian.jira.issue.Issue issue)
Provides a URL that can be included in any customer email notifications.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> |
isSubscribedCustomerNotifications(CheckedUser recipient,
com.atlassian.jira.issue.Issue issue)
Given a user and issue, return whether user should be sent new customer notifcations.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Boolean> isSubscribedCustomerNotifications(CheckedUser recipient, com.atlassian.jira.issue.Issue issue)
If the user has followed the link returned by getUnsubscribeCustomerNotificationUri(CheckedUser, Issue)
then this should return false. Otherwise expected to return true if the user is the reporter or a request participant
of the specific issue. It may also return true if user has manually subscribed themselves to receive notifications
for this issue.
This is not a definitive answer, and can be ignored if notification is deemed important enough, but in general if returns false, then should consider this, the will of the recipient to not be notified.
recipient
- The recipient to check, if should receive customer notificationsissue
- The issue that in contextcom.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,URI> getUnsubscribeCustomerNotificationUri(CheckedUser recipient, com.atlassian.jira.issue.Issue issue)
The link will allow customers to instruct the instance that they do not wish to receive further emails in regards to this specific issue
recipient
- The user who will receive this email, and who then token within URL will be assigned toissue
- The issue that should URL will instruct to no longer notify if followedCopyright © 2017 Atlassian. All rights reserved.