001: /**
002: * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 2.1 of the License, or any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
017: * USA
018: *
019: * Component of: Red Hat Application Server
020: *
021: * Initial Developers: Aizaz Ahmed
022: * Vivek Lakshmanan
023: * Andrew Overholt
024: * Matthew Wringe
025: *
026: */package olstore.dto;
027:
028: import olstore.entity.AddressLocal;
029: import java.util.Collection;
030:
031: /**
032: * DTO to hold the user's information. This DTO is used whenever displaying or
033: * modifying the user's information.
034: *
035: */
036: public class UserValue {
037:
038: private String username = null;
039: private String fname = null;
040: private String lname = null;
041: private String emailAdd = null;
042: private String phoneNum = null;
043: private String passwd = null;
044: private AddressLocal address = null;
045:
046: private Collection friendsList = null;
047: private Collection allUsersList = null;
048:
049: //the selection from the friends select box
050: private String[] friendsListSelected = null;
051:
052: public String getUsername() {
053: return username;
054: }
055:
056: public void setUsername(String username) {
057: this .username = username;
058: }
059:
060: public String getFname() {
061: return fname;
062: }
063:
064: public void setFname(String fname) {
065: this .fname = fname;
066: }
067:
068: public String getLname() {
069: return lname;
070: }
071:
072: public void setLname(String lname) {
073: this .lname = lname;
074: }
075:
076: public String getEmailAdd() {
077: return emailAdd;
078: }
079:
080: public void setEmailAdd(String emailAdd) {
081: this .emailAdd = emailAdd;
082: }
083:
084: public String getPhoneNum() {
085: return phoneNum;
086: }
087:
088: public void setPhoneNum(String phoneNum) {
089: this .phoneNum = phoneNum;
090: }
091:
092: public String getPasswd() {
093: return passwd;
094: }
095:
096: public void setPasswd(String passwd) {
097: this .passwd = passwd;
098: }
099:
100: public AddressLocal getAddress() {
101: return address;
102: }
103:
104: public void setAddress(AddressLocal address) {
105: this .address = address;
106: }
107:
108: public Collection getFriendsList() {
109: return friendsList;
110: }
111:
112: public void setFriendsList(Collection friendsList) {
113: this .friendsList = friendsList;
114: }
115:
116: public Collection getAllUsersList() {
117: return allUsersList;
118: }
119:
120: public void setAllUsersList(Collection allUsersList) {
121: this .allUsersList = allUsersList;
122: }
123:
124: public String[] getFriendsListSelected() {
125: return friendsListSelected;
126: }
127:
128: public void setFriendsListSelected(String[] friendsListSelected) {
129: this.friendsListSelected = friendsListSelected;
130: }
131:
132: }
|