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 of
DSpaceRunnable to find subscribed objects and send notification mails about them- Author:
- alba aliu
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionEmailNotificationServiceImpl(Map<String, DSpaceObjectUpdates> contentUpdates, Map<String, SubscriptionGenerator> subscriptionType2generators) -
Method Summary
Modifier and TypeMethodDescriptionreturns 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 Details
-
SubscriptionEmailNotificationServiceImpl
public SubscriptionEmailNotificationServiceImpl(Map<String, DSpaceObjectUpdates> contentUpdates, Map<String, SubscriptionGenerator> subscriptionType2generators)
-
-
Method Details
-
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
Description copied from interface:SubscriptionEmailNotificationServicereturns a set of supported SubscriptionTypes- Specified by:
getSupportedSubscriptionTypesin interfaceSubscriptionEmailNotificationService
-