From e1c19f6b0fcad3e117c27fa87a159652daf5d690 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 22 Oct 2015 10:01:41 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20added=20last=20locked=20reason?= =?utf8?q?=20-=20updated=20jar(s)=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcontacts-core.jar | Bin 20873 -> 21164 bytes .../jusercore/model/user/LoginUser.java | 34 +++++++++++++----- .../mxchange/jusercore/model/user/User.java | 18 ++++++++-- 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index 6b3619e1b879be6ab4b7b20ecf765dde842559b6..39ba8b2afd0485a67193d21df02299ba987fe176 100644 GIT binary patch delta 5466 zcma)A33yc175>jmlF3YNm=HpO2}wv;l1zYvKuE~SW*~$tkch0Zga{~LZBn(?b_%po z*CJ1`r4|&iZh)2vi&_`7t=2*-)uN@JcN%AvTXc3bS7+x6-P~s6P?^r#sY>UYXp+v~ zpxS;sXj=SdujIMBfXi#-x~hH69?bBd$%C0jReDuuo9lFZzJEnm&y;J{_AKq}=~&gX zx{KiNj;=Ab4c=gQy{}VI=xuL2UE&Ag2-WDX^BQF9ycW5}IbZ%LZfd|Z0EFqBy3iQq z&a}|g+b3if0rD?3mQud4Fex**%7;cu^I`-Ilq6k}3=a)Tq)U8=r%WH0vyxCiSw0#} z**?mlTqzEbhCGq-MH(v7Fp-9fG(w~TkqSjB5-A{3u}C9D8YR-`B_fuHSSr#Ok;+6G zE7CZT%0(J4QiVvBB2Dm6m4~WDtdYtZA0|?*6o>ezj_M`R#e8F}s%R3YbTU(yaIk7E~Mq;axtq_JyAS?+FHuJ9j<=LG*%)Fr{& zhy5P9Qqc-pX&jm{z(~paIM~Shp#U>55SeJgOx`2SdXKblJwxR3Y%ZsBsh#DHZd`^r zEL`4&xtPbb?19xMhf531K8t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9SYP#fc-Kbo-l zIkASq{!Rl5%Q@l?i&_+6#4DnRFGwcm7&$&y?*^otN9rv|0xmOO!sfvHI0SmrmUPLt)BwCuQ2lf diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index c8a56c4..b69c1db 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -29,6 +29,7 @@ import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.JoinColumn; +import javax.persistence.Lob; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.OneToOne; @@ -124,11 +125,18 @@ public class LoginUser implements User { private Long userId; /** - * "locked" timestamp + * Last "locked" timestamp */ @Temporal (TemporalType.TIMESTAMP) - @Column (name = "user_locked") - private Calendar userLocked; + @Column (name = "user_last_locked") + private Calendar userLastLocked; + + /** + * Last locked reason + */ + @Lob + @Column(name = "user_last_locked_reason") + private String lastLockedReason; /** * User name @@ -163,7 +171,7 @@ public class LoginUser implements User { this.setUserEncryptedPassword(user.getUserEncryptedPassword()); this.setUserAccountStatus(user.getUserAccountStatus()); this.setUserCreated(user.getUserCreated()); - this.setUserLocked(user.getUserLocked()); + this.setUserLastLocked(user.getUserLastLocked()); } @Override @@ -181,6 +189,16 @@ public class LoginUser implements User { (Objects.equals(this.getUserId(), other.getUserId()))); } + @Override + public String getLastLockedReason () { + return this.lastLockedReason; + } + + @Override + public void setLastLockedReason (final String lastLockedReason) { + this.lastLockedReason = lastLockedReason; + } + @Override public UserAccountStatus getUserAccountStatus () { return this.userAccountStatus; @@ -242,13 +260,13 @@ public class LoginUser implements User { } @Override - public Calendar getUserLocked () { - return this.userLocked; + public Calendar getUserLastLocked () { + return this.userLastLocked; } @Override - public void setUserLocked (final Calendar userLocked) { - this.userLocked = userLocked; + public void setUserLastLocked (final Calendar userLastLocked) { + this.userLastLocked = userLastLocked; } @Override diff --git a/src/org/mxchange/jusercore/model/user/User.java b/src/org/mxchange/jusercore/model/user/User.java index 9bc1e8f..04c7a37 100644 --- a/src/org/mxchange/jusercore/model/user/User.java +++ b/src/org/mxchange/jusercore/model/user/User.java @@ -125,14 +125,28 @@ public interface User extends Serializable { *

* @return "locked" timestamp */ - Calendar getUserLocked (); + Calendar getUserLastLocked (); /** * Getter for "locked" timestamp *

* @param userLocked "locked" timestamp */ - void setUserLocked (final Calendar userLocked); + void setUserLastLocked (final Calendar userLocked); + + /** + * Getter for reason of last locked + *

+ * @return Reason of last locked + */ + public String getLastLockedReason (); + + /** + * Setter for reason of last locked + *

+ * @param lastLockedReason Reason of last locked + */ + public void setLastLockedReason (final String lastLockedReason); /** * Getter for user name -- 2.39.5