/*
* RHQ Management Platform
* Copyright (C) 2005-2012 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package org.rhq.enterprise.server.rest.domain;
import javax.xml.bind.annotation.XmlRootElement;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
/**
* A user
* @author Heiko W. Rupp
*/
@ApiClass("Information about a user in RHQ")
@XmlRootElement
public class UserRest {
int id;
String login;
String firstName;
String lastName;
String tel;
String email;
public UserRest() {
}
public UserRest(int id, String login) {
this.id = id;
this.login = login;
}
@ApiProperty("The ID of the user")
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@ApiProperty("The login name of the user")
public String getLogin() {
return login;
}
public void setLogin(String login) {
this.login = login;
}
@ApiProperty("The telephone number of the user")
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
@ApiProperty("The email address of the user")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@ApiProperty("The first name of the user")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
@ApiProperty("The last name of the user")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
@Override
public String toString() {
return "UserRest{" +
"id=" + id +
", login='" + login + '\'' +
", firstName='" + firstName + '\'' +
", lastName='" + lastName + '\'' +
", tel='" + tel + '\'' +
", email='" + email + '\'' +
'}';
}
}