1
14
15 package com.liferay.portal.model.impl;
16
17 import com.liferay.portal.kernel.bean.ReadOnlyBeanHandler;
18 import com.liferay.portal.kernel.exception.SystemException;
19 import com.liferay.portal.kernel.util.GetterUtil;
20 import com.liferay.portal.kernel.util.HtmlUtil;
21 import com.liferay.portal.kernel.util.StringBundler;
22 import com.liferay.portal.model.PasswordPolicy;
23 import com.liferay.portal.model.PasswordPolicySoap;
24 import com.liferay.portal.service.ServiceContext;
25 import com.liferay.portal.util.PortalUtil;
26
27 import com.liferay.portlet.expando.model.ExpandoBridge;
28 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
29
30 import java.io.Serializable;
31
32 import java.lang.reflect.Proxy;
33
34 import java.sql.Types;
35
36 import java.util.ArrayList;
37 import java.util.Date;
38 import java.util.List;
39
40
59 public class PasswordPolicyModelImpl extends BaseModelImpl<PasswordPolicy> {
60 public static final String TABLE_NAME = "PasswordPolicy";
61 public static final Object[][] TABLE_COLUMNS = {
62 { "passwordPolicyId", new Integer(Types.BIGINT) },
63 { "companyId", new Integer(Types.BIGINT) },
64 { "userId", new Integer(Types.BIGINT) },
65 { "userName", new Integer(Types.VARCHAR) },
66 { "createDate", new Integer(Types.TIMESTAMP) },
67 { "modifiedDate", new Integer(Types.TIMESTAMP) },
68 { "defaultPolicy", new Integer(Types.BOOLEAN) },
69 { "name", new Integer(Types.VARCHAR) },
70 { "description", new Integer(Types.VARCHAR) },
71 { "changeable", new Integer(Types.BOOLEAN) },
72 { "changeRequired", new Integer(Types.BOOLEAN) },
73 { "minAge", new Integer(Types.BIGINT) },
74 { "checkSyntax", new Integer(Types.BOOLEAN) },
75 { "allowDictionaryWords", new Integer(Types.BOOLEAN) },
76 { "minLength", new Integer(Types.INTEGER) },
77 { "history", new Integer(Types.BOOLEAN) },
78 { "historyCount", new Integer(Types.INTEGER) },
79 { "expireable", new Integer(Types.BOOLEAN) },
80 { "maxAge", new Integer(Types.BIGINT) },
81 { "warningTime", new Integer(Types.BIGINT) },
82 { "graceLimit", new Integer(Types.INTEGER) },
83 { "lockout", new Integer(Types.BOOLEAN) },
84 { "maxFailure", new Integer(Types.INTEGER) },
85 { "lockoutDuration", new Integer(Types.BIGINT) },
86 { "requireUnlock", new Integer(Types.BOOLEAN) },
87 { "resetFailureCount", new Integer(Types.BIGINT) }
88 };
89 public static final String TABLE_SQL_CREATE = "create table PasswordPolicy (passwordPolicyId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,defaultPolicy BOOLEAN,name VARCHAR(75) null,description STRING null,changeable BOOLEAN,changeRequired BOOLEAN,minAge LONG,checkSyntax BOOLEAN,allowDictionaryWords BOOLEAN,minLength INTEGER,history BOOLEAN,historyCount INTEGER,expireable BOOLEAN,maxAge LONG,warningTime LONG,graceLimit INTEGER,lockout BOOLEAN,maxFailure INTEGER,lockoutDuration LONG,requireUnlock BOOLEAN,resetFailureCount LONG)";
90 public static final String TABLE_SQL_DROP = "drop table PasswordPolicy";
91 public static final String DATA_SOURCE = "liferayDataSource";
92 public static final String SESSION_FACTORY = "liferaySessionFactory";
93 public static final String TX_MANAGER = "liferayTransactionManager";
94 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
95 "value.object.entity.cache.enabled.com.liferay.portal.model.PasswordPolicy"),
96 true);
97 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
98 "value.object.finder.cache.enabled.com.liferay.portal.model.PasswordPolicy"),
99 true);
100
101 public static PasswordPolicy toModel(PasswordPolicySoap soapModel) {
102 PasswordPolicy model = new PasswordPolicyImpl();
103
104 model.setPasswordPolicyId(soapModel.getPasswordPolicyId());
105 model.setCompanyId(soapModel.getCompanyId());
106 model.setUserId(soapModel.getUserId());
107 model.setUserName(soapModel.getUserName());
108 model.setCreateDate(soapModel.getCreateDate());
109 model.setModifiedDate(soapModel.getModifiedDate());
110 model.setDefaultPolicy(soapModel.getDefaultPolicy());
111 model.setName(soapModel.getName());
112 model.setDescription(soapModel.getDescription());
113 model.setChangeable(soapModel.getChangeable());
114 model.setChangeRequired(soapModel.getChangeRequired());
115 model.setMinAge(soapModel.getMinAge());
116 model.setCheckSyntax(soapModel.getCheckSyntax());
117 model.setAllowDictionaryWords(soapModel.getAllowDictionaryWords());
118 model.setMinLength(soapModel.getMinLength());
119 model.setHistory(soapModel.getHistory());
120 model.setHistoryCount(soapModel.getHistoryCount());
121 model.setExpireable(soapModel.getExpireable());
122 model.setMaxAge(soapModel.getMaxAge());
123 model.setWarningTime(soapModel.getWarningTime());
124 model.setGraceLimit(soapModel.getGraceLimit());
125 model.setLockout(soapModel.getLockout());
126 model.setMaxFailure(soapModel.getMaxFailure());
127 model.setLockoutDuration(soapModel.getLockoutDuration());
128 model.setRequireUnlock(soapModel.getRequireUnlock());
129 model.setResetFailureCount(soapModel.getResetFailureCount());
130
131 return model;
132 }
133
134 public static List<PasswordPolicy> toModels(PasswordPolicySoap[] soapModels) {
135 List<PasswordPolicy> models = new ArrayList<PasswordPolicy>(soapModels.length);
136
137 for (PasswordPolicySoap soapModel : soapModels) {
138 models.add(toModel(soapModel));
139 }
140
141 return models;
142 }
143
144 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
145 "lock.expiration.time.com.liferay.portal.model.PasswordPolicy"));
146
147 public PasswordPolicyModelImpl() {
148 }
149
150 public long getPrimaryKey() {
151 return _passwordPolicyId;
152 }
153
154 public void setPrimaryKey(long pk) {
155 setPasswordPolicyId(pk);
156 }
157
158 public Serializable getPrimaryKeyObj() {
159 return new Long(_passwordPolicyId);
160 }
161
162 public long getPasswordPolicyId() {
163 return _passwordPolicyId;
164 }
165
166 public void setPasswordPolicyId(long passwordPolicyId) {
167 _passwordPolicyId = passwordPolicyId;
168 }
169
170 public long getCompanyId() {
171 return _companyId;
172 }
173
174 public void setCompanyId(long companyId) {
175 _companyId = companyId;
176
177 if (!_setOriginalCompanyId) {
178 _setOriginalCompanyId = true;
179
180 _originalCompanyId = companyId;
181 }
182 }
183
184 public long getOriginalCompanyId() {
185 return _originalCompanyId;
186 }
187
188 public long getUserId() {
189 return _userId;
190 }
191
192 public void setUserId(long userId) {
193 _userId = userId;
194 }
195
196 public String getUserUuid() throws SystemException {
197 return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
198 }
199
200 public void setUserUuid(String userUuid) {
201 _userUuid = userUuid;
202 }
203
204 public String getUserName() {
205 return GetterUtil.getString(_userName);
206 }
207
208 public void setUserName(String userName) {
209 _userName = userName;
210 }
211
212 public Date getCreateDate() {
213 return _createDate;
214 }
215
216 public void setCreateDate(Date createDate) {
217 _createDate = createDate;
218 }
219
220 public Date getModifiedDate() {
221 return _modifiedDate;
222 }
223
224 public void setModifiedDate(Date modifiedDate) {
225 _modifiedDate = modifiedDate;
226 }
227
228 public boolean getDefaultPolicy() {
229 return _defaultPolicy;
230 }
231
232 public boolean isDefaultPolicy() {
233 return _defaultPolicy;
234 }
235
236 public void setDefaultPolicy(boolean defaultPolicy) {
237 _defaultPolicy = defaultPolicy;
238
239 if (!_setOriginalDefaultPolicy) {
240 _setOriginalDefaultPolicy = true;
241
242 _originalDefaultPolicy = defaultPolicy;
243 }
244 }
245
246 public boolean getOriginalDefaultPolicy() {
247 return _originalDefaultPolicy;
248 }
249
250 public String getName() {
251 return GetterUtil.getString(_name);
252 }
253
254 public void setName(String name) {
255 _name = name;
256
257 if (_originalName == null) {
258 _originalName = name;
259 }
260 }
261
262 public String getOriginalName() {
263 return GetterUtil.getString(_originalName);
264 }
265
266 public String getDescription() {
267 return GetterUtil.getString(_description);
268 }
269
270 public void setDescription(String description) {
271 _description = description;
272 }
273
274 public boolean getChangeable() {
275 return _changeable;
276 }
277
278 public boolean isChangeable() {
279 return _changeable;
280 }
281
282 public void setChangeable(boolean changeable) {
283 _changeable = changeable;
284 }
285
286 public boolean getChangeRequired() {
287 return _changeRequired;
288 }
289
290 public boolean isChangeRequired() {
291 return _changeRequired;
292 }
293
294 public void setChangeRequired(boolean changeRequired) {
295 _changeRequired = changeRequired;
296 }
297
298 public long getMinAge() {
299 return _minAge;
300 }
301
302 public void setMinAge(long minAge) {
303 _minAge = minAge;
304 }
305
306 public boolean getCheckSyntax() {
307 return _checkSyntax;
308 }
309
310 public boolean isCheckSyntax() {
311 return _checkSyntax;
312 }
313
314 public void setCheckSyntax(boolean checkSyntax) {
315 _checkSyntax = checkSyntax;
316 }
317
318 public boolean getAllowDictionaryWords() {
319 return _allowDictionaryWords;
320 }
321
322 public boolean isAllowDictionaryWords() {
323 return _allowDictionaryWords;
324 }
325
326 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
327 _allowDictionaryWords = allowDictionaryWords;
328 }
329
330 public int getMinLength() {
331 return _minLength;
332 }
333
334 public void setMinLength(int minLength) {
335 _minLength = minLength;
336 }
337
338 public boolean getHistory() {
339 return _history;
340 }
341
342 public boolean isHistory() {
343 return _history;
344 }
345
346 public void setHistory(boolean history) {
347 _history = history;
348 }
349
350 public int getHistoryCount() {
351 return _historyCount;
352 }
353
354 public void setHistoryCount(int historyCount) {
355 _historyCount = historyCount;
356 }
357
358 public boolean getExpireable() {
359 return _expireable;
360 }
361
362 public boolean isExpireable() {
363 return _expireable;
364 }
365
366 public void setExpireable(boolean expireable) {
367 _expireable = expireable;
368 }
369
370 public long getMaxAge() {
371 return _maxAge;
372 }
373
374 public void setMaxAge(long maxAge) {
375 _maxAge = maxAge;
376 }
377
378 public long getWarningTime() {
379 return _warningTime;
380 }
381
382 public void setWarningTime(long warningTime) {
383 _warningTime = warningTime;
384 }
385
386 public int getGraceLimit() {
387 return _graceLimit;
388 }
389
390 public void setGraceLimit(int graceLimit) {
391 _graceLimit = graceLimit;
392 }
393
394 public boolean getLockout() {
395 return _lockout;
396 }
397
398 public boolean isLockout() {
399 return _lockout;
400 }
401
402 public void setLockout(boolean lockout) {
403 _lockout = lockout;
404 }
405
406 public int getMaxFailure() {
407 return _maxFailure;
408 }
409
410 public void setMaxFailure(int maxFailure) {
411 _maxFailure = maxFailure;
412 }
413
414 public long getLockoutDuration() {
415 return _lockoutDuration;
416 }
417
418 public void setLockoutDuration(long lockoutDuration) {
419 _lockoutDuration = lockoutDuration;
420 }
421
422 public boolean getRequireUnlock() {
423 return _requireUnlock;
424 }
425
426 public boolean isRequireUnlock() {
427 return _requireUnlock;
428 }
429
430 public void setRequireUnlock(boolean requireUnlock) {
431 _requireUnlock = requireUnlock;
432 }
433
434 public long getResetFailureCount() {
435 return _resetFailureCount;
436 }
437
438 public void setResetFailureCount(long resetFailureCount) {
439 _resetFailureCount = resetFailureCount;
440 }
441
442 public PasswordPolicy toEscapedModel() {
443 if (isEscapedModel()) {
444 return (PasswordPolicy)this;
445 }
446 else {
447 PasswordPolicy model = new PasswordPolicyImpl();
448
449 model.setNew(isNew());
450 model.setEscapedModel(true);
451
452 model.setPasswordPolicyId(getPasswordPolicyId());
453 model.setCompanyId(getCompanyId());
454 model.setUserId(getUserId());
455 model.setUserName(HtmlUtil.escape(getUserName()));
456 model.setCreateDate(getCreateDate());
457 model.setModifiedDate(getModifiedDate());
458 model.setDefaultPolicy(getDefaultPolicy());
459 model.setName(HtmlUtil.escape(getName()));
460 model.setDescription(HtmlUtil.escape(getDescription()));
461 model.setChangeable(getChangeable());
462 model.setChangeRequired(getChangeRequired());
463 model.setMinAge(getMinAge());
464 model.setCheckSyntax(getCheckSyntax());
465 model.setAllowDictionaryWords(getAllowDictionaryWords());
466 model.setMinLength(getMinLength());
467 model.setHistory(getHistory());
468 model.setHistoryCount(getHistoryCount());
469 model.setExpireable(getExpireable());
470 model.setMaxAge(getMaxAge());
471 model.setWarningTime(getWarningTime());
472 model.setGraceLimit(getGraceLimit());
473 model.setLockout(getLockout());
474 model.setMaxFailure(getMaxFailure());
475 model.setLockoutDuration(getLockoutDuration());
476 model.setRequireUnlock(getRequireUnlock());
477 model.setResetFailureCount(getResetFailureCount());
478
479 model = (PasswordPolicy)Proxy.newProxyInstance(PasswordPolicy.class.getClassLoader(),
480 new Class[] { PasswordPolicy.class },
481 new ReadOnlyBeanHandler(model));
482
483 return model;
484 }
485 }
486
487 public ExpandoBridge getExpandoBridge() {
488 if (_expandoBridge == null) {
489 _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
490 PasswordPolicy.class.getName(), getPrimaryKey());
491 }
492
493 return _expandoBridge;
494 }
495
496 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
497 getExpandoBridge().setAttributes(serviceContext);
498 }
499
500 public Object clone() {
501 PasswordPolicyImpl clone = new PasswordPolicyImpl();
502
503 clone.setPasswordPolicyId(getPasswordPolicyId());
504 clone.setCompanyId(getCompanyId());
505 clone.setUserId(getUserId());
506 clone.setUserName(getUserName());
507 clone.setCreateDate(getCreateDate());
508 clone.setModifiedDate(getModifiedDate());
509 clone.setDefaultPolicy(getDefaultPolicy());
510 clone.setName(getName());
511 clone.setDescription(getDescription());
512 clone.setChangeable(getChangeable());
513 clone.setChangeRequired(getChangeRequired());
514 clone.setMinAge(getMinAge());
515 clone.setCheckSyntax(getCheckSyntax());
516 clone.setAllowDictionaryWords(getAllowDictionaryWords());
517 clone.setMinLength(getMinLength());
518 clone.setHistory(getHistory());
519 clone.setHistoryCount(getHistoryCount());
520 clone.setExpireable(getExpireable());
521 clone.setMaxAge(getMaxAge());
522 clone.setWarningTime(getWarningTime());
523 clone.setGraceLimit(getGraceLimit());
524 clone.setLockout(getLockout());
525 clone.setMaxFailure(getMaxFailure());
526 clone.setLockoutDuration(getLockoutDuration());
527 clone.setRequireUnlock(getRequireUnlock());
528 clone.setResetFailureCount(getResetFailureCount());
529
530 return clone;
531 }
532
533 public int compareTo(PasswordPolicy passwordPolicy) {
534 long pk = passwordPolicy.getPrimaryKey();
535
536 if (getPrimaryKey() < pk) {
537 return -1;
538 }
539 else if (getPrimaryKey() > pk) {
540 return 1;
541 }
542 else {
543 return 0;
544 }
545 }
546
547 public boolean equals(Object obj) {
548 if (obj == null) {
549 return false;
550 }
551
552 PasswordPolicy passwordPolicy = null;
553
554 try {
555 passwordPolicy = (PasswordPolicy)obj;
556 }
557 catch (ClassCastException cce) {
558 return false;
559 }
560
561 long pk = passwordPolicy.getPrimaryKey();
562
563 if (getPrimaryKey() == pk) {
564 return true;
565 }
566 else {
567 return false;
568 }
569 }
570
571 public int hashCode() {
572 return (int)getPrimaryKey();
573 }
574
575 public String toString() {
576 StringBundler sb = new StringBundler(53);
577
578 sb.append("{passwordPolicyId=");
579 sb.append(getPasswordPolicyId());
580 sb.append(", companyId=");
581 sb.append(getCompanyId());
582 sb.append(", userId=");
583 sb.append(getUserId());
584 sb.append(", userName=");
585 sb.append(getUserName());
586 sb.append(", createDate=");
587 sb.append(getCreateDate());
588 sb.append(", modifiedDate=");
589 sb.append(getModifiedDate());
590 sb.append(", defaultPolicy=");
591 sb.append(getDefaultPolicy());
592 sb.append(", name=");
593 sb.append(getName());
594 sb.append(", description=");
595 sb.append(getDescription());
596 sb.append(", changeable=");
597 sb.append(getChangeable());
598 sb.append(", changeRequired=");
599 sb.append(getChangeRequired());
600 sb.append(", minAge=");
601 sb.append(getMinAge());
602 sb.append(", checkSyntax=");
603 sb.append(getCheckSyntax());
604 sb.append(", allowDictionaryWords=");
605 sb.append(getAllowDictionaryWords());
606 sb.append(", minLength=");
607 sb.append(getMinLength());
608 sb.append(", history=");
609 sb.append(getHistory());
610 sb.append(", historyCount=");
611 sb.append(getHistoryCount());
612 sb.append(", expireable=");
613 sb.append(getExpireable());
614 sb.append(", maxAge=");
615 sb.append(getMaxAge());
616 sb.append(", warningTime=");
617 sb.append(getWarningTime());
618 sb.append(", graceLimit=");
619 sb.append(getGraceLimit());
620 sb.append(", lockout=");
621 sb.append(getLockout());
622 sb.append(", maxFailure=");
623 sb.append(getMaxFailure());
624 sb.append(", lockoutDuration=");
625 sb.append(getLockoutDuration());
626 sb.append(", requireUnlock=");
627 sb.append(getRequireUnlock());
628 sb.append(", resetFailureCount=");
629 sb.append(getResetFailureCount());
630 sb.append("}");
631
632 return sb.toString();
633 }
634
635 public String toXmlString() {
636 StringBundler sb = new StringBundler(82);
637
638 sb.append("<model><model-name>");
639 sb.append("com.liferay.portal.model.PasswordPolicy");
640 sb.append("</model-name>");
641
642 sb.append(
643 "<column><column-name>passwordPolicyId</column-name><column-value><![CDATA[");
644 sb.append(getPasswordPolicyId());
645 sb.append("]]></column-value></column>");
646 sb.append(
647 "<column><column-name>companyId</column-name><column-value><![CDATA[");
648 sb.append(getCompanyId());
649 sb.append("]]></column-value></column>");
650 sb.append(
651 "<column><column-name>userId</column-name><column-value><![CDATA[");
652 sb.append(getUserId());
653 sb.append("]]></column-value></column>");
654 sb.append(
655 "<column><column-name>userName</column-name><column-value><![CDATA[");
656 sb.append(getUserName());
657 sb.append("]]></column-value></column>");
658 sb.append(
659 "<column><column-name>createDate</column-name><column-value><![CDATA[");
660 sb.append(getCreateDate());
661 sb.append("]]></column-value></column>");
662 sb.append(
663 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
664 sb.append(getModifiedDate());
665 sb.append("]]></column-value></column>");
666 sb.append(
667 "<column><column-name>defaultPolicy</column-name><column-value><![CDATA[");
668 sb.append(getDefaultPolicy());
669 sb.append("]]></column-value></column>");
670 sb.append(
671 "<column><column-name>name</column-name><column-value><![CDATA[");
672 sb.append(getName());
673 sb.append("]]></column-value></column>");
674 sb.append(
675 "<column><column-name>description</column-name><column-value><![CDATA[");
676 sb.append(getDescription());
677 sb.append("]]></column-value></column>");
678 sb.append(
679 "<column><column-name>changeable</column-name><column-value><![CDATA[");
680 sb.append(getChangeable());
681 sb.append("]]></column-value></column>");
682 sb.append(
683 "<column><column-name>changeRequired</column-name><column-value><![CDATA[");
684 sb.append(getChangeRequired());
685 sb.append("]]></column-value></column>");
686 sb.append(
687 "<column><column-name>minAge</column-name><column-value><![CDATA[");
688 sb.append(getMinAge());
689 sb.append("]]></column-value></column>");
690 sb.append(
691 "<column><column-name>checkSyntax</column-name><column-value><![CDATA[");
692 sb.append(getCheckSyntax());
693 sb.append("]]></column-value></column>");
694 sb.append(
695 "<column><column-name>allowDictionaryWords</column-name><column-value><![CDATA[");
696 sb.append(getAllowDictionaryWords());
697 sb.append("]]></column-value></column>");
698 sb.append(
699 "<column><column-name>minLength</column-name><column-value><![CDATA[");
700 sb.append(getMinLength());
701 sb.append("]]></column-value></column>");
702 sb.append(
703 "<column><column-name>history</column-name><column-value><![CDATA[");
704 sb.append(getHistory());
705 sb.append("]]></column-value></column>");
706 sb.append(
707 "<column><column-name>historyCount</column-name><column-value><![CDATA[");
708 sb.append(getHistoryCount());
709 sb.append("]]></column-value></column>");
710 sb.append(
711 "<column><column-name>expireable</column-name><column-value><![CDATA[");
712 sb.append(getExpireable());
713 sb.append("]]></column-value></column>");
714 sb.append(
715 "<column><column-name>maxAge</column-name><column-value><![CDATA[");
716 sb.append(getMaxAge());
717 sb.append("]]></column-value></column>");
718 sb.append(
719 "<column><column-name>warningTime</column-name><column-value><![CDATA[");
720 sb.append(getWarningTime());
721 sb.append("]]></column-value></column>");
722 sb.append(
723 "<column><column-name>graceLimit</column-name><column-value><![CDATA[");
724 sb.append(getGraceLimit());
725 sb.append("]]></column-value></column>");
726 sb.append(
727 "<column><column-name>lockout</column-name><column-value><![CDATA[");
728 sb.append(getLockout());
729 sb.append("]]></column-value></column>");
730 sb.append(
731 "<column><column-name>maxFailure</column-name><column-value><![CDATA[");
732 sb.append(getMaxFailure());
733 sb.append("]]></column-value></column>");
734 sb.append(
735 "<column><column-name>lockoutDuration</column-name><column-value><![CDATA[");
736 sb.append(getLockoutDuration());
737 sb.append("]]></column-value></column>");
738 sb.append(
739 "<column><column-name>requireUnlock</column-name><column-value><![CDATA[");
740 sb.append(getRequireUnlock());
741 sb.append("]]></column-value></column>");
742 sb.append(
743 "<column><column-name>resetFailureCount</column-name><column-value><![CDATA[");
744 sb.append(getResetFailureCount());
745 sb.append("]]></column-value></column>");
746
747 sb.append("</model>");
748
749 return sb.toString();
750 }
751
752 private long _passwordPolicyId;
753 private long _companyId;
754 private long _originalCompanyId;
755 private boolean _setOriginalCompanyId;
756 private long _userId;
757 private String _userUuid;
758 private String _userName;
759 private Date _createDate;
760 private Date _modifiedDate;
761 private boolean _defaultPolicy;
762 private boolean _originalDefaultPolicy;
763 private boolean _setOriginalDefaultPolicy;
764 private String _name;
765 private String _originalName;
766 private String _description;
767 private boolean _changeable;
768 private boolean _changeRequired;
769 private long _minAge;
770 private boolean _checkSyntax;
771 private boolean _allowDictionaryWords;
772 private int _minLength;
773 private boolean _history;
774 private int _historyCount;
775 private boolean _expireable;
776 private long _maxAge;
777 private long _warningTime;
778 private int _graceLimit;
779 private boolean _lockout;
780 private int _maxFailure;
781 private long _lockoutDuration;
782 private boolean _requireUnlock;
783 private long _resetFailureCount;
784 private transient ExpandoBridge _expandoBridge;
785 }