View Javadoc
1   package booking.model.entity;
2   
3   import java.util.Date;
4   
5   import javax.validation.constraints.NotNull;
6   import javax.validation.constraints.Size;
7   
8   public class UserTO {
9   
10  	Long id;
11  
12  	@NotNull
13  	@Size(max = 1)
14  	String sex;
15  
16  	@NotNull
17  	@Size(max = 10)
18  	String alias;
19  
20  	@NotNull
21  	@Size(max = 50)
22  	String name;
23  
24  	@NotNull
25  	@Size(max = 100)
26  	String surname;
27  
28  	@NotNull
29  	Long phone;
30  
31  	@NotNull
32  	@Size(max = 100)
33  	String email;
34  
35  	@NotNull
36  	@Size(max = 100)
37  	String password;
38  
39  	@NotNull
40  	@Size(max = 10)
41  	String level;
42  
43  	@NotNull
44  	int loginAttempts = 3;
45  
46  	String recoveryPasswordHash;
47  
48  	Date recoveryPasswordTimestamp;
49  
50  	/**
51  	 * @return the recoveryPasswordHash
52  	 */
53  	public String getRecoveryPasswordHash() {
54  		return recoveryPasswordHash;
55  	}
56  
57  	/**
58  	 * @param recoveryPasswordHash
59  	 *            the recoveryPasswordHash to set
60  	 */
61  	public void setRecoveryPasswordHash(String recoveryPasswordHash) {
62  		this.recoveryPasswordHash = recoveryPasswordHash;
63  	}
64  
65  	/**
66  	 * @return the recoveryPasswordTimestamp
67  	 */
68  	public Date getRecoveryPasswordTimestamp() {
69  		return recoveryPasswordTimestamp;
70  	}
71  
72  	/**
73  	 * @param recoveryPasswordTimestamp
74  	 *            the recoveryPasswordTimestamp to set
75  	 */
76  	public void setRecoveryPasswordTimestamp(Date recoveryPasswordTimestamp) {
77  		this.recoveryPasswordTimestamp = recoveryPasswordTimestamp;
78  	}
79  
80  	/**
81  	 * @return the loginAttempts
82  	 */
83  	public int getLoginAttempts() {
84  		return loginAttempts;
85  	}
86  
87  	/**
88  	 * @param loginAttempts
89  	 *            the loginAttempts to set
90  	 */
91  	public void setLoginAttempts(int loginAttempts) {
92  		this.loginAttempts = loginAttempts;
93  	}
94  
95  	/**
96  	 * @return the level
97  	 */
98  	public String getLevel() {
99  		return level;
100 	}
101 
102 	/**
103 	 * @param level
104 	 *            the level to set
105 	 */
106 	public void setLevel(String level) {
107 		this.level = level;
108 	}
109 
110 	/**
111 	 * @return the sex
112 	 */
113 	public String getSex() {
114 		return sex;
115 	}
116 
117 	/**
118 	 * @param sex
119 	 *            the sex to set
120 	 */
121 	public void setSex(String sex) {
122 		this.sex = sex;
123 	}
124 
125 	/**
126 	 * @return the alias
127 	 */
128 	public String getAlias() {
129 		return alias;
130 	}
131 
132 	/**
133 	 * @param alias
134 	 *            the alias to set
135 	 */
136 	public void setAlias(String alias) {
137 		this.alias = alias;
138 	}
139 
140 	/**
141 	 * @return the name
142 	 */
143 	public String getName() {
144 		return name;
145 	}
146 
147 	/**
148 	 * @param name
149 	 *            the name to set
150 	 */
151 	public void setName(String name) {
152 		this.name = name;
153 	}
154 
155 	/**
156 	 * @return the surname
157 	 */
158 	public String getSurname() {
159 		return surname;
160 	}
161 
162 	/**
163 	 * @param surname
164 	 *            the surname to set
165 	 */
166 	public void setSurname(String surname) {
167 		this.surname = surname;
168 	}
169 
170 	/**
171 	 * @return the phone
172 	 */
173 	public Long getPhone() {
174 		return phone;
175 	}
176 
177 	/**
178 	 * @param phone
179 	 *            the phone to set
180 	 */
181 	public void setPhone(Long phone) {
182 		this.phone = phone;
183 	}
184 
185 	/**
186 	 * @return the email
187 	 */
188 	public String getEmail() {
189 		return email;
190 	}
191 
192 	/**
193 	 * @param email
194 	 *            the email to set
195 	 */
196 	public void setEmail(String email) {
197 		this.email = email;
198 	}
199 
200 	/**
201 	 * @return the password
202 	 */
203 	public String getPassword() {
204 		return password;
205 	}
206 
207 	/**
208 	 * @param password
209 	 *            the password to set
210 	 */
211 	public void setPassword(String password) {
212 		this.password = password;
213 	}
214 
215 	/**
216 	 * @return the idUser
217 	 */
218 	public Long getId() {
219 		return id;
220 	}
221 
222 	/**
223 	 * @param idUser
224 	 *            the idUser to set
225 	 */
226 	public void setId(Long id) {
227 		this.id = id;
228 	}
229 }