public class DefaultNotificationSchemeService extends Object implements NotificationSchemeService
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PAGE_RESULT |
Constructor and Description |
---|
DefaultNotificationSchemeService(NotificationSchemeManager notificationSchemeManager,
EventTypeManager eventTypeManager,
UserManager userManager,
GroupManager groupManager,
ProjectRoleManager projectRoleManager,
CustomFieldManager customFieldManager,
PermissionManager permissionManager,
GlobalPermissionManager globalPermissionManager,
I18nHelper i18n,
ProjectManager projectManager) |
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. |
public static final int MAX_PAGE_RESULT
public DefaultNotificationSchemeService(NotificationSchemeManager notificationSchemeManager, EventTypeManager eventTypeManager, UserManager userManager, GroupManager groupManager, ProjectRoleManager projectRoleManager, CustomFieldManager customFieldManager, PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager, I18nHelper i18n, ProjectManager projectManager)
public ServiceOutcome<NotificationScheme> getNotificationScheme(ApplicationUser user, @Nonnull Long id)
NotificationSchemeService
getNotificationScheme
in interface NotificationSchemeService
user
- user who requests the access to the notification schemeid
- id of the notification scheme to retrievepublic Page<NotificationScheme> getNotificationSchemes(ApplicationUser user, @Nonnull PageRequest pageRequest)
NotificationSchemeService
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.getNotificationSchemes
in interface NotificationSchemeService
user
- user who requests access to notification schemes.pageRequest
- information about the desired number of results and theirs offset.public ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, @Nonnull Long projectId)
NotificationSchemeService
getNotificationSchemeForProject
in interface NotificationSchemeService
user
- user who requests the access to the notification schemeprojectId
- id of the project for which the associated notification scheme will be returnedNotificationSchemeService.getNotificationScheme(ApplicationUser, Long)
,
NotificationSchemeService.getNotificationSchemeForProject(ApplicationUser, String)
public ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, @Nonnull String projectKey)
NotificationSchemeService
getNotificationSchemeForProject
in interface NotificationSchemeService
user
- user who requests the access to the notification schemeprojectKey
- key of the project for which the associated notification scheme will be returnedNotificationSchemeService.getNotificationScheme(ApplicationUser, Long)
,
NotificationSchemeService.getNotificationSchemeForProject(ApplicationUser, Long)
Copyright © 2002-2019 Atlassian. All Rights Reserved.