View Javadoc
1   /*
2    *    Copyright 2010-2022 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    private static final long serialVersionUID = 8751282105532159742L;
30  
31    private String username;
32    private String password;
33    private String email;
34    private String firstName;
35    private String lastName;
36    private String status;
37    private String address1;
38    private String address2;
39    private String city;
40    private String state;
41    private String zip;
42    private String country;
43    private String phone;
44    private String favouriteCategoryId;
45    private String languagePreference;
46    private boolean listOption;
47    private boolean bannerOption;
48    private String bannerName;
49  
50    public String getUsername() {
51      return username;
52    }
53  
54    public void setUsername(String username) {
55      this.username = username;
56    }
57  
58    public String getPassword() {
59      return password;
60    }
61  
62    public void setPassword(String password) {
63      this.password = password;
64    }
65  
66    public String getEmail() {
67      return email;
68    }
69  
70    public void setEmail(String email) {
71      this.email = email;
72    }
73  
74    public String getFirstName() {
75      return firstName;
76    }
77  
78    @Validate(required = true, on = { "newAccount", "editAccount" })
79    public void setFirstName(String firstName) {
80      this.firstName = firstName;
81    }
82  
83    public String getLastName() {
84      return lastName;
85    }
86  
87    @Validate(required = true, on = { "newAccount", "editAccount" })
88    public void setLastName(String lastName) {
89      this.lastName = lastName;
90    }
91  
92    public String getStatus() {
93      return status;
94    }
95  
96    public void setStatus(String status) {
97      this.status = status;
98    }
99  
100   public String getAddress1() {
101     return address1;
102   }
103 
104   public void setAddress1(String address1) {
105     this.address1 = address1;
106   }
107 
108   public String getAddress2() {
109     return address2;
110   }
111 
112   public void setAddress2(String address2) {
113     this.address2 = address2;
114   }
115 
116   public String getCity() {
117     return city;
118   }
119 
120   public void setCity(String city) {
121     this.city = city;
122   }
123 
124   public String getState() {
125     return state;
126   }
127 
128   public void setState(String state) {
129     this.state = state;
130   }
131 
132   public String getZip() {
133     return zip;
134   }
135 
136   public void setZip(String zip) {
137     this.zip = zip;
138   }
139 
140   public String getCountry() {
141     return country;
142   }
143 
144   public void setCountry(String country) {
145     this.country = country;
146   }
147 
148   public String getPhone() {
149     return phone;
150   }
151 
152   public void setPhone(String phone) {
153     this.phone = phone;
154   }
155 
156   public String getFavouriteCategoryId() {
157     return favouriteCategoryId;
158   }
159 
160   public void setFavouriteCategoryId(String favouriteCategoryId) {
161     this.favouriteCategoryId = favouriteCategoryId;
162   }
163 
164   public String getLanguagePreference() {
165     return languagePreference;
166   }
167 
168   public void setLanguagePreference(String languagePreference) {
169     this.languagePreference = languagePreference;
170   }
171 
172   public boolean isListOption() {
173     return listOption;
174   }
175 
176   public void setListOption(boolean listOption) {
177     this.listOption = listOption;
178   }
179 
180   public boolean isBannerOption() {
181     return bannerOption;
182   }
183 
184   public void setBannerOption(boolean bannerOption) {
185     this.bannerOption = bannerOption;
186   }
187 
188   public String getBannerName() {
189     return bannerName;
190   }
191 
192   public void setBannerName(String bannerName) {
193     this.bannerName = bannerName;
194   }
195 
196 }