001: /*
002: * Created on 14/10/2004
003: *
004: * Swing Components - visit http://sf.net/projects/gfd
005: *
006: * Copyright (C) 2004 Igor Regis da Silva Simões
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public License
010: * as published by the Free Software Foundation; either version 2
011: * of the License, or (at your option) any later version.
012: *
013: * This program is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: * GNU General Public License for more details.
017: *
018: * You should have received a copy of the GNU General Public License
019: * along with this program; if not, write to the Free Software
020: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
021: *
022: */
023:
024: package br.com.gfpshare.security;
025:
026: import java.sql.SQLException;
027:
028: /**
029: * @author Igor Regis da Silva Simoes
030: */
031: public class Usuario extends BasicAccessDataObject {
032: private String persistentNome = null;
033:
034: private String persistentSenha = null;
035:
036: private String persistentDescricao = null;
037:
038: /**
039: * Cria um novo acesso
040: */
041: public Usuario() {
042: //
043: }
044:
045: /**
046: * Cria um novo acesso com o dado nome
047: * @param nome Nome do acesso
048: */
049: public Usuario(String nome) {
050: setNome(nome);
051: }
052:
053: /**
054: * @see br.com.gfpshare.db.PersistentObject#validate()
055: */
056: public void validate() throws SQLException {
057: // TODO Auto-generated method stub
058:
059: }
060:
061: /**
062: * @see br.com.gfpshare.db.PersistentObject#getAsString(int)
063: */
064: public String getAsString(int format) {
065: // TODO Auto-generated method stub
066: return null;
067: }
068:
069: /**
070: * @return Returns the persistentNome.
071: */
072: public String getNome() {
073: return persistentNome;
074: }
075:
076: /**
077: * @param persistentNome The persistentNome to set.
078: */
079: public void setNome(String persistentNome) {
080: this .persistentNome = persistentNome;
081: }
082:
083: /**
084: * @return Returns the persistentDescricao.
085: */
086: public String getDescricao() {
087: return persistentDescricao;
088: }
089:
090: /**
091: * @param persistentDescricao The persistentDescricao to set.
092: */
093: public void setDescricao(String persistentDescricao) {
094: this .persistentDescricao = persistentDescricao;
095: }
096:
097: /**
098: * @return Returns the persistentSenha.
099: */
100: public String getSenha() {
101: return persistentSenha;
102: }
103:
104: /**
105: * @param persistentSenha The persistentSenha to set.
106: */
107: public void setSenha(String persistentSenha) {
108: String temp = "";
109: for (int n = 0; n < persistentSenha.length(); n++)
110: temp += (persistentSenha.charAt(n) << persistentSenha
111: .length());
112: this.persistentSenha = temp;
113: }
114: }
|