}
/**
- * Constructor with user, email address and creation timestamp to set
+ * Constructor with all fields to set
* <p>
+ * @param emailChangeId Email change id
* @param user User instance
- * @param emailAddress Email address to queue
+ * @param emailAddress Email address
* @param emailChangeCreated Timestamp for creation
+ * @param emailChangeStatus Email change status
+ * @param emailChangeDone When this entry has been done
+ * @param emailChangeHash Email change hash
*/
- public EmailAddressChange (final User user, final String emailAddress, final Calendar emailChangeCreated) {
- // Call super constructor
+ public EmailAddressChange (final Long emailChangeId, final User user, final String emailAddress, final Calendar emailChangeCreated, final EmailChangeStatus emailChangeStatus, final Calendar emailChangeDone, final String emailChangeHash) {
+ // Call other constructor
+ this(user, emailAddress);
+
+ // Set remaining
+ this.emailChangeId = emailChangeId;
+ this.emailChangeCreated = emailChangeCreated;
+ this.emailChangeStatus = emailChangeStatus;
+ this.emailChangeDone = emailChangeDone;
+ this.emailChangeHash = emailChangeHash;
+ }
+
+ /**
+ * Constructor with user and email address
+ * <p>
+ * @param user User instance
+ * @param emailAddress Email address
+ */
+ public EmailAddressChange (final User user, final String emailAddress) {
+ // Call other constructor
this();
// Set all
- this.emailAddress = emailAddress;
this.emailChangeUser = user;
- this.emailChangeCreated = emailChangeCreated;
+ this.emailAddress = emailAddress;
}
@Override