This is an automated email from the git hooks/post-receive script. New commit to branch feature/44_several_email_address in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit f9cdab49b012e83a7e7a3c2f09c94d0729179ef8 Author: Kevin Morin <morin@codelutin.com> Date: Thu Oct 5 10:46:13 2017 +0200 fichier oublié --- .../entity/PollenUserEmailAddressTopiaDao.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pollen-persistence/src/main/java/org/chorem/pollen/persistence/entity/PollenUserEmailAddressTopiaDao.java b/pollen-persistence/src/main/java/org/chorem/pollen/persistence/entity/PollenUserEmailAddressTopiaDao.java new file mode 100644 index 00000000..df319654 --- /dev/null +++ b/pollen-persistence/src/main/java/org/chorem/pollen/persistence/entity/PollenUserEmailAddressTopiaDao.java @@ -0,0 +1,21 @@ +package org.chorem.pollen.persistence.entity; + +import java.util.HashMap; +import java.util.Map; + +public class PollenUserEmailAddressTopiaDao extends AbstractPollenUserEmailAddressTopiaDao<PollenUserEmailAddress> { + + public boolean emailExists(String email) { + return forEmailAddressEquals(email).exists(); + } + + public PollenUserEmailAddress findEmailAddressByToken(String token) { + String hql = newFromClause() + + " WHERE " + PollenUserEmailAddress.PROPERTY_ACTIVATION_TOKEN + "." + PollenToken.PROPERTY_TOKEN + + " = :token"; + Map<String, Object> params = new HashMap<>(); + params.put("token", token); + return findUniqueOrNull(hql, params); + } + +} //PollenUserEmailAddressTopiaDao -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.