Skip to content

Commit

Permalink
Merge pull request #125 from correctexam/develop
Browse files Browse the repository at this point in the history
close #485
  • Loading branch information
barais authored Feb 12, 2024
2 parents eca1f70 + 1dd7989 commit 75fd304
Showing 1 changed file with 114 additions and 1 deletion.
115 changes: 114 additions & 1 deletion src/main/java/fr/istic/service/dto/UserDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -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<String> getAuthorities() {
return this.authorities;
}

public void setAuthorities(Set<String> authorities) {
this.authorities = authorities;
}


public UserDTO(User user) {
this.id = user.id;
this.login = user.login;
Expand Down

0 comments on commit 75fd304

Please sign in to comment.