19 package org.turro.contacts;
21 import java.io.Serializable;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25 import org.turro.mail.MailValidator;
26 import org.turro.contacts.db.ContactsPU;
27 import org.turro.contacts.relation.ValidationRule;
28 import org.turro.elephant.security.IUser;
29 import org.turro.jpa.entity.IDaoEntity;
30 import org.zkoss.lang.Strings;
40 @Column(name=
"IDENTIFIER")
43 private String providedEmail;
45 private boolean validated;
62 this.providedEmail = providedEmail;
70 this.validated = validated;
96 return !Strings.isBlank(providedEmail) && !MailValidator.single().silently(providedEmail);
107 rv.id = relation.
getId();
109 rv.providedEmail = email !=
null ? email.
getValue() :
null;
static final String CONNECTOR_EMAIL