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