KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > olstore > dto > UserValue


1 /**
2  * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA
18  *
19  * Component of: Red Hat Application Server
20  *
21  * Initial Developers: Aizaz Ahmed
22  * Vivek Lakshmanan
23  * Andrew Overholt
24  * Matthew Wringe
25  *
26  */

27 package olstore.dto;
28
29 import olstore.entity.AddressLocal;
30 import java.util.Collection;
31
32 /**
33  * DTO to hold the user's information. This DTO is used whenever displaying or
34  * modifying the user's information.
35  *
36  */

37 public class UserValue {
38     
39     private String username = null;
40     private String fname = null;
41     private String lname = null;
42     private String emailAdd = null;
43     private String phoneNum = null;
44     private String passwd = null;
45     private AddressLocal address = null;
46     
47     private Collection friendsList = null;
48     private Collection allUsersList= null;
49     
50     //the selection from the friends select box
51
private String[] friendsListSelected=null;
52     
53     public String getUsername()
54     {
55         return username;
56     }
57     
58     public void setUsername(String username)
59     {
60         this.username=username;
61     }
62     
63     public String getFname()
64     {
65         return fname;
66     }
67     
68     public void setFname(String fname)
69     {
70         this.fname=fname;
71     }
72     
73     public String getLname()
74     {
75         return lname;
76     }
77     
78     public void setLname(String lname)
79     {
80         this.lname=lname;
81     }
82     
83     public String getEmailAdd()
84     {
85         return emailAdd;
86     }
87     
88     public void setEmailAdd(String emailAdd)
89     {
90         this.emailAdd=emailAdd;
91     }
92     
93     public String getPhoneNum()
94     {
95         return phoneNum;
96     }
97     
98     public void setPhoneNum(String phoneNum)
99     {
100         this.phoneNum=phoneNum;
101     }
102     
103     public String getPasswd()
104     {
105         return passwd;
106     }
107     
108     public void setPasswd(String passwd)
109     {
110         this.passwd=passwd;
111     }
112     
113     public AddressLocal getAddress()
114     {
115         return address;
116     }
117     
118     public void setAddress(AddressLocal address)
119     {
120         this.address=address;
121     }
122     
123     public Collection getFriendsList()
124     {
125         return friendsList;
126     }
127     
128     public void setFriendsList(Collection friendsList)
129     {
130         this.friendsList=friendsList;
131     }
132     
133     public Collection getAllUsersList()
134     {
135         return allUsersList;
136     }
137     
138     public void setAllUsersList(Collection allUsersList)
139     {
140         this.allUsersList=allUsersList;
141     }
142     
143     public String[] getFriendsListSelected()
144     {
145         return friendsListSelected;
146     }
147     
148     public void setFriendsListSelected(String[] friendsListSelected)
149     {
150         this.friendsListSelected=friendsListSelected;
151     }
152     
153 }
154
Popular Tags