public class NotificationServiceImpl extends Object implements NotificationService
DAILY, INSTANT, WEEKLY| Constructor and Description |
|---|
NotificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Date |
getStartDateByType(String type) |
boolean |
isBeenWatch(String threadId,
String profileId) |
void |
notify(String type) |
void |
setAuditRepository(AuditRepositoryImpl auditRepository) |
void |
setInstantTrigger(org.quartz.SimpleTrigger instantTrigger) |
void |
setNotificationDigestServiceImpl(NotificationDigestService notificationDigestService) |
void |
setProfileAggregatorImpl(ProfileAggregator profileAggregator) |
void |
setWatchedThreadsRepository(WatchedThreadsRepositoryImpl watchedThreadsRepository) |
void |
subscribeUser(String userId,
String threadId,
String frequency) |
void |
unSubscribeUser(String userId,
String threadId) |
public void subscribeUser(String userId, String threadId, String frequency) throws NotificationException
subscribeUser in interface NotificationServiceNotificationExceptionpublic void unSubscribeUser(String userId, String threadId) throws NotificationException
unSubscribeUser in interface NotificationServiceNotificationExceptionpublic boolean isBeenWatch(String threadId, String profileId) throws NotificationException
isBeenWatch in interface NotificationServiceNotificationExceptionpublic void notify(String type)
notify in interface NotificationServicepublic void setInstantTrigger(org.quartz.SimpleTrigger instantTrigger)
public void setAuditRepository(AuditRepositoryImpl auditRepository)
public void setWatchedThreadsRepository(WatchedThreadsRepositoryImpl watchedThreadsRepository)
public void setProfileAggregatorImpl(ProfileAggregator profileAggregator)
public void setNotificationDigestServiceImpl(NotificationDigestService notificationDigestService)
Copyright © 2014 CrafterCMS. All Rights Reserved.