CAS Part 1

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2020-12-03 16:23:39 +01:00
parent b6c2e43975
commit 3ebfda5316
5 changed files with 56 additions and 9 deletions

View File

@ -24,9 +24,11 @@ public class User {
private String name;
private String surname;
private String email;
private String usosId;
private UserRoles role;
private String token;
private Timestamp tokenUsageDate;
public User() {
}
@ -46,6 +48,29 @@ public class User {
this.role = role;
}
/*
* User
*
* @param name name given to the user
* @param surname surname given to the user
* @param email mail given to the user
* @param usosId id in the USOS system
* @param role role given to the user
*/
public User(String name, String surname, String mail, String usosId, UserRoles role){
this(name,surname,mail,role);
this.usosId = usosId;
}
/*
* getusosId
*
* @return usosId
*/
public String getUsosId() {
return usosId;
}
/*
* getEmail
*