Skip to content
Snippets Groups Projects
Commit 11e27875 authored by msayad's avatar msayad Committed by Benaissa BENARBIA
Browse files

[US RABB-1167] define expected user information response from proxy

parent 5ab97977
No related branches found
No related tags found
1 merge request!51Merge mis a jour vitam-ui
package fr.gouv.vitamui.commons.api.domain;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import fr.gouv.vitamui.commons.api.deserializer.ToLowerCaseConverter;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@EqualsAndHashCode
public class ProvidedUserDto {
@NotNull
@Length(min = 2, max = 50)
private String lastname;
@NotNull
@Length(min = 2, max = 50)
private String firstname;
@NotNull
@Length(min = 4, max = 100)
@Email
@JsonDeserialize(converter = ToLowerCaseConverter.class)
private String email;
@NotNull
private String unit;
private AddressDto address;
private String siteCode;
private String internalCode;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment