|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itracker.services.implementations.NotificationServiceImpl
public class NotificationServiceImpl
| Constructor Summary | |
|---|---|
NotificationServiceImpl()
|
|
NotificationServiceImpl(EmailService emailService,
ProjectService projectService,
NotificationDAO notificationDao,
IssueActivityDAO issueActivityDao,
IssueDAO issueDao)
|
|
| Method Summary | |
|---|---|
boolean |
addIssueNotification(Notification notification)
TODO: whats its use? Moved from IssueService, could not find out the purpose of this method. |
EmailService |
getEmailService()
|
IssueActivityDAO |
getIssueActivityDao()
|
IssueDAO |
getIssueDao()
|
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. |
ProjectService |
getProjectService()
|
boolean |
hasIssueNotification(Issue issue,
Integer userId)
|
boolean |
hasIssueNotification(Issue issue,
Integer userId,
Notification.Role role)
|
boolean |
removeIssueNotification(Integer notificationId)
Retrieves an array of issue notifications. |
void |
sendNotification(Integer notificationId,
Notification.Type type,
String url)
TODO url should be automatically generated by configuration (baseurl) and notification (issue-id). |
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)
|
void |
sendNotification(Notification notification,
Notification.Type type,
String url)
|
void |
setEmailService(EmailService emailService)
|
void |
setIssueActivityDao(IssueActivityDAO issueActivityDao)
|
void |
setIssueDao(IssueDAO issueDao)
|
void |
setNotificationDao(NotificationDAO notificationDao)
|
void |
setProjectService(ProjectService projectService)
|
void |
updateIssueActivityNotification(Issue issue,
Boolean notificationSent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationServiceImpl()
public NotificationServiceImpl(EmailService emailService,
ProjectService projectService,
NotificationDAO notificationDao,
IssueActivityDAO issueActivityDao,
IssueDAO issueDao)
| Method Detail |
|---|
public void sendNotification(Notification notification,
Notification.Type type,
String url)
sendNotification in interface NotificationService
public void sendNotification(Issue issue,
Notification.Type type,
String baseURL)
sendNotification in interface NotificationServicepublic void setEmailService(EmailService emailService)
public void updateIssueActivityNotification(Issue issue,
Boolean notificationSent)
public boolean addIssueNotification(Notification notification)
NotificationServiceIssueService, could not find out the purpose of this method. What will happen with this added Notification?
addIssueNotification in interface NotificationService
public List<Notification> getIssueNotifications(Issue issue,
boolean primaryOnly,
boolean activeOnly)
getIssueNotifications in interface NotificationServicepublic List<Notification> getIssueNotifications(Issue issue)
NotificationService
getIssueNotifications in interface NotificationServicepublic List<Notification> getPrimaryIssueNotifications(Issue issue)
NotificationService
getPrimaryIssueNotifications in interface NotificationService
public boolean hasIssueNotification(Issue issue,
Integer userId)
hasIssueNotification in interface NotificationService
public boolean hasIssueNotification(Issue issue,
Integer userId,
Notification.Role role)
hasIssueNotification in interface NotificationServiceissue - userId - role -
public boolean removeIssueNotification(Integer notificationId)
NotificationService
removeIssueNotification in interface NotificationServiceorg.itracker.services.implementations.IssueServiceImpl#getPrimaryIssueNotifications
public void sendNotification(Issue issue,
Notification.Type type,
String baseURL,
javax.mail.internet.InternetAddress[] receipients,
Integer lastModifiedDays)
sendNotification in interface NotificationServicepublic EmailService getEmailService()
public ProjectService getProjectService()
public void setProjectService(ProjectService projectService)
projectService - the projectService to setpublic void setNotificationDao(NotificationDAO notificationDao)
notificationDao - the notificationDao to set
public void sendNotification(Integer notificationId,
Notification.Type type,
String url)
notificationId - url - public IssueActivityDAO getIssueActivityDao()
public void setIssueActivityDao(IssueActivityDAO issueActivityDao)
issueActivityDao - the issueActivityDao to setpublic IssueDAO getIssueDao()
public void setIssueDao(IssueDAO issueDao)
issueDao - the issueDao to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||