/* * Copyright (C) 2015 Allsoft * * 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, either version 3 of the License, or * (at your option) any later version. * * 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, see <http://www.gnu.org/licenses/>. */ package br.com.allsoft.avros.modelo; /** * Classe DAO para o usuário do sistema * * @author Luana */ public class Usuario { //variáveis int id; String nome; String nick; String cpf; char[] senha; //Por questões de segurança, a senha será tratada como char[] boolean admin; boolean ativo; public boolean isAtivo() { return ativo; } public void setAtivo(boolean ativo) { this.ativo = ativo; } public String getCpf() { return cpf; } public void setCpf(String cpf) { this.cpf = cpf; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getNick() { return nick; } public void setNick(String nick) { this.nick = nick; } public char[] getSenha() { return senha; } public void setSenha(char[] senha) { this.senha = senha; } public void setId(int id) { this.id = id; } public int getId() { return id; } public boolean isAdmin() { return admin; } public void setAdmin(boolean admin) { this.admin = admin; } }