diff --git a/src/main/java/fr/istic/service/dto/UserDTO.java b/src/main/java/fr/istic/service/dto/UserDTO.java index 7160067..a86de31 100644 --- a/src/main/java/fr/istic/service/dto/UserDTO.java +++ b/src/main/java/fr/istic/service/dto/UserDTO.java @@ -4,6 +4,8 @@ import fr.istic.domain.User; import io.quarkus.runtime.annotations.RegisterForReflection; + +import java.io.Serializable; import java.time.Instant; import java.util.Set; import java.util.stream.Collectors; @@ -16,7 +18,8 @@ * A DTO representing a user, with his authorities. */ @RegisterForReflection -public class UserDTO { +public class UserDTO implements Serializable { + public Long id; @NotBlank @@ -56,6 +59,116 @@ public UserDTO() { // Empty constructor needed for Jackson. } + + public Long getId() { + return this.id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getLogin() { + return this.login; + } + + public void setLogin(String login) { + this.login = login; + } + + public String getFirstName() { + return this.firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return this.lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public String getEmail() { + return this.email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getImageUrl() { + return this.imageUrl; + } + + public void setImageUrl(String imageUrl) { + this.imageUrl = imageUrl; + } + + public boolean isActivated() { + return this.activated; + } + + public boolean getActivated() { + return this.activated; + } + + public void setActivated(boolean activated) { + this.activated = activated; + } + + public String getLangKey() { + return this.langKey; + } + + public void setLangKey(String langKey) { + this.langKey = langKey; + } + + public String getCreatedBy() { + return this.createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public Instant getCreatedDate() { + return this.createdDate; + } + + public void setCreatedDate(Instant createdDate) { + this.createdDate = createdDate; + } + + public String getLastModifiedBy() { + return this.lastModifiedBy; + } + + public void setLastModifiedBy(String lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public Instant getLastModifiedDate() { + return this.lastModifiedDate; + } + + public void setLastModifiedDate(Instant lastModifiedDate) { + this.lastModifiedDate = lastModifiedDate; + } + + public Set getAuthorities() { + return this.authorities; + } + + public void setAuthorities(Set authorities) { + this.authorities = authorities; + } + + public UserDTO(User user) { this.id = user.id; this.login = user.login;