org.silverpeas.publication.dateReminder
Class PublicationDateReminderProcess

java.lang.Object
  extended by org.silverpeas.publication.dateReminder.PublicationDateReminderProcess
All Implemented Interfaces:
DateReminderProcess

@Service
public class PublicationDateReminderProcess
extends Object
implements DateReminderProcess

An implementation of DateReminderProcess. Process the date reminder that reference a publication in Silverpeas, such publication being represented by a PublicationDetail instance.

Author:
Cécile Bonin
See Also:
DateReminderProcessRegistration, PublicationDateReminderUserNotification

Constructor Summary
PublicationDateReminderProcess()
           
 
Method Summary
protected  NotificationSender getNotificationSender(String componentInstanceId)
          Constructs a NotificationSender from an instanceId.
protected  void notifyUsers(NotificationMetaData notification)
          Notifies the specified users, identified by their identifier, with the specified notification information.
 EntityReference perform(PersistentResourceDateReminder resourceDateReminder)
          Perform the date reminder
 void register()
           
 void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicationDateReminderProcess

public PublicationDateReminderProcess()
Method Detail

register

@PostConstruct
public void register()

unregister

@PreDestroy
public void unregister()

getNotificationSender

protected NotificationSender getNotificationSender(String componentInstanceId)
Constructs a NotificationSender from an instanceId.

Parameters:
componentInstanceId - the instanceId of the component.
Returns:
NotificationSender

notifyUsers

protected void notifyUsers(NotificationMetaData notification)
                    throws NotificationManagerException
Notifies the specified users, identified by their identifier, with the specified notification information.

Parameters:
notification - the notification information.
Throws:
NotificationManagerException - if the notification of the recipients fail.

perform

public EntityReference perform(PersistentResourceDateReminder resourceDateReminder)
                        throws NotificationManagerException
Description copied from interface: DateReminderProcess
Perform the date reminder

Specified by:
perform in interface DateReminderProcess
Returns:
the resource
Throws:
NotificationManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.