Class NotificationServiceImpl
- java.lang.Object
-
- org.craftercms.social.services.notification.impl.NotificationServiceImpl
-
- All Implemented Interfaces:
NotificationService
public class NotificationServiceImpl extends Object implements NotificationService
-
-
Field Summary
-
Fields inherited from interface org.craftercms.social.services.notification.NotificationService
DAILY, INSTANT, WEEKLY
-
-
Constructor Summary
Constructors Constructor Description NotificationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
subscribeUser
public void subscribeUser(org.craftercms.profile.api.Profile profile, String threadId, String frequency) throws NotificationException
- Specified by:
subscribeUser
in interfaceNotificationService
- Throws:
NotificationException
-
unSubscribeUser
public void unSubscribeUser(String userId, String threadId) throws NotificationException
- Specified by:
unSubscribeUser
in interfaceNotificationService
- Throws:
NotificationException
-
isBeenWatch
public boolean isBeenWatch(String threadId, String profileId) throws NotificationException
- Specified by:
isBeenWatch
in interfaceNotificationService
- Throws:
NotificationException
-
notify
public void notify(String type)
- Specified by:
notify
in interfaceNotificationService
-
getUserSubscriptions
public List<Map> getUserSubscriptions() throws SocialException
- Specified by:
getUserSubscriptions
in interfaceNotificationService
- Throws:
SocialException
-
changeSubscription
public void changeSubscription(org.craftercms.profile.api.Profile p, String threadId, String frequency) throws NotificationException
- Specified by:
changeSubscription
in interfaceNotificationService
- Throws:
NotificationException
-
setInstantTrigger
public void setInstantTrigger(org.quartz.SimpleTrigger instantTrigger)
-
setAuditRepository
public void setAuditRepository(AuditRepositoryImpl auditRepository)
-
setWatchedThreadsRepository
public void setWatchedThreadsRepository(WatchedThreadsRepositoryImpl watchedThreadsRepository)
-
setProfileAggregatorImpl
public void setProfileAggregatorImpl(ProfileAggregator profileAggregator)
-
setNotificationDigestServiceImpl
public void setNotificationDigestServiceImpl(NotificationDigestService notificationDigestService)
-
setDisableNotifications
public void setDisableNotifications(boolean disableNotifications)
-
-