net.n2oapp.security.admin.rest.api.criteria.RestUserDetailsToken Maven / Gradle / Ivy
/*
* Copyright 2017-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.n2oapp.security.admin.rest.api.criteria;
import io.swagger.annotations.ApiParam;
import net.n2oapp.security.admin.api.model.UserDetailsToken;
import javax.ws.rs.QueryParam;
import java.util.List;
/**
* Модель детальной информации о пользователе
*/
public class RestUserDetailsToken extends UserDetailsToken {
public RestUserDetailsToken() {
}
public RestUserDetailsToken(UserDetailsToken userDetails) {
setEmail(userDetails.getEmail());
setUsername(userDetails.getUsername());
setExtUid(userDetails.getExtUid());
setName(userDetails.getName());
setSurname(userDetails.getSurname());
setRoleNames(userDetails.getRoleNames());
}
@QueryParam("extUid")
@Override
@ApiParam(value = "Уникальный идентификатор")
public void setExtUid(String extUid) {
super.setExtUid(extUid);
}
@QueryParam("username")
@Override
@ApiParam(value = "Имя пользователя")
public void setUsername(String username) {
super.setUsername(username);
}
@QueryParam("name")
@Override
@ApiParam(value = "Имя")
public void setName(String name) {
super.setName(name);
}
@QueryParam("surname")
@Override
@ApiParam(value = "Фамилия")
public void setSurname(String surname) {
super.setSurname(surname);
}
@QueryParam("email")
@Override
@ApiParam(value = "Электронный адрес")
public void setEmail(String email) {
super.setEmail(email);
}
@QueryParam("rolenames")
@Override
@ApiParam(value = "Список имен ролей")
public void setRoleNames(List roleNames) {
super.setRoleNames(roleNames);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy