Package org.dspace.subscriptions
Class SubscriptionEmailNotificationServiceImpl
- java.lang.Object
-
- org.dspace.subscriptions.SubscriptionEmailNotificationServiceImpl
-
- All Implemented Interfaces:
SubscriptionEmailNotificationService
public class SubscriptionEmailNotificationServiceImpl extends Object implements SubscriptionEmailNotificationService
Implementation ofDSpaceRunnableto find subscribed objects and send notification mails about them- Author:
- alba aliu
-
-
Constructor Summary
Constructors Constructor Description SubscriptionEmailNotificationServiceImpl(Map<String,DSpaceObjectUpdates> contentUpdates, Map<String,SubscriptionGenerator> subscriptionType2generators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getSupportedSubscriptionTypes()returns a set of supported SubscriptionTypesvoidperform(Context context, DSpaceRunnableHandler handler, String subscriptionType, String frequency)Performs sending of e-mails to subscribers by frequency value and SubscriptionType
-
-
-
Constructor Detail
-
SubscriptionEmailNotificationServiceImpl
public SubscriptionEmailNotificationServiceImpl(Map<String,DSpaceObjectUpdates> contentUpdates, Map<String,SubscriptionGenerator> subscriptionType2generators)
-
-
Method Detail
-
perform
public void perform(Context context, DSpaceRunnableHandler handler, String subscriptionType, String frequency)
Description copied from interface:SubscriptionEmailNotificationServicePerforms sending of e-mails to subscribers by frequency value and SubscriptionType- Specified by:
performin interfaceSubscriptionEmailNotificationService- Parameters:
context- DSpace context objecthandler- Applicable DSpaceRunnableHandlersubscriptionType- Currently supported only "content"frequency- Valid values include: D (Day), W (Week) and M (Month)
-
getSupportedSubscriptionTypes
public Set<String> getSupportedSubscriptionTypes()
Description copied from interface:SubscriptionEmailNotificationServicereturns a set of supported SubscriptionTypes- Specified by:
getSupportedSubscriptionTypesin interfaceSubscriptionEmailNotificationService
-
-