org.openl.rules.rest.model.UserEditModel Maven / Gradle / Ivy
package org.openl.rules.rest.model;
import java.util.Set;
import javax.validation.constraints.Size;
import io.swagger.v3.oas.annotations.Parameter;
public class UserEditModel extends UserInfoModel {
@Size(max = 25, message = "{openl.constraints.size.max.message}")
@Parameter(description = "Password", example = "qwerty")
private String password;
@Parameter(description = "Assigned Groups")
private Set groups;
@Override
public String getEmail() {
return super.getEmail();
}
@Override
public UserEditModel setEmail(String email) {
return (UserEditModel) super.setEmail(email);
}
@Override
public String getDisplayName() {
return super.getDisplayName();
}
@Override
public UserEditModel setDisplayName(String displayName) {
return (UserEditModel) super.setDisplayName(displayName);
}
@Override
public String getFirstName() {
return super.getFirstName();
}
@Override
public UserEditModel setFirstName(String firstName) {
return (UserEditModel) super.setFirstName(firstName);
}
@Override
public String getLastName() {
return super.getLastName();
}
@Override
public UserEditModel setLastName(String lastName) {
return (UserEditModel) super.setLastName(lastName);
}
public String getPassword() {
return password;
}
public UserEditModel setPassword(String password) {
this.password = password;
return this;
}
public Set getGroups() {
return groups;
}
public UserEditModel setGroups(Set groups) {
this.groups = groups;
return this;
}
}