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