@PublicApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface CustomerNotificationSubscriptionService
Modifier and Type | Method and Description |
---|---|
URI |
getUnsubscribeCustomerNotificationUri(CheckedUser recipient,
com.atlassian.jira.issue.Issue issue)
Provides a URL that can be included in any customer email notifications.
|
boolean |
isSubscribedCustomerNotifications(CheckedUser recipient,
com.atlassian.jira.issue.Issue issue)
Given a user and issue, return whether user should be sent new customer notifcations.
|
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 contextServiceDeskServiceException
- on errorURI 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 followedServiceDeskServiceException
ServiceDeskServiceException
- on errorCopyright © 2024 Atlassian. All rights reserved.