public class

DefaultNotificationSchemeService

extends Object
implements NotificationSchemeService
java.lang.Object
   ↳ com.atlassian.jira.notification.DefaultNotificationSchemeService

Summary

Constants
int MAX_PAGE_RESULT
Public Constructors
DefaultNotificationSchemeService(NotificationSchemeManager notificationSchemeManager, EventTypeManager eventTypeManager, UserManager userManager, GroupManager groupManager, ProjectRoleManager projectRoleManager, CustomFieldManager customFieldManager, PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager, I18nHelper i18n, ProjectManager projectManager)
Public Methods
ServiceOutcome<NotificationScheme> getNotificationScheme(ApplicationUser user, Long id)
Returns the notification scheme for given id.
ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, String projectKey)
Returns a notification scheme for the given project identified by the project's key.
ServiceOutcome<NotificationScheme> getNotificationSchemeForProject(ApplicationUser user, Long projectId)
Returns a notification scheme for the given project identified by the project's id.
Page<NotificationScheme> getNotificationSchemes(ApplicationUser user, PageRequest pageRequest)
Returns a page with notification schemes for the given PageRequest ordered by name.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.notification.NotificationSchemeService

Constants

public static final int MAX_PAGE_RESULT

Constant Value: 50 (0x00000032)

Public Constructors

public DefaultNotificationSchemeService (NotificationSchemeManager notificationSchemeManager, EventTypeManager eventTypeManager, UserManager userManager, GroupManager groupManager, ProjectRoleManager projectRoleManager, CustomFieldManager customFieldManager, PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager, I18nHelper i18n, ProjectManager projectManager)

Public Methods

public ServiceOutcome<NotificationScheme> getNotificationScheme (ApplicationUser user, Long id)

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 scheme
id id of the notification scheme to retrieve
Returns
  • information about the notification scheme.

public 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 scheme
projectKey key of the project for which the associated notification scheme will be returned
Returns
  • information about the notification scheme.

public 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 scheme
projectId id of the project for which the associated notification scheme will be returned
Returns
  • information about the notification scheme.

public Page<NotificationScheme> getNotificationSchemes (ApplicationUser user, PageRequest pageRequest)

Returns a page with notification schemes for the given 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.

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.