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 |
setDisableNotifications(boolean disableNotifications) |
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 NotificationService
NotificationException
public void unSubscribeUser(String userId, String threadId) throws NotificationException
unSubscribeUser
in interface NotificationService
NotificationException
public boolean isBeenWatch(String threadId, String profileId) throws NotificationException
isBeenWatch
in interface NotificationService
NotificationException
public void notify(String type)
notify
in interface NotificationService
public List<Map> getUserSubscriptions() throws SocialException
getUserSubscriptions
in interface NotificationService
SocialException
public void changeSubscription(org.craftercms.profile.api.Profile p, String threadId, String frequency) throws NotificationException
changeSubscription
in interface NotificationService
NotificationException
public 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)
public void setDisableNotifications(boolean disableNotifications)
Copyright © 2023 CrafterCMS. All rights reserved.