Class NotificationServiceImpl
java.lang.Object
org.craftercms.social.services.notification.impl.NotificationServiceImpl
- All Implemented Interfaces:
NotificationService
-
Field Summary
Fields inherited from interface org.craftercms.social.services.notification.NotificationService
DAILY, INSTANT, WEEKLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeSubscription(org.craftercms.profile.api.Profile p, String threadId, String frequency) protected DategetStartDateByType(String type) booleanisBeenWatch(String threadId, String profileId) voidvoidsetAuditRepository(AuditRepositoryImpl auditRepository) voidsetDisableNotifications(boolean disableNotifications) voidsetInstantTrigger(org.quartz.SimpleTrigger instantTrigger) voidsetNotificationDigestServiceImpl(NotificationDigestService notificationDigestService) voidsetProfileAggregatorImpl(ProfileAggregator profileAggregator) voidsetWatchedThreadsRepository(WatchedThreadsRepositoryImpl watchedThreadsRepository) voidsubscribeUser(org.craftercms.profile.api.Profile profile, String threadId, String frequency) voidunSubscribeUser(String userId, String threadId)
-
Constructor Details
-
NotificationServiceImpl
public NotificationServiceImpl()
-
-
Method Details
-
subscribeUser
public void subscribeUser(org.craftercms.profile.api.Profile profile, String threadId, String frequency) throws NotificationException - Specified by:
subscribeUserin interfaceNotificationService- Throws:
NotificationException
-
unSubscribeUser
- Specified by:
unSubscribeUserin interfaceNotificationService- Throws:
NotificationException
-
isBeenWatch
- Specified by:
isBeenWatchin interfaceNotificationService- Throws:
NotificationException
-
notify
- Specified by:
notifyin interfaceNotificationService
-
getUserSubscriptions
- Specified by:
getUserSubscriptionsin interfaceNotificationService- Throws:
SocialException
-
changeSubscription
public void changeSubscription(org.craftercms.profile.api.Profile p, String threadId, String frequency) throws NotificationException - Specified by:
changeSubscriptionin interfaceNotificationService- Throws:
NotificationException
-
getStartDateByType
-
setInstantTrigger
public void setInstantTrigger(org.quartz.SimpleTrigger instantTrigger) -
setAuditRepository
-
setWatchedThreadsRepository
-
setProfileAggregatorImpl
-
setNotificationDigestServiceImpl
-
setDisableNotifications
public void setDisableNotifications(boolean disableNotifications)
-