org.chorem.pollen.services.impl
Class EmailService

java.lang.Object
  extended by org.chorem.pollen.services.PollenServiceSupport
      extended by org.chorem.pollen.services.impl.EmailService
All Implemented Interfaces:
PollenService

public class EmailService
extends PollenServiceSupport


Nested Class Summary
static class EmailService.PollenEmail
           
 
Field Summary
 
Fields inherited from class org.chorem.pollen.services.PollenServiceSupport
serviceContext
 
Constructor Summary
EmailService()
           
 
Method Summary
static EmailService.PollenEmail createPollenEmail(String to, String subject, String content)
           
 void onLostPassword(UserAccount user, String newPassword)
           
 void onPollCreated(Poll poll, PollUrl voteURL, PollUrl moderateUrl, PollUrl modifURL)
           
 void onPollReminder(Poll poll, PollUrl voteURL)
           
 void onRestrictedPersonAdded(Poll poll, PollAccount account, PollUrl voteURL)
           
 void onUserCreated(UserAccount user)
           
 void onVoteAdded(Poll poll, PollUrl voteURL, PollUrl modifURL)
           
protected  void sendEmail(EmailService.PollenEmail pollenEmail)
           
protected  void sendEmail(Iterable<EmailService.PollenEmail> pollEmails)
           
 
Methods inherited from class org.chorem.pollen.services.PollenServiceSupport
commitTransaction, create, delete, flushTransaction, getConfiguration, getDAO, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailService

public EmailService()
Method Detail

onUserCreated

public void onUserCreated(UserAccount user)

onLostPassword

public void onLostPassword(UserAccount user,
                           String newPassword)

onVoteAdded

public void onVoteAdded(Poll poll,
                        PollUrl voteURL,
                        PollUrl modifURL)

onPollCreated

public void onPollCreated(Poll poll,
                          PollUrl voteURL,
                          PollUrl moderateUrl,
                          PollUrl modifURL)

onRestrictedPersonAdded

public void onRestrictedPersonAdded(Poll poll,
                                    PollAccount account,
                                    PollUrl voteURL)

onPollReminder

public void onPollReminder(Poll poll,
                           PollUrl voteURL)

sendEmail

protected void sendEmail(Iterable<EmailService.PollenEmail> pollEmails)

sendEmail

protected void sendEmail(EmailService.PollenEmail pollenEmail)

createPollenEmail

public static EmailService.PollenEmail createPollenEmail(String to,
                                                         String subject,
                                                         String content)


Copyright © 2009-2012 CodeLutin. All Rights Reserved.