001package com.thed.model;
002
003import java.util.Date;
004
005public class UserDTO {
006
007        private long id;
008        private String title;
009        private String username;
010        private String firstName;
011        private String lastName;
012        private String address1;
013        private String address2;
014        private String city;
015        private String state;
016        private String country;
017        private String picture;
018        private String postalCode;
019        private String location;
020        private String type;
021        private String email;
022        private String workPhoneNumber;
023        private String mobilePhoneNumber;
024        private String homePhoneNumber;
025        private String website;
026        private Boolean accountEnabled;
027        private Boolean accountExpired;
028        private Boolean credentialsExpired;
029        private String loginName;
030    private Integer userType;
031    private Boolean chargeableFlag;
032    private Date lastPasswordChange;
033    private Date lastSuccessfulLogin ;
034    private String lastSuccessfulLoginString ;
035    private String password;
036        private String clientId;
037
038        public String getClientId() {
039                return clientId;
040        }
041
042        public void setClientId(String clientId) {
043                this.clientId = clientId;
044        }
045
046    public Date getLastPasswordChange() {
047                return lastPasswordChange;
048        }
049
050        public void setLastPasswordChange(Date lastPasswordChange) {
051                this.lastPasswordChange = lastPasswordChange;
052        }
053
054        public Date getLastSuccessfulLogin() {
055                return lastSuccessfulLogin;
056        }
057
058        public void setLastSuccessfulLogin(Date lastSuccessfulLogin) {
059                this.lastSuccessfulLogin = lastSuccessfulLogin;
060        }
061
062        public long getId() {
063                return this.id;
064        }
065
066        public void setId(long id) {
067                this.id = id;
068        }
069        
070        public String getTitle() {
071                return title;
072        }
073        
074        public void setTitle(String title) {
075                this.title = title;
076        }
077        
078        public String getUsername() {
079                return username;
080        }
081        
082        public void setUsername(String username) {
083                this.username = username;
084        }
085        
086        public String getFirstName() {
087                return firstName;
088        }
089        
090        public void setFirstName(String firstName) {
091                this.firstName = firstName;
092        }
093        
094        public String getLastName() {
095                return lastName;
096        }
097        
098        public void setLastName(String lastName) {
099                this.lastName = lastName;
100        }
101        
102    public String getFullName(){
103        String fullName = "";
104        if(firstName != null){
105                fullName += firstName + " ";
106        }
107        if(lastName != null){
108                fullName += lastName;
109        }
110        return fullName;
111    }
112    
113        public String getAddress1() {
114                return address1;
115        }
116        
117        public void setAddress1(String address1) {
118                this.address1 = address1;
119        }
120        
121        public String getAddress2() {
122                return address2;
123        }
124        
125        public void setAddress2(String address2) {
126                this.address2 = address2;
127        }
128        
129        public String getCity() {
130                return city;
131        }
132        
133        public void setCity(String city) {
134                this.city = city;
135        }
136        
137        public String getState() {
138                return state;
139        }
140        
141        public void setState(String state) {
142                this.state = state;
143        }
144        
145        public String getCountry() {
146                return country;
147        }
148        
149        public void setCountry(String country) {
150                this.country = country;
151        }
152        
153        public String getPicture() {
154                return picture;
155        }
156        
157        public void setPicture(String picture) {
158                this.picture = picture;
159        }
160        
161        public String getPostalCode() {
162                return postalCode;
163        }
164        
165        public void setPostalCode(String postalCode) {
166                this.postalCode = postalCode;
167        }
168        
169        public String getLocation() {
170                return location;
171        }
172        
173        public void setLocation(String location) {
174                this.location = location;
175        }
176        
177        public String getType() {
178                return type;
179        }
180        
181        public void setType(String type) {
182                this.type = type;
183        }
184        
185        public String getEmail() {
186                return email;
187        }
188        
189        public void setEmail(String email) {
190                this.email = email;
191        }
192        
193        public String getWorkPhoneNumber() {
194                return workPhoneNumber;
195        }
196        
197        public void setWorkPhoneNumber(String workPhoneNumber) {
198                this.workPhoneNumber = workPhoneNumber;
199        }
200        
201        public String getMobilePhoneNumber() {
202                return mobilePhoneNumber;
203        }
204        
205        public void setMobilePhoneNumber(String mobilePhoneNumber) {
206                this.mobilePhoneNumber = mobilePhoneNumber;
207        }
208        
209        public String getHomePhoneNumber() {
210                return homePhoneNumber;
211        }
212        
213        public void setHomePhoneNumber(String homePhoneNumber) {
214                this.homePhoneNumber = homePhoneNumber;
215        }
216        
217        public String getWebsite() {
218                return website;
219        }
220        
221        public void setWebsite(String website) {
222                this.website = website;
223        }
224        
225        public Boolean getAccountEnabled() {
226                return accountEnabled;
227        }
228        
229        public void setAccountEnabled(Boolean accountEnabled) {
230                this.accountEnabled = accountEnabled;
231        }
232        
233        public Boolean getAccountExpired() {
234                return accountExpired;
235        }
236        
237        public void setAccountExpired(Boolean accountExpired) {
238                this.accountExpired = accountExpired;
239        }
240        
241        public Boolean getCredentialsExpired() {
242                return credentialsExpired;
243        }
244        
245        public void setCredentialsExpired(Boolean credentialsExpired) {
246                this.credentialsExpired = credentialsExpired;
247        }
248        
249        public String getLoginName() {
250                return loginName;
251        }
252        
253        public void setLoginName(String loginName) {
254                this.loginName = loginName;
255        }
256
257        public Integer getUserType() {
258                return userType;
259        }
260        
261        public void setUserType(Integer userType) {
262                this.userType = userType;
263        }
264        
265        public Boolean getChargeableFlag() {
266                return chargeableFlag;
267        }
268        
269        public void setChargeableFlag(Boolean chargeableFlag) {
270                this.chargeableFlag = chargeableFlag;
271        }
272
273        public void setPassword(String password) {
274                this.password = password;
275        }
276
277        public String getPassword() {
278                return password;
279        }
280
281        public String getLastSuccessfulLoginString() {
282                return lastSuccessfulLoginString;
283        }
284
285        public void setLastSuccessfulLoginString(String lastSuccessfulLoginString) {
286                this.lastSuccessfulLoginString = lastSuccessfulLoginString;
287        }
288}