diff --git a/orcid-core/src/main/java/org/orcid/pojo/ajaxForm/Email.java b/orcid-core/src/main/java/org/orcid/pojo/ajaxForm/Email.java index 7b65d9f319..8e6f7b25b5 100644 --- a/orcid-core/src/main/java/org/orcid/pojo/ajaxForm/Email.java +++ b/orcid-core/src/main/java/org/orcid/pojo/ajaxForm/Email.java @@ -32,6 +32,8 @@ public class Email implements ErrorsInterface { private Date lastModified; + private Date verificationDate; + private List errors = new ArrayList(); public static Email valueOf(org.orcid.jaxb.model.v3.release.record.Email e) { @@ -76,6 +78,14 @@ public static Email valueOf(org.orcid.jaxb.model.v3.release.record.Email e) { lastModifiedDate.setDay(String.valueOf(e.getLastModifiedDate().getValue().getDay())); email.setLastModified(lastModifiedDate); } + + if (e.getVerificationDate() != null) { + Date lastModifiedDate = new Date(); + lastModifiedDate.setYear(String.valueOf(e.getLastModifiedDate().getValue().getYear())); + lastModifiedDate.setMonth(String.valueOf(e.getLastModifiedDate().getValue().getMonth())); + lastModifiedDate.setDay(String.valueOf(e.getLastModifiedDate().getValue().getDay())); + email.setLastModified(lastModifiedDate); + } } return email; } @@ -187,6 +197,14 @@ public void setLastModified(Date lastModified) { this.lastModified = lastModified; } + public Date getVerificationDate() { + return verificationDate; + } + + public void setVerificationDate(Date verificationDate) { + this.verificationDate = verificationDate; + } + public List getErrors() { return errors; }