001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import java.io.Serializable;
020
021 import java.util.ArrayList;
022 import java.util.Date;
023 import java.util.List;
024
025
032 @ProviderType
033 public class PasswordPolicySoap implements Serializable {
034 public static PasswordPolicySoap toSoapModel(PasswordPolicy model) {
035 PasswordPolicySoap soapModel = new PasswordPolicySoap();
036
037 soapModel.setMvccVersion(model.getMvccVersion());
038 soapModel.setUuid(model.getUuid());
039 soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
040 soapModel.setCompanyId(model.getCompanyId());
041 soapModel.setUserId(model.getUserId());
042 soapModel.setUserName(model.getUserName());
043 soapModel.setCreateDate(model.getCreateDate());
044 soapModel.setModifiedDate(model.getModifiedDate());
045 soapModel.setDefaultPolicy(model.getDefaultPolicy());
046 soapModel.setName(model.getName());
047 soapModel.setDescription(model.getDescription());
048 soapModel.setChangeable(model.getChangeable());
049 soapModel.setChangeRequired(model.getChangeRequired());
050 soapModel.setMinAge(model.getMinAge());
051 soapModel.setCheckSyntax(model.getCheckSyntax());
052 soapModel.setAllowDictionaryWords(model.getAllowDictionaryWords());
053 soapModel.setMinAlphanumeric(model.getMinAlphanumeric());
054 soapModel.setMinLength(model.getMinLength());
055 soapModel.setMinLowerCase(model.getMinLowerCase());
056 soapModel.setMinNumbers(model.getMinNumbers());
057 soapModel.setMinSymbols(model.getMinSymbols());
058 soapModel.setMinUpperCase(model.getMinUpperCase());
059 soapModel.setRegex(model.getRegex());
060 soapModel.setHistory(model.getHistory());
061 soapModel.setHistoryCount(model.getHistoryCount());
062 soapModel.setExpireable(model.getExpireable());
063 soapModel.setMaxAge(model.getMaxAge());
064 soapModel.setWarningTime(model.getWarningTime());
065 soapModel.setGraceLimit(model.getGraceLimit());
066 soapModel.setLockout(model.getLockout());
067 soapModel.setMaxFailure(model.getMaxFailure());
068 soapModel.setLockoutDuration(model.getLockoutDuration());
069 soapModel.setRequireUnlock(model.getRequireUnlock());
070 soapModel.setResetFailureCount(model.getResetFailureCount());
071 soapModel.setResetTicketMaxAge(model.getResetTicketMaxAge());
072
073 return soapModel;
074 }
075
076 public static PasswordPolicySoap[] toSoapModels(PasswordPolicy[] models) {
077 PasswordPolicySoap[] soapModels = new PasswordPolicySoap[models.length];
078
079 for (int i = 0; i < models.length; i++) {
080 soapModels[i] = toSoapModel(models[i]);
081 }
082
083 return soapModels;
084 }
085
086 public static PasswordPolicySoap[][] toSoapModels(PasswordPolicy[][] models) {
087 PasswordPolicySoap[][] soapModels = null;
088
089 if (models.length > 0) {
090 soapModels = new PasswordPolicySoap[models.length][models[0].length];
091 }
092 else {
093 soapModels = new PasswordPolicySoap[0][0];
094 }
095
096 for (int i = 0; i < models.length; i++) {
097 soapModels[i] = toSoapModels(models[i]);
098 }
099
100 return soapModels;
101 }
102
103 public static PasswordPolicySoap[] toSoapModels(List<PasswordPolicy> models) {
104 List<PasswordPolicySoap> soapModels = new ArrayList<PasswordPolicySoap>(models.size());
105
106 for (PasswordPolicy model : models) {
107 soapModels.add(toSoapModel(model));
108 }
109
110 return soapModels.toArray(new PasswordPolicySoap[soapModels.size()]);
111 }
112
113 public PasswordPolicySoap() {
114 }
115
116 public long getPrimaryKey() {
117 return _passwordPolicyId;
118 }
119
120 public void setPrimaryKey(long pk) {
121 setPasswordPolicyId(pk);
122 }
123
124 public long getMvccVersion() {
125 return _mvccVersion;
126 }
127
128 public void setMvccVersion(long mvccVersion) {
129 _mvccVersion = mvccVersion;
130 }
131
132 public String getUuid() {
133 return _uuid;
134 }
135
136 public void setUuid(String uuid) {
137 _uuid = uuid;
138 }
139
140 public long getPasswordPolicyId() {
141 return _passwordPolicyId;
142 }
143
144 public void setPasswordPolicyId(long passwordPolicyId) {
145 _passwordPolicyId = passwordPolicyId;
146 }
147
148 public long getCompanyId() {
149 return _companyId;
150 }
151
152 public void setCompanyId(long companyId) {
153 _companyId = companyId;
154 }
155
156 public long getUserId() {
157 return _userId;
158 }
159
160 public void setUserId(long userId) {
161 _userId = userId;
162 }
163
164 public String getUserName() {
165 return _userName;
166 }
167
168 public void setUserName(String userName) {
169 _userName = userName;
170 }
171
172 public Date getCreateDate() {
173 return _createDate;
174 }
175
176 public void setCreateDate(Date createDate) {
177 _createDate = createDate;
178 }
179
180 public Date getModifiedDate() {
181 return _modifiedDate;
182 }
183
184 public void setModifiedDate(Date modifiedDate) {
185 _modifiedDate = modifiedDate;
186 }
187
188 public boolean getDefaultPolicy() {
189 return _defaultPolicy;
190 }
191
192 public boolean isDefaultPolicy() {
193 return _defaultPolicy;
194 }
195
196 public void setDefaultPolicy(boolean defaultPolicy) {
197 _defaultPolicy = defaultPolicy;
198 }
199
200 public String getName() {
201 return _name;
202 }
203
204 public void setName(String name) {
205 _name = name;
206 }
207
208 public String getDescription() {
209 return _description;
210 }
211
212 public void setDescription(String description) {
213 _description = description;
214 }
215
216 public boolean getChangeable() {
217 return _changeable;
218 }
219
220 public boolean isChangeable() {
221 return _changeable;
222 }
223
224 public void setChangeable(boolean changeable) {
225 _changeable = changeable;
226 }
227
228 public boolean getChangeRequired() {
229 return _changeRequired;
230 }
231
232 public boolean isChangeRequired() {
233 return _changeRequired;
234 }
235
236 public void setChangeRequired(boolean changeRequired) {
237 _changeRequired = changeRequired;
238 }
239
240 public long getMinAge() {
241 return _minAge;
242 }
243
244 public void setMinAge(long minAge) {
245 _minAge = minAge;
246 }
247
248 public boolean getCheckSyntax() {
249 return _checkSyntax;
250 }
251
252 public boolean isCheckSyntax() {
253 return _checkSyntax;
254 }
255
256 public void setCheckSyntax(boolean checkSyntax) {
257 _checkSyntax = checkSyntax;
258 }
259
260 public boolean getAllowDictionaryWords() {
261 return _allowDictionaryWords;
262 }
263
264 public boolean isAllowDictionaryWords() {
265 return _allowDictionaryWords;
266 }
267
268 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
269 _allowDictionaryWords = allowDictionaryWords;
270 }
271
272 public int getMinAlphanumeric() {
273 return _minAlphanumeric;
274 }
275
276 public void setMinAlphanumeric(int minAlphanumeric) {
277 _minAlphanumeric = minAlphanumeric;
278 }
279
280 public int getMinLength() {
281 return _minLength;
282 }
283
284 public void setMinLength(int minLength) {
285 _minLength = minLength;
286 }
287
288 public int getMinLowerCase() {
289 return _minLowerCase;
290 }
291
292 public void setMinLowerCase(int minLowerCase) {
293 _minLowerCase = minLowerCase;
294 }
295
296 public int getMinNumbers() {
297 return _minNumbers;
298 }
299
300 public void setMinNumbers(int minNumbers) {
301 _minNumbers = minNumbers;
302 }
303
304 public int getMinSymbols() {
305 return _minSymbols;
306 }
307
308 public void setMinSymbols(int minSymbols) {
309 _minSymbols = minSymbols;
310 }
311
312 public int getMinUpperCase() {
313 return _minUpperCase;
314 }
315
316 public void setMinUpperCase(int minUpperCase) {
317 _minUpperCase = minUpperCase;
318 }
319
320 public String getRegex() {
321 return _regex;
322 }
323
324 public void setRegex(String regex) {
325 _regex = regex;
326 }
327
328 public boolean getHistory() {
329 return _history;
330 }
331
332 public boolean isHistory() {
333 return _history;
334 }
335
336 public void setHistory(boolean history) {
337 _history = history;
338 }
339
340 public int getHistoryCount() {
341 return _historyCount;
342 }
343
344 public void setHistoryCount(int historyCount) {
345 _historyCount = historyCount;
346 }
347
348 public boolean getExpireable() {
349 return _expireable;
350 }
351
352 public boolean isExpireable() {
353 return _expireable;
354 }
355
356 public void setExpireable(boolean expireable) {
357 _expireable = expireable;
358 }
359
360 public long getMaxAge() {
361 return _maxAge;
362 }
363
364 public void setMaxAge(long maxAge) {
365 _maxAge = maxAge;
366 }
367
368 public long getWarningTime() {
369 return _warningTime;
370 }
371
372 public void setWarningTime(long warningTime) {
373 _warningTime = warningTime;
374 }
375
376 public int getGraceLimit() {
377 return _graceLimit;
378 }
379
380 public void setGraceLimit(int graceLimit) {
381 _graceLimit = graceLimit;
382 }
383
384 public boolean getLockout() {
385 return _lockout;
386 }
387
388 public boolean isLockout() {
389 return _lockout;
390 }
391
392 public void setLockout(boolean lockout) {
393 _lockout = lockout;
394 }
395
396 public int getMaxFailure() {
397 return _maxFailure;
398 }
399
400 public void setMaxFailure(int maxFailure) {
401 _maxFailure = maxFailure;
402 }
403
404 public long getLockoutDuration() {
405 return _lockoutDuration;
406 }
407
408 public void setLockoutDuration(long lockoutDuration) {
409 _lockoutDuration = lockoutDuration;
410 }
411
412 public boolean getRequireUnlock() {
413 return _requireUnlock;
414 }
415
416 public boolean isRequireUnlock() {
417 return _requireUnlock;
418 }
419
420 public void setRequireUnlock(boolean requireUnlock) {
421 _requireUnlock = requireUnlock;
422 }
423
424 public long getResetFailureCount() {
425 return _resetFailureCount;
426 }
427
428 public void setResetFailureCount(long resetFailureCount) {
429 _resetFailureCount = resetFailureCount;
430 }
431
432 public long getResetTicketMaxAge() {
433 return _resetTicketMaxAge;
434 }
435
436 public void setResetTicketMaxAge(long resetTicketMaxAge) {
437 _resetTicketMaxAge = resetTicketMaxAge;
438 }
439
440 private long _mvccVersion;
441 private String _uuid;
442 private long _passwordPolicyId;
443 private long _companyId;
444 private long _userId;
445 private String _userName;
446 private Date _createDate;
447 private Date _modifiedDate;
448 private boolean _defaultPolicy;
449 private String _name;
450 private String _description;
451 private boolean _changeable;
452 private boolean _changeRequired;
453 private long _minAge;
454 private boolean _checkSyntax;
455 private boolean _allowDictionaryWords;
456 private int _minAlphanumeric;
457 private int _minLength;
458 private int _minLowerCase;
459 private int _minNumbers;
460 private int _minSymbols;
461 private int _minUpperCase;
462 private String _regex;
463 private boolean _history;
464 private int _historyCount;
465 private boolean _expireable;
466 private long _maxAge;
467 private long _warningTime;
468 private int _graceLimit;
469 private boolean _lockout;
470 private int _maxFailure;
471 private long _lockoutDuration;
472 private boolean _requireUnlock;
473 private long _resetFailureCount;
474 private long _resetTicketMaxAge;
475 }