Package com.atlassian.jira.notification
Interface NotificationSchemeService
- All Known Implementing Classes:
DefaultNotificationSchemeService
@PublicApi
public interface NotificationSchemeService
Service providing information about notification schemes.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptiongetNotificationScheme(ApplicationUser user, Long id) Returns the notification scheme for given id.getNotificationSchemeForProject(ApplicationUser user, Long projectId) Returns a notification scheme for the given project identified by the project's id.getNotificationSchemeForProject(ApplicationUser user, String projectKey) Returns a notification scheme for the given project identified by the project's key.getNotificationSchemes(ApplicationUser user, PageRequest pageRequest) Returns a page with notification schemes for the givenPageRequestordered by name.
-
Method Details
-
getNotificationScheme
Returns the notification scheme for given id. This method executes a permission check, in order to have permissions to retrieve the notification scheme, the user is required to have permissions for administering at least one project associated with the notification scheme.- Parameters:
user- user who requests the access to the notification schemeid- id of the notification scheme to retrieve- Returns:
- information about the notification scheme.
-
getNotificationSchemes
Page<NotificationScheme> getNotificationSchemes(ApplicationUser user, @Nonnull PageRequest pageRequest) Returns a page with notification schemes for the givenPageRequestordered by name. This method executes a permission check. User is required to have administer permissions on projects associated with the scheme in order to see it.- Parameters:
user- user who requests access to notification schemes.pageRequest- information about the desired number of results and theirs offset.- Returns:
- the page with notification schemes. The page may be empty.
-
getNotificationSchemeForProject
ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, Long projectId) Returns a notification scheme for the given project identified by the project's id.- Parameters:
user- user who requests the access to the notification schemeprojectId- id of the project for which the associated notification scheme will be returned- Returns:
- information about the notification scheme.
- See Also:
-
getNotificationSchemeForProject
ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, String projectKey) Returns a notification scheme for the given project identified by the project's key.- Parameters:
user- user who requests the access to the notification schemeprojectKey- key of the project for which the associated notification scheme will be returned- Returns:
- information about the notification scheme.
- See Also:
-