[pollen] branch develop updated (c2e652a -> ec808fc)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See http://git.chorem.org/pollen.git from c2e652a fix version of bootstrap-datetimepicker new ec808fc email notification The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit ec808fc8c02ca1182a5571bdd560b8a0e2b71e12 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Aug 22 16:38:54 2014 +0200 email notification Summary of changes: .../services/service/NotificationService.java | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See http://git.chorem.org/pollen.git commit ec808fc8c02ca1182a5571bdd560b8a0e2b71e12 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Aug 22 16:38:54 2014 +0200 email notification --- .../services/service/NotificationService.java | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/service/NotificationService.java b/pollen-services/src/main/java/org/chorem/pollen/services/service/NotificationService.java index 97f8c7d..250bbec 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/service/NotificationService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/service/NotificationService.java @@ -27,6 +27,10 @@ import org.chorem.pollen.persistence.entity.FavoriteList; import org.chorem.pollen.persistence.entity.Poll; import org.chorem.pollen.persistence.entity.PollenUser; import org.chorem.pollen.persistence.entity.Vote; +import org.chorem.pollen.services.service.mail.EmailService; +import org.chorem.pollen.services.service.mail.PollClosedEmail; +import org.chorem.pollen.services.service.mail.PollCreatedEmail; +import org.chorem.pollen.services.service.mail.UserAccountCreatedEmail; /** * Created on 4/30/14. @@ -37,7 +41,12 @@ import org.chorem.pollen.persistence.entity.Vote; public class NotificationService extends PollenServiceSupport { public void onUserCreated(PollenUser user, boolean generatePassword) { - // TODO + + EmailService emailService = getEmailService(); + UserAccountCreatedEmail email = emailService.newUserAccountCreatedEmail(getLocale(), user); + //TODO Add tos and bccs + emailService.send(email); + } public void onUserEdited(PollenUser user) { @@ -58,6 +67,11 @@ public class NotificationService extends PollenServiceSupport { public void onUserLostPasswordAsked(PollenUser user, String newPassword) { + EmailService emailService = getEmailService(); + UserAccountCreatedEmail email = emailService.newUserAccountCreatedEmail(getLocale(), user); + //TODO Add tos and bccs + emailService.send(email); + } public void onFavoriteListAdded(PollenUser user, FavoriteList favoriteList) { @@ -74,6 +88,11 @@ public class NotificationService extends PollenServiceSupport { public void onPollCreated(Poll poll) { + EmailService emailService = getEmailService(); + PollCreatedEmail email = emailService.newPollCreatedEmail(getLocale(), poll); + //TODO Add tos and bccs + emailService.send(email); + } public void onPollEdited(Poll poll) { @@ -86,6 +105,11 @@ public class NotificationService extends PollenServiceSupport { public void onPollClosed(Poll poll) { + EmailService emailService = getEmailService(); + PollClosedEmail email = emailService.newPollClosedEmail(getLocale(), poll); + //TODO Add tos and bccs + emailService.send(email); + } public void onChoiceAdded(Poll poll, Choice choice) { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm