001: /*
002: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
003: *
004: * All copyright notices regarding Nabh's products MUST remain
005: * intact in the scripts and in the outputted HTML.
006: * This program is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public License
008: * as published by the Free Software Foundation; either version 2.1
009: * of the License, or (at your option) any later version.
010: *
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
019: *
020: */
021: package com.nabhinc.spi;
022:
023: import java.sql.Timestamp;
024: import java.util.HashMap;
025: import java.util.Map;
026:
027: /**
028: *
029: *
030: * @author Padmanabh Dabke
031: * (c) 2005 Nabh Information Systems, Inc. All Rights Reserved.
032: */
033: public class UserImpl implements User {
034: /**
035: *
036: */
037: private static final long serialVersionUID = 1L;
038: private int id = -1;
039: private String userName = null;
040: private String firstName = null;
041: private String lastName = null;
042: private String primaryEmail = null;
043: private Timestamp userSince = null;
044: private Timestamp lastLogin = null;
045: private boolean disabled = true;
046: private byte[] icon = null;
047: private Map profile = new HashMap();
048:
049: public String getFirstName() {
050: return firstName;
051: }
052:
053: public void setFirstName(String firstName) {
054: this .firstName = firstName;
055: }
056:
057: public int getId() {
058: return this .id;
059: }
060:
061: public void setId(int id) {
062: this .id = id;
063: }
064:
065: public Timestamp getLastLogin() {
066: return lastLogin;
067: }
068:
069: public void setLastLogin(Timestamp lastLogin) {
070: this .lastLogin = lastLogin;
071: }
072:
073: public String getLastName() {
074: return lastName;
075: }
076:
077: public void setLastName(String lastName) {
078: this .lastName = lastName;
079: }
080:
081: public String getPrimaryEmail() {
082: return primaryEmail;
083: }
084:
085: public void setPrimaryEmail(String primaryEmail) {
086: this .primaryEmail = primaryEmail;
087: }
088:
089: public Map getProfile() {
090: return profile;
091: }
092:
093: public void setProfile(Map profile) {
094: this .profile = profile;
095: }
096:
097: public String getUserName() {
098: return userName;
099: }
100:
101: public void setUserName(String userName) {
102: this .userName = userName;
103: }
104:
105: public Timestamp getUserSince() {
106: return userSince;
107: }
108:
109: public void setUserSince(Timestamp userSince) {
110: this .userSince = userSince;
111: }
112:
113: public boolean isDisabled() {
114: return disabled;
115: }
116:
117: public void setDisabled(boolean disabled) {
118: this .disabled = disabled;
119: }
120:
121: public byte[] getIcon() {
122: return icon;
123: }
124:
125: public void setIcon(byte[] icon) {
126: this.icon = icon;
127: }
128:
129: }
|