package cz.hsrs.rest.beans;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class UserBean {
	
	public int userId;
	public String userName;
	public String userPass;
	public String userRealName;
	public int groupId;
	public int rightsId;
/*
	public UserBean() {
	}
*/
	/**
	 * Constructor for loading from DB
	 * @param userId
	 * @param userName
	 * @param userRealName
	 * @param groupId
	 * @param rightsId
	 */
	public UserBean(int userId, String userName, String userRealName, int groupId, int rightsId) {
		this.userId = userId;
		this.userName = userName;
		this.userRealName = userRealName;
		this.groupId = groupId;
		this.rightsId = rightsId;
	}

	/**
	 * Constructor for inserting to DB
	 * @param userName
	 * @param userPass
	 * @param userRealName
	 * @param groupId
	 * @param rightsId
	 */
	public UserBean(String userName, String userPass, String userRealName, int groupId, int rightsId) {
		this.userName = userName;
		this.userPass = userPass;
		this.userRealName = userRealName;
		this.groupId = groupId;
		this.rightsId = rightsId;
	}
}
