From b2f1acfdc7601003c86dcfbb4c3e1255eeb27753 Mon Sep 17 00:00:00 2001 From: Notmoo Date: Mon, 31 Jul 2017 18:56:08 +0200 Subject: [PATCH] Module Core, clss Account : ajout attr password; suppr attr id, passwordHash et creationDate --- .../core/entities/user_account/Account.java | 34 ++++--------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java b/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java index 687fab3f..204d0852 100644 --- a/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java +++ b/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java @@ -9,31 +9,19 @@ import java.util.Date; * Created by Notmoo on 18/07/2017. */ public class Account implements ILoggable, Serializable { - private int id; private String username; - private String passwordHash; - private Date creationDate; + private String password; private AccountLevel permissionLevel; public Account() { } - public Account(int id, String username, String passwordHash, Date creationDate, AccountLevel permissionLevel) { - this.id = id; + public Account(String username, String password, AccountLevel permissionLevel) { this.username = username; - this.passwordHash = passwordHash; - this.creationDate = creationDate; + this.password = password; this.permissionLevel = permissionLevel; } - public int getId() { - return id; - } - - public void setId(int id) { - this.id = id; - } - public String getUsername() { return username; } @@ -42,20 +30,12 @@ public class Account implements ILoggable, Serializable { this.username = username; } - public String getPasswordHash() { - return passwordHash; + public String getPassword() { + return password; } - public void setPasswordHash(String passwordHash) { - this.passwordHash = passwordHash; - } - - public Date getCreationDate() { - return creationDate; - } - - public void setCreationDate(Date creationDate) { - this.creationDate = creationDate; + public void setPassword(String password) { + this.password = password; } public AccountLevel getPermissionLevel() {