public class NotificationServiceImpl extends Object implements NotificationService
DAILY, INSTANT, WEEKLY| Constructor and Description |
|---|
NotificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeSubscription(org.craftercms.profile.api.Profile p,
String threadId,
String frequency) |
protected Date |
getStartDateByType(String type) |
List<Map> |
getUserSubscriptions() |
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(org.craftercms.profile.api.Profile profile,
String threadId,
String frequency) |
void |
unSubscribeUser(String userId,
String threadId) |
public void subscribeUser(org.craftercms.profile.api.Profile profile,
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 List<Map> getUserSubscriptions() throws SocialException
getUserSubscriptions in interface NotificationServiceSocialExceptionpublic void changeSubscription(org.craftercms.profile.api.Profile p,
String threadId,
String frequency)
throws NotificationException
changeSubscription in interface NotificationServiceNotificationExceptionpublic 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 © 2015 CrafterCMS. All Rights Reserved.