View Javadoc
1   /*
2    *    Copyright 2010-2026 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
15   */
16  package org.mybatis.jpetstore.domain;
17  
18  import java.io.Serializable;
19  
20  import net.sourceforge.stripes.validation.Validate;
21  
22  /**
23   * The Class Account.
24   *
25   * @author Eduardo Macarron
26   */
27  public class Account implements Serializable {
28  
29    /** The serial version uid. */
30    private static final long serialVersionUID = 8751282105532159742L;
31  
32    /** The username. */
33    private String username;
34    /** The password. */
35    private String password;
36    /** The email. */
37    private String email;
38    /** The first name. */
39    private String firstName;
40    /** The last name. */
41    private String lastName;
42    /** The status. */
43    private String status;
44    /** The address1. */
45    private String address1;
46    /** The address2. */
47    private String address2;
48    /** The city. */
49    private String city;
50    /** The state. */
51    private String state;
52    /** The zip. */
53    private String zip;
54    /** The country. */
55    private String country;
56    /** The phone. */
57    private String phone;
58    /** The favourite category id. */
59    private String favouriteCategoryId;
60    /** The language preference. */
61    private String languagePreference;
62    /** The list option. */
63    private boolean listOption;
64    /** The banner option. */
65    private boolean bannerOption;
66    /** The banner name. */
67    private String bannerName;
68  
69    /**
70     * Gets the username.
71     *
72     * @return the username
73     */
74    public String getUsername() {
75      return username;
76    }
77  
78    /**
79     * Sets the username.
80     *
81     * @param username
82     *          the username
83     */
84    public void setUsername(String username) {
85      this.username = username;
86    }
87  
88    /**
89     * Gets the password.
90     *
91     * @return the password
92     */
93    public String getPassword() {
94      return password;
95    }
96  
97    /**
98     * Sets the password.
99     *
100    * @param password
101    *          the password
102    */
103   public void setPassword(String password) {
104     this.password = password;
105   }
106 
107   /**
108    * Gets the email.
109    *
110    * @return the email
111    */
112   public String getEmail() {
113     return email;
114   }
115 
116   /**
117    * Sets the email.
118    *
119    * @param email
120    *          the email
121    */
122   public void setEmail(String email) {
123     this.email = email;
124   }
125 
126   /**
127    * Gets the first name.
128    *
129    * @return the first name
130    */
131   public String getFirstName() {
132     return firstName;
133   }
134 
135   /**
136    * Sets the first name.
137    *
138    * @param firstName
139    *          the first name
140    */
141   @Validate(required = true, on = { "newAccount", "editAccount" })
142   public void setFirstName(String firstName) {
143     this.firstName = firstName;
144   }
145 
146   /**
147    * Gets the last name.
148    *
149    * @return the last name
150    */
151   public String getLastName() {
152     return lastName;
153   }
154 
155   /**
156    * Sets the last name.
157    *
158    * @param lastName
159    *          the last name
160    */
161   @Validate(required = true, on = { "newAccount", "editAccount" })
162   public void setLastName(String lastName) {
163     this.lastName = lastName;
164   }
165 
166   /**
167    * Gets the status.
168    *
169    * @return the status
170    */
171   public String getStatus() {
172     return status;
173   }
174 
175   /**
176    * Sets the status.
177    *
178    * @param status
179    *          the status
180    */
181   public void setStatus(String status) {
182     this.status = status;
183   }
184 
185   /**
186    * Gets the address1.
187    *
188    * @return the address1
189    */
190   public String getAddress1() {
191     return address1;
192   }
193 
194   /**
195    * Sets the address1.
196    *
197    * @param address1
198    *          the address1
199    */
200   public void setAddress1(String address1) {
201     this.address1 = address1;
202   }
203 
204   /**
205    * Gets the address2.
206    *
207    * @return the address2
208    */
209   public String getAddress2() {
210     return address2;
211   }
212 
213   /**
214    * Sets the address2.
215    *
216    * @param address2
217    *          the address2
218    */
219   public void setAddress2(String address2) {
220     this.address2 = address2;
221   }
222 
223   /**
224    * Gets the city.
225    *
226    * @return the city
227    */
228   public String getCity() {
229     return city;
230   }
231 
232   /**
233    * Sets the city.
234    *
235    * @param city
236    *          the city
237    */
238   public void setCity(String city) {
239     this.city = city;
240   }
241 
242   /**
243    * Gets the state.
244    *
245    * @return the state
246    */
247   public String getState() {
248     return state;
249   }
250 
251   /**
252    * Sets the state.
253    *
254    * @param state
255    *          the state
256    */
257   public void setState(String state) {
258     this.state = state;
259   }
260 
261   /**
262    * Gets the zip.
263    *
264    * @return the zip
265    */
266   public String getZip() {
267     return zip;
268   }
269 
270   /**
271    * Sets the zip.
272    *
273    * @param zip
274    *          the zip
275    */
276   public void setZip(String zip) {
277     this.zip = zip;
278   }
279 
280   /**
281    * Gets the country.
282    *
283    * @return the country
284    */
285   public String getCountry() {
286     return country;
287   }
288 
289   /**
290    * Sets the country.
291    *
292    * @param country
293    *          the country
294    */
295   public void setCountry(String country) {
296     this.country = country;
297   }
298 
299   /**
300    * Gets the phone.
301    *
302    * @return the phone
303    */
304   public String getPhone() {
305     return phone;
306   }
307 
308   /**
309    * Sets the phone.
310    *
311    * @param phone
312    *          the phone
313    */
314   public void setPhone(String phone) {
315     this.phone = phone;
316   }
317 
318   /**
319    * Gets the favourite category id.
320    *
321    * @return the favourite category id
322    */
323   public String getFavouriteCategoryId() {
324     return favouriteCategoryId;
325   }
326 
327   /**
328    * Sets the favourite category id.
329    *
330    * @param favouriteCategoryId
331    *          the favourite category id
332    */
333   public void setFavouriteCategoryId(String favouriteCategoryId) {
334     this.favouriteCategoryId = favouriteCategoryId;
335   }
336 
337   /**
338    * Gets the language preference.
339    *
340    * @return the language preference
341    */
342   public String getLanguagePreference() {
343     return languagePreference;
344   }
345 
346   /**
347    * Sets the language preference.
348    *
349    * @param languagePreference
350    *          the language preference
351    */
352   public void setLanguagePreference(String languagePreference) {
353     this.languagePreference = languagePreference;
354   }
355 
356   /**
357    * Checks if is list option.
358    *
359    * @return true, if successful
360    */
361   public boolean isListOption() {
362     return listOption;
363   }
364 
365   /**
366    * Sets the list option.
367    *
368    * @param listOption
369    *          the list option
370    */
371   public void setListOption(boolean listOption) {
372     this.listOption = listOption;
373   }
374 
375   /**
376    * Checks if is banner option.
377    *
378    * @return true, if successful
379    */
380   public boolean isBannerOption() {
381     return bannerOption;
382   }
383 
384   /**
385    * Sets the banner option.
386    *
387    * @param bannerOption
388    *          the banner option
389    */
390   public void setBannerOption(boolean bannerOption) {
391     this.bannerOption = bannerOption;
392   }
393 
394   /**
395    * Gets the banner name.
396    *
397    * @return the banner name
398    */
399   public String getBannerName() {
400     return bannerName;
401   }
402 
403   /**
404    * Sets the banner name.
405    *
406    * @param bannerName
407    *          the banner name
408    */
409   public void setBannerName(String bannerName) {
410     this.bannerName = bannerName;
411   }
412 
413 }