<jsp:useBean id="usuario" scope="request" class="br.com.gf.gedoc.model.Usuario" />
Usuario u = request.getAttribute("usuario");
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.gf.gedoc.model;
import java.io.Serializable;
/**
*
* @author GouverMXT
*/
public class Usuario extends Pessoa implements Serializable {
/**
* Nome de login no sistema
*/
private String login;
/**
* Senha para acesso ao sistema
*/
private String senha;
/**
* Nível de acesso ao sistema
*/
private int nivel;
/**
* Status de permissão de uso do sistema
*/
private int status;
/**
* Construtor padrao
*/
public Usuario() {
}
/**
* Construtor passando ID unico
*/
public Usuario(int id, String nome, String cpf, String login, String senha, int nivel, int status) {
super(id, nome, cpf);
this.login = login;
this.senha = senha;
this.nivel = nivel;
this.status = status;
}
/**
* Construtor sem receber o ID
*/
public Usuario(String nome, String cpf, String login, String senha, int nivel, int status) {
super(nome, cpf);
this.login = login;
this.senha = senha;
this.nivel = nivel;
this.status = status;
}
public String getLogin() {
return login;
}
public void setLogin(String login) {
this.login = login;
}
public int getNivel() {
return nivel;
}
public void setNivel(int nivel) {
this.nivel = nivel;
}
public String getSenha() {
return senha;
}
public void setSenha(String senha) {
this.senha = senha;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
}