@PublicApi
public interface NotificationSchemeService
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<NotificationScheme> |
getNotificationScheme(ApplicationUser user,
Long id)
Returns the notification scheme for given id.
|
ServiceOutcome<NotificationScheme> |
getNotificationSchemeForProject(ApplicationUser user,
Long projectId)
Returns a notification scheme for the given project identified by the project's id.
|
ServiceOutcome<NotificationScheme> |
getNotificationSchemeForProject(ApplicationUser user,
String projectKey)
Returns a notification scheme for the given project identified by the project's key.
|
Page<NotificationScheme> |
getNotificationSchemes(ApplicationUser user,
PageRequest pageRequest)
Returns a page with notification schemes for the given
PageRequest ordered by name. |
ServiceOutcome<NotificationScheme> getNotificationScheme(ApplicationUser user, Long id)
user
- user who requests the access to the notification schemeid
- id of the notification scheme to retrievePage<NotificationScheme> getNotificationSchemes(ApplicationUser user, @Nonnull PageRequest pageRequest)
PageRequest
ordered 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.user
- user who requests access to notification schemes.pageRequest
- information about the desired number of results and theirs offset.ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, Long projectId)
user
- user who requests the access to the notification schemeprojectId
- id of the project for which the associated notification scheme will be returnedgetNotificationScheme(ApplicationUser, Long)
,
getNotificationSchemeForProject(ApplicationUser, String)
ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, String projectKey)
user
- user who requests the access to the notification schemeprojectKey
- key of the project for which the associated notification scheme will be returnedgetNotificationScheme(ApplicationUser, Long)
,
getNotificationSchemeForProject(ApplicationUser, Long)
Copyright © 2002-2017 Atlassian. All Rights Reserved.