CopaServer
Change of Plan Application
 All Classes Functions Pages
Public Member Functions | Static Public Attributes | List of all members
unicopa.copa.server.notification.EmailNotificationService Class Reference

This NotificationService informs users about updates by sending E-Mails. More...

Inheritance diagram for unicopa.copa.server.notification.EmailNotificationService:
Inheritance graph
Collaboration diagram for unicopa.copa.server.notification.EmailNotificationService:
Collaboration graph

Public Member Functions

 EmailNotificationService (CopaSystemContext context)
 Create a new EmailNotificationService. More...
 
void notifyClients (SingleEventUpdate update)
 Notify all users that have subscribed to get the specified SingleEventUpdate by sending an E-Mail to their registered E-Mail address. More...
 
void notifyClient (NotificationEvent event, int userID)
 The E-Mail service ignores those notification events. More...
 
- Public Member Functions inherited from unicopa.copa.server.notification.NotificationService
 NotificationService (CopaSystemContext context)
 Create a new instance of a notification service. More...
 

Static Public Attributes

static final Logger LOG
 

Additional Inherited Members

- Protected Member Functions inherited from unicopa.copa.server.notification.NotificationService
CopaSystemContext getContext ()
 Obtain the system context. More...
 

Detailed Description

This NotificationService informs users about updates by sending E-Mails.

Author
Felix Wiemuth, Philip Wendland

Constructor & Destructor Documentation

unicopa.copa.server.notification.EmailNotificationService.EmailNotificationService ( CopaSystemContext  context)

Create a new EmailNotificationService.

Reads the configuration and text templates from /email and gets an EmailService object.

Parameters
contextThe system context

Member Function Documentation

void unicopa.copa.server.notification.EmailNotificationService.notifyClient ( NotificationEvent  event,
int  userID 
)
virtual

The E-Mail service ignores those notification events.

Parameters
event
userID

Implements unicopa.copa.server.notification.NotificationService.

void unicopa.copa.server.notification.EmailNotificationService.notifyClients ( SingleEventUpdate  update)
virtual

Notify all users that have subscribed to get the specified SingleEventUpdate by sending an E-Mail to their registered E-Mail address.

The content of the E-Mail will be in the language the user specified in his settings (if available).

Parameters
updatethe SingleEventUpdate to inform about

Implements unicopa.copa.server.notification.NotificationService.

Member Data Documentation

final Logger unicopa.copa.server.notification.EmailNotificationService.LOG
static
Initial value:
= Logger
.getLogger(GoogleCloudNotificationService.class.getName())

The documentation for this class was generated from the following file: