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