From: Roland Haeder Date: Tue, 6 Oct 2015 06:17:35 +0000 (+0200) Subject: sorted members X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=677d6a799bde367675000145614795411041eccf;p=juser-core.git sorted members Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index 12580f1..b460de3 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -55,6 +55,14 @@ public class LoginUser implements User { @OneToOne (targetEntity = UserContact.class, optional = false) private Contact contact; + /** + * Account status + */ + @Basic (optional = false) + @Column (name = "user_account_status", nullable = false) + @Enumerated (value = EnumType.STRING) + private UserAccountStatus userAccountStatus; + /** * Confirmation key */ @@ -96,14 +104,6 @@ public class LoginUser implements User { @Column (name = "user_password_hash") private String userPasswordHash; - /** - * Account status - */ - @Basic (optional = false) - @Column (name = "user_account_status", nullable = false) - @Enumerated (EnumType.STRING) - private UserAccountStatus userAccountStatus; - /** * Default constructor */ @@ -134,6 +134,16 @@ public class LoginUser implements User { this.contact = contact; } + @Override + public UserAccountStatus getUserAccountStatus () { + return this.userAccountStatus; + } + + @Override + public void setUserAccountStatus (final UserAccountStatus userAccountStatus) { + this.userAccountStatus = userAccountStatus; + } + @Override public String getUserConfirmKey () { return this.userConfirmKey; @@ -193,14 +203,4 @@ public class LoginUser implements User { public void setUserPasswordHash (final String userPasswordHash) { this.userPasswordHash = userPasswordHash; } - - @Override - public UserAccountStatus getUserAccountStatus () { - return this.userAccountStatus; - } - - @Override - public void setUserAccountStatus (final UserAccountStatus userAccountStatus) { - this.userAccountStatus = userAccountStatus; - } } diff --git a/src/org/mxchange/jusercore/model/user/User.java b/src/org/mxchange/jusercore/model/user/User.java index b397f11..01941bc 100644 --- a/src/org/mxchange/jusercore/model/user/User.java +++ b/src/org/mxchange/jusercore/model/user/User.java @@ -49,6 +49,20 @@ public interface User extends Serializable { */ public void setContact (final Contact contact); + /** + * Getter for account status + *

+ * @return Account status + */ + public UserAccountStatus getUserAccountStatus (); + + /** + * Setter for account status + *

+ * @param customerStatus Account status + */ + public void setUserAccountStatus (final UserAccountStatus customerStatus); + /** * Getter for confirmation key *

@@ -132,18 +146,4 @@ public interface User extends Serializable { * @param customerPasswordHash Password hash */ public void setUserPasswordHash (final String customerPasswordHash); - - /** - * Getter for account status - *

- * @return Account status - */ - public UserAccountStatus getUserAccountStatus (); - - /** - * Setter for account status - *

- * @param customerStatus Account status - */ - public void setUserAccountStatus (final UserAccountStatus customerStatus); }