Package de.fraunhofer.iese.mydata.user
Class User
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.user.User
MyData-user compatible with spring-security.
- Author:
- Fraunhofer IESE
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected @NotBlank @Email String
Email is not kept unique intentionallyprotected @NotBlank String
protected @NotBlank String
protected @NotBlank String
protected String
Password wont be stored in database, used for sending passwords via UI to backendprotected @NotNull @Valid MyDataRole
protected @NotBlank String
protected @Pattern(regexp="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}") String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSolution
(Solution solution) boolean
int
hashCode()
boolean
boolean
boolean
isAdmin()
boolean
isDev()
boolean
void
removeSolution
(Solution solution) void
setAccountLocked
(boolean accountLocked) void
setSolutions
(Set<Solution> solutions) needed for JPA/Hibernate if the solutions set is null, a new set is initialized, else, it re-uses the previous object then updates the current list (set) of solutions for this affiliationMethods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
Field Details
-
userUUID
@Pattern(regexp="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}") protected @Pattern(regexp="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}") String userUUID -
username
-
email
Email is not kept unique intentionally -
firstName
-
lastName
-
encryptedPassword
-
accountLocked
protected boolean accountLocked -
password
Password wont be stored in database, used for sending passwords via UI to backend -
role
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
isSuperAdmin
public boolean isSuperAdmin() -
isAdmin
public boolean isAdmin() -
isDev
public boolean isDev() -
setAccountLocked
public void setAccountLocked(boolean accountLocked) -
isAccountNonLocked
public boolean isAccountNonLocked() -
isAccountNonExpired
public boolean isAccountNonExpired() -
getSolutions
-
setSolutions
needed for JPA/Hibernate if the solutions set is null, a new set is initialized, else, it re-uses the previous object then updates the current list (set) of solutions for this affiliation- Parameters:
solutions
- the new list(set) of solutions for this affiliation
-
addSolution
-
removeSolution
-