Module Core, clss Account : ajout attr password; suppr attr id, passwordHash et creationDate

This commit is contained in:
Notmoo 2017-07-31 18:56:08 +02:00
parent 8d2d46d453
commit b2f1acfdc7

View File

@ -9,31 +9,19 @@ import java.util.Date;
* Created by Notmoo on 18/07/2017. * Created by Notmoo on 18/07/2017.
*/ */
public class Account implements ILoggable, Serializable { public class Account implements ILoggable, Serializable {
private int id;
private String username; private String username;
private String passwordHash; private String password;
private Date creationDate;
private AccountLevel permissionLevel; private AccountLevel permissionLevel;
public Account() { public Account() {
} }
public Account(int id, String username, String passwordHash, Date creationDate, AccountLevel permissionLevel) { public Account(String username, String password, AccountLevel permissionLevel) {
this.id = id;
this.username = username; this.username = username;
this.passwordHash = passwordHash; this.password = password;
this.creationDate = creationDate;
this.permissionLevel = permissionLevel; this.permissionLevel = permissionLevel;
} }
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() { public String getUsername() {
return username; return username;
} }
@ -42,20 +30,12 @@ public class Account implements ILoggable, Serializable {
this.username = username; this.username = username;
} }
public String getPasswordHash() { public String getPassword() {
return passwordHash; return password;
} }
public void setPasswordHash(String passwordHash) { public void setPassword(String password) {
this.passwordHash = passwordHash; this.password = password;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
} }
public AccountLevel getPermissionLevel() { public AccountLevel getPermissionLevel() {