NotificationServiceImpl
public interface NotificationService
Modifier and Type | Method | Description |
---|---|---|
boolean |
addIssueNotification(Notification notification) |
TODO: whats its use?
|
List<Notification> |
getIssueNotifications(Issue issue) |
Retrieves all notifications for an issue where the notification's user is also active.
|
List<Notification> |
getIssueNotifications(Issue issue,
boolean primaryOnly,
boolean activeOnly) |
|
List<Notification> |
getPrimaryIssueNotifications(Issue issue) |
Retrieves the primary issue notifications.
|
boolean |
hasIssueNotification(Issue issue,
Integer userId) |
|
boolean |
hasIssueNotification(Issue issue,
Integer userId,
Notification.Role role) |
|
boolean |
hasIssueNotification(Issue issue,
String login) |
|
boolean |
hasIssueNotification(Issue issue,
String login,
Notification.Role role) |
|
boolean |
removeIssueNotification(Integer notificationId) |
Retrieves an array of issue notifications.
|
void |
sendNotification(Issue issue,
Notification.Type type,
String baseURL) |
|
void |
sendNotification(Issue issue,
Notification.Type type,
String baseURL,
javax.mail.internet.InternetAddress[] receipients,
Integer lastModifiedDays) |
Deprecated.
|
void |
sendNotification(Notification notification,
Notification.Type type,
String baseURL) |
|
void |
sendReminder(Issue issue,
User user,
String baseURL,
int issueAge) |
List<Notification> getPrimaryIssueNotifications(Issue issue)
issue
- the issue to find notifications forList<Notification> getIssueNotifications(Issue issue)
issue
- the issue to find notifications forboolean removeIssueNotification(Integer notificationId)
notificationId
- id of the notificationList<Notification> getIssueNotifications(Issue issue, boolean primaryOnly, boolean activeOnly)
issue
- primaryOnly
- activeOnly
- boolean hasIssueNotification(Issue issue, Integer userId)
issue
- userId
- boolean hasIssueNotification(Issue issue, String login, Notification.Role role)
boolean hasIssueNotification(Issue issue, Integer userId, Notification.Role role)
void sendNotification(Notification notification, Notification.Type type, String baseURL)
notification
- type
- baseURL
- void sendNotification(Issue issue, Notification.Type type, String baseURL)
issue
- type
- baseURL
- @Deprecated void sendNotification(Issue issue, Notification.Type type, String baseURL, javax.mail.internet.InternetAddress[] receipients, Integer lastModifiedDays)
issue
- type
- baseURL
- receipients
- lastModifiedDays
- boolean addIssueNotification(Notification notification)
IssueService
, could not find out the purpose of this method. What will happen with this added Notification
?Copyright © 2002–2019 itracker. All rights reserved.