001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    import com.liferay.portlet.exportimport.lar.StagedModelType;
024    
025    import java.io.Serializable;
026    
027    import java.util.Date;
028    import java.util.HashMap;
029    import java.util.Map;
030    
031    /**
032     * <p>
033     * This class is a wrapper for {@link PasswordPolicy}.
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see PasswordPolicy
038     * @generated
039     */
040    @ProviderType
041    public class PasswordPolicyWrapper implements PasswordPolicy,
042            ModelWrapper<PasswordPolicy> {
043            public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
044                    _passwordPolicy = passwordPolicy;
045            }
046    
047            @Override
048            public Class<?> getModelClass() {
049                    return PasswordPolicy.class;
050            }
051    
052            @Override
053            public String getModelClassName() {
054                    return PasswordPolicy.class.getName();
055            }
056    
057            @Override
058            public Map<String, Object> getModelAttributes() {
059                    Map<String, Object> attributes = new HashMap<String, Object>();
060    
061                    attributes.put("mvccVersion", getMvccVersion());
062                    attributes.put("uuid", getUuid());
063                    attributes.put("passwordPolicyId", getPasswordPolicyId());
064                    attributes.put("companyId", getCompanyId());
065                    attributes.put("userId", getUserId());
066                    attributes.put("userName", getUserName());
067                    attributes.put("createDate", getCreateDate());
068                    attributes.put("modifiedDate", getModifiedDate());
069                    attributes.put("defaultPolicy", getDefaultPolicy());
070                    attributes.put("name", getName());
071                    attributes.put("description", getDescription());
072                    attributes.put("changeable", getChangeable());
073                    attributes.put("changeRequired", getChangeRequired());
074                    attributes.put("minAge", getMinAge());
075                    attributes.put("checkSyntax", getCheckSyntax());
076                    attributes.put("allowDictionaryWords", getAllowDictionaryWords());
077                    attributes.put("minAlphanumeric", getMinAlphanumeric());
078                    attributes.put("minLength", getMinLength());
079                    attributes.put("minLowerCase", getMinLowerCase());
080                    attributes.put("minNumbers", getMinNumbers());
081                    attributes.put("minSymbols", getMinSymbols());
082                    attributes.put("minUpperCase", getMinUpperCase());
083                    attributes.put("regex", getRegex());
084                    attributes.put("history", getHistory());
085                    attributes.put("historyCount", getHistoryCount());
086                    attributes.put("expireable", getExpireable());
087                    attributes.put("maxAge", getMaxAge());
088                    attributes.put("warningTime", getWarningTime());
089                    attributes.put("graceLimit", getGraceLimit());
090                    attributes.put("lockout", getLockout());
091                    attributes.put("maxFailure", getMaxFailure());
092                    attributes.put("lockoutDuration", getLockoutDuration());
093                    attributes.put("requireUnlock", getRequireUnlock());
094                    attributes.put("resetFailureCount", getResetFailureCount());
095                    attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
096    
097                    return attributes;
098            }
099    
100            @Override
101            public void setModelAttributes(Map<String, Object> attributes) {
102                    Long mvccVersion = (Long)attributes.get("mvccVersion");
103    
104                    if (mvccVersion != null) {
105                            setMvccVersion(mvccVersion);
106                    }
107    
108                    String uuid = (String)attributes.get("uuid");
109    
110                    if (uuid != null) {
111                            setUuid(uuid);
112                    }
113    
114                    Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
115    
116                    if (passwordPolicyId != null) {
117                            setPasswordPolicyId(passwordPolicyId);
118                    }
119    
120                    Long companyId = (Long)attributes.get("companyId");
121    
122                    if (companyId != null) {
123                            setCompanyId(companyId);
124                    }
125    
126                    Long userId = (Long)attributes.get("userId");
127    
128                    if (userId != null) {
129                            setUserId(userId);
130                    }
131    
132                    String userName = (String)attributes.get("userName");
133    
134                    if (userName != null) {
135                            setUserName(userName);
136                    }
137    
138                    Date createDate = (Date)attributes.get("createDate");
139    
140                    if (createDate != null) {
141                            setCreateDate(createDate);
142                    }
143    
144                    Date modifiedDate = (Date)attributes.get("modifiedDate");
145    
146                    if (modifiedDate != null) {
147                            setModifiedDate(modifiedDate);
148                    }
149    
150                    Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
151    
152                    if (defaultPolicy != null) {
153                            setDefaultPolicy(defaultPolicy);
154                    }
155    
156                    String name = (String)attributes.get("name");
157    
158                    if (name != null) {
159                            setName(name);
160                    }
161    
162                    String description = (String)attributes.get("description");
163    
164                    if (description != null) {
165                            setDescription(description);
166                    }
167    
168                    Boolean changeable = (Boolean)attributes.get("changeable");
169    
170                    if (changeable != null) {
171                            setChangeable(changeable);
172                    }
173    
174                    Boolean changeRequired = (Boolean)attributes.get("changeRequired");
175    
176                    if (changeRequired != null) {
177                            setChangeRequired(changeRequired);
178                    }
179    
180                    Long minAge = (Long)attributes.get("minAge");
181    
182                    if (minAge != null) {
183                            setMinAge(minAge);
184                    }
185    
186                    Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
187    
188                    if (checkSyntax != null) {
189                            setCheckSyntax(checkSyntax);
190                    }
191    
192                    Boolean allowDictionaryWords = (Boolean)attributes.get(
193                                    "allowDictionaryWords");
194    
195                    if (allowDictionaryWords != null) {
196                            setAllowDictionaryWords(allowDictionaryWords);
197                    }
198    
199                    Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
200    
201                    if (minAlphanumeric != null) {
202                            setMinAlphanumeric(minAlphanumeric);
203                    }
204    
205                    Integer minLength = (Integer)attributes.get("minLength");
206    
207                    if (minLength != null) {
208                            setMinLength(minLength);
209                    }
210    
211                    Integer minLowerCase = (Integer)attributes.get("minLowerCase");
212    
213                    if (minLowerCase != null) {
214                            setMinLowerCase(minLowerCase);
215                    }
216    
217                    Integer minNumbers = (Integer)attributes.get("minNumbers");
218    
219                    if (minNumbers != null) {
220                            setMinNumbers(minNumbers);
221                    }
222    
223                    Integer minSymbols = (Integer)attributes.get("minSymbols");
224    
225                    if (minSymbols != null) {
226                            setMinSymbols(minSymbols);
227                    }
228    
229                    Integer minUpperCase = (Integer)attributes.get("minUpperCase");
230    
231                    if (minUpperCase != null) {
232                            setMinUpperCase(minUpperCase);
233                    }
234    
235                    String regex = (String)attributes.get("regex");
236    
237                    if (regex != null) {
238                            setRegex(regex);
239                    }
240    
241                    Boolean history = (Boolean)attributes.get("history");
242    
243                    if (history != null) {
244                            setHistory(history);
245                    }
246    
247                    Integer historyCount = (Integer)attributes.get("historyCount");
248    
249                    if (historyCount != null) {
250                            setHistoryCount(historyCount);
251                    }
252    
253                    Boolean expireable = (Boolean)attributes.get("expireable");
254    
255                    if (expireable != null) {
256                            setExpireable(expireable);
257                    }
258    
259                    Long maxAge = (Long)attributes.get("maxAge");
260    
261                    if (maxAge != null) {
262                            setMaxAge(maxAge);
263                    }
264    
265                    Long warningTime = (Long)attributes.get("warningTime");
266    
267                    if (warningTime != null) {
268                            setWarningTime(warningTime);
269                    }
270    
271                    Integer graceLimit = (Integer)attributes.get("graceLimit");
272    
273                    if (graceLimit != null) {
274                            setGraceLimit(graceLimit);
275                    }
276    
277                    Boolean lockout = (Boolean)attributes.get("lockout");
278    
279                    if (lockout != null) {
280                            setLockout(lockout);
281                    }
282    
283                    Integer maxFailure = (Integer)attributes.get("maxFailure");
284    
285                    if (maxFailure != null) {
286                            setMaxFailure(maxFailure);
287                    }
288    
289                    Long lockoutDuration = (Long)attributes.get("lockoutDuration");
290    
291                    if (lockoutDuration != null) {
292                            setLockoutDuration(lockoutDuration);
293                    }
294    
295                    Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
296    
297                    if (requireUnlock != null) {
298                            setRequireUnlock(requireUnlock);
299                    }
300    
301                    Long resetFailureCount = (Long)attributes.get("resetFailureCount");
302    
303                    if (resetFailureCount != null) {
304                            setResetFailureCount(resetFailureCount);
305                    }
306    
307                    Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
308    
309                    if (resetTicketMaxAge != null) {
310                            setResetTicketMaxAge(resetTicketMaxAge);
311                    }
312            }
313    
314            @Override
315            public java.lang.Object clone() {
316                    return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
317            }
318    
319            @Override
320            public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
321                    return _passwordPolicy.compareTo(passwordPolicy);
322            }
323    
324            /**
325            * Returns the allow dictionary words of this password policy.
326            *
327            * @return the allow dictionary words of this password policy
328            */
329            @Override
330            public boolean getAllowDictionaryWords() {
331                    return _passwordPolicy.getAllowDictionaryWords();
332            }
333    
334            /**
335            * Returns the change required of this password policy.
336            *
337            * @return the change required of this password policy
338            */
339            @Override
340            public boolean getChangeRequired() {
341                    return _passwordPolicy.getChangeRequired();
342            }
343    
344            /**
345            * Returns the changeable of this password policy.
346            *
347            * @return the changeable of this password policy
348            */
349            @Override
350            public boolean getChangeable() {
351                    return _passwordPolicy.getChangeable();
352            }
353    
354            /**
355            * Returns the check syntax of this password policy.
356            *
357            * @return the check syntax of this password policy
358            */
359            @Override
360            public boolean getCheckSyntax() {
361                    return _passwordPolicy.getCheckSyntax();
362            }
363    
364            /**
365            * Returns the company ID of this password policy.
366            *
367            * @return the company ID of this password policy
368            */
369            @Override
370            public long getCompanyId() {
371                    return _passwordPolicy.getCompanyId();
372            }
373    
374            /**
375            * Returns the create date of this password policy.
376            *
377            * @return the create date of this password policy
378            */
379            @Override
380            public Date getCreateDate() {
381                    return _passwordPolicy.getCreateDate();
382            }
383    
384            /**
385            * Returns the default policy of this password policy.
386            *
387            * @return the default policy of this password policy
388            */
389            @Override
390            public boolean getDefaultPolicy() {
391                    return _passwordPolicy.getDefaultPolicy();
392            }
393    
394            /**
395            * Returns the description of this password policy.
396            *
397            * @return the description of this password policy
398            */
399            @Override
400            public java.lang.String getDescription() {
401                    return _passwordPolicy.getDescription();
402            }
403    
404            @Override
405            public ExpandoBridge getExpandoBridge() {
406                    return _passwordPolicy.getExpandoBridge();
407            }
408    
409            /**
410            * Returns the expireable of this password policy.
411            *
412            * @return the expireable of this password policy
413            */
414            @Override
415            public boolean getExpireable() {
416                    return _passwordPolicy.getExpireable();
417            }
418    
419            /**
420            * Returns the grace limit of this password policy.
421            *
422            * @return the grace limit of this password policy
423            */
424            @Override
425            public int getGraceLimit() {
426                    return _passwordPolicy.getGraceLimit();
427            }
428    
429            /**
430            * Returns the history of this password policy.
431            *
432            * @return the history of this password policy
433            */
434            @Override
435            public boolean getHistory() {
436                    return _passwordPolicy.getHistory();
437            }
438    
439            /**
440            * Returns the history count of this password policy.
441            *
442            * @return the history count of this password policy
443            */
444            @Override
445            public int getHistoryCount() {
446                    return _passwordPolicy.getHistoryCount();
447            }
448    
449            /**
450            * Returns the lockout of this password policy.
451            *
452            * @return the lockout of this password policy
453            */
454            @Override
455            public boolean getLockout() {
456                    return _passwordPolicy.getLockout();
457            }
458    
459            /**
460            * Returns the lockout duration of this password policy.
461            *
462            * @return the lockout duration of this password policy
463            */
464            @Override
465            public long getLockoutDuration() {
466                    return _passwordPolicy.getLockoutDuration();
467            }
468    
469            /**
470            * Returns the max age of this password policy.
471            *
472            * @return the max age of this password policy
473            */
474            @Override
475            public long getMaxAge() {
476                    return _passwordPolicy.getMaxAge();
477            }
478    
479            /**
480            * Returns the max failure of this password policy.
481            *
482            * @return the max failure of this password policy
483            */
484            @Override
485            public int getMaxFailure() {
486                    return _passwordPolicy.getMaxFailure();
487            }
488    
489            /**
490            * Returns the min age of this password policy.
491            *
492            * @return the min age of this password policy
493            */
494            @Override
495            public long getMinAge() {
496                    return _passwordPolicy.getMinAge();
497            }
498    
499            /**
500            * Returns the min alphanumeric of this password policy.
501            *
502            * @return the min alphanumeric of this password policy
503            */
504            @Override
505            public int getMinAlphanumeric() {
506                    return _passwordPolicy.getMinAlphanumeric();
507            }
508    
509            /**
510            * Returns the min length of this password policy.
511            *
512            * @return the min length of this password policy
513            */
514            @Override
515            public int getMinLength() {
516                    return _passwordPolicy.getMinLength();
517            }
518    
519            /**
520            * Returns the min lower case of this password policy.
521            *
522            * @return the min lower case of this password policy
523            */
524            @Override
525            public int getMinLowerCase() {
526                    return _passwordPolicy.getMinLowerCase();
527            }
528    
529            /**
530            * Returns the min numbers of this password policy.
531            *
532            * @return the min numbers of this password policy
533            */
534            @Override
535            public int getMinNumbers() {
536                    return _passwordPolicy.getMinNumbers();
537            }
538    
539            /**
540            * Returns the min symbols of this password policy.
541            *
542            * @return the min symbols of this password policy
543            */
544            @Override
545            public int getMinSymbols() {
546                    return _passwordPolicy.getMinSymbols();
547            }
548    
549            /**
550            * Returns the min upper case of this password policy.
551            *
552            * @return the min upper case of this password policy
553            */
554            @Override
555            public int getMinUpperCase() {
556                    return _passwordPolicy.getMinUpperCase();
557            }
558    
559            /**
560            * Returns the modified date of this password policy.
561            *
562            * @return the modified date of this password policy
563            */
564            @Override
565            public Date getModifiedDate() {
566                    return _passwordPolicy.getModifiedDate();
567            }
568    
569            /**
570            * Returns the mvcc version of this password policy.
571            *
572            * @return the mvcc version of this password policy
573            */
574            @Override
575            public long getMvccVersion() {
576                    return _passwordPolicy.getMvccVersion();
577            }
578    
579            /**
580            * Returns the name of this password policy.
581            *
582            * @return the name of this password policy
583            */
584            @Override
585            public java.lang.String getName() {
586                    return _passwordPolicy.getName();
587            }
588    
589            /**
590            * Returns the password policy ID of this password policy.
591            *
592            * @return the password policy ID of this password policy
593            */
594            @Override
595            public long getPasswordPolicyId() {
596                    return _passwordPolicy.getPasswordPolicyId();
597            }
598    
599            /**
600            * Returns the primary key of this password policy.
601            *
602            * @return the primary key of this password policy
603            */
604            @Override
605            public long getPrimaryKey() {
606                    return _passwordPolicy.getPrimaryKey();
607            }
608    
609            @Override
610            public Serializable getPrimaryKeyObj() {
611                    return _passwordPolicy.getPrimaryKeyObj();
612            }
613    
614            /**
615            * Returns the regex of this password policy.
616            *
617            * @return the regex of this password policy
618            */
619            @Override
620            public java.lang.String getRegex() {
621                    return _passwordPolicy.getRegex();
622            }
623    
624            /**
625            * Returns the require unlock of this password policy.
626            *
627            * @return the require unlock of this password policy
628            */
629            @Override
630            public boolean getRequireUnlock() {
631                    return _passwordPolicy.getRequireUnlock();
632            }
633    
634            /**
635            * Returns the reset failure count of this password policy.
636            *
637            * @return the reset failure count of this password policy
638            */
639            @Override
640            public long getResetFailureCount() {
641                    return _passwordPolicy.getResetFailureCount();
642            }
643    
644            /**
645            * Returns the reset ticket max age of this password policy.
646            *
647            * @return the reset ticket max age of this password policy
648            */
649            @Override
650            public long getResetTicketMaxAge() {
651                    return _passwordPolicy.getResetTicketMaxAge();
652            }
653    
654            /**
655            * Returns the user ID of this password policy.
656            *
657            * @return the user ID of this password policy
658            */
659            @Override
660            public long getUserId() {
661                    return _passwordPolicy.getUserId();
662            }
663    
664            /**
665            * Returns the user name of this password policy.
666            *
667            * @return the user name of this password policy
668            */
669            @Override
670            public java.lang.String getUserName() {
671                    return _passwordPolicy.getUserName();
672            }
673    
674            /**
675            * Returns the user uuid of this password policy.
676            *
677            * @return the user uuid of this password policy
678            */
679            @Override
680            public java.lang.String getUserUuid() {
681                    return _passwordPolicy.getUserUuid();
682            }
683    
684            /**
685            * Returns the uuid of this password policy.
686            *
687            * @return the uuid of this password policy
688            */
689            @Override
690            public java.lang.String getUuid() {
691                    return _passwordPolicy.getUuid();
692            }
693    
694            /**
695            * Returns the warning time of this password policy.
696            *
697            * @return the warning time of this password policy
698            */
699            @Override
700            public long getWarningTime() {
701                    return _passwordPolicy.getWarningTime();
702            }
703    
704            @Override
705            public int hashCode() {
706                    return _passwordPolicy.hashCode();
707            }
708    
709            /**
710            * Returns <code>true</code> if this password policy is allow dictionary words.
711            *
712            * @return <code>true</code> if this password policy is allow dictionary words; <code>false</code> otherwise
713            */
714            @Override
715            public boolean isAllowDictionaryWords() {
716                    return _passwordPolicy.isAllowDictionaryWords();
717            }
718    
719            @Override
720            public boolean isCachedModel() {
721                    return _passwordPolicy.isCachedModel();
722            }
723    
724            /**
725            * Returns <code>true</code> if this password policy is change required.
726            *
727            * @return <code>true</code> if this password policy is change required; <code>false</code> otherwise
728            */
729            @Override
730            public boolean isChangeRequired() {
731                    return _passwordPolicy.isChangeRequired();
732            }
733    
734            /**
735            * Returns <code>true</code> if this password policy is changeable.
736            *
737            * @return <code>true</code> if this password policy is changeable; <code>false</code> otherwise
738            */
739            @Override
740            public boolean isChangeable() {
741                    return _passwordPolicy.isChangeable();
742            }
743    
744            /**
745            * Returns <code>true</code> if this password policy is check syntax.
746            *
747            * @return <code>true</code> if this password policy is check syntax; <code>false</code> otherwise
748            */
749            @Override
750            public boolean isCheckSyntax() {
751                    return _passwordPolicy.isCheckSyntax();
752            }
753    
754            /**
755            * Returns <code>true</code> if this password policy is default policy.
756            *
757            * @return <code>true</code> if this password policy is default policy; <code>false</code> otherwise
758            */
759            @Override
760            public boolean isDefaultPolicy() {
761                    return _passwordPolicy.isDefaultPolicy();
762            }
763    
764            @Override
765            public boolean isEscapedModel() {
766                    return _passwordPolicy.isEscapedModel();
767            }
768    
769            /**
770            * Returns <code>true</code> if this password policy is expireable.
771            *
772            * @return <code>true</code> if this password policy is expireable; <code>false</code> otherwise
773            */
774            @Override
775            public boolean isExpireable() {
776                    return _passwordPolicy.isExpireable();
777            }
778    
779            /**
780            * Returns <code>true</code> if this password policy is history.
781            *
782            * @return <code>true</code> if this password policy is history; <code>false</code> otherwise
783            */
784            @Override
785            public boolean isHistory() {
786                    return _passwordPolicy.isHistory();
787            }
788    
789            /**
790            * Returns <code>true</code> if this password policy is lockout.
791            *
792            * @return <code>true</code> if this password policy is lockout; <code>false</code> otherwise
793            */
794            @Override
795            public boolean isLockout() {
796                    return _passwordPolicy.isLockout();
797            }
798    
799            @Override
800            public boolean isNew() {
801                    return _passwordPolicy.isNew();
802            }
803    
804            /**
805            * Returns <code>true</code> if this password policy is require unlock.
806            *
807            * @return <code>true</code> if this password policy is require unlock; <code>false</code> otherwise
808            */
809            @Override
810            public boolean isRequireUnlock() {
811                    return _passwordPolicy.isRequireUnlock();
812            }
813    
814            @Override
815            public void persist() {
816                    _passwordPolicy.persist();
817            }
818    
819            /**
820            * Sets whether this password policy is allow dictionary words.
821            *
822            * @param allowDictionaryWords the allow dictionary words of this password policy
823            */
824            @Override
825            public void setAllowDictionaryWords(boolean allowDictionaryWords) {
826                    _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
827            }
828    
829            @Override
830            public void setCachedModel(boolean cachedModel) {
831                    _passwordPolicy.setCachedModel(cachedModel);
832            }
833    
834            /**
835            * Sets whether this password policy is change required.
836            *
837            * @param changeRequired the change required of this password policy
838            */
839            @Override
840            public void setChangeRequired(boolean changeRequired) {
841                    _passwordPolicy.setChangeRequired(changeRequired);
842            }
843    
844            /**
845            * Sets whether this password policy is changeable.
846            *
847            * @param changeable the changeable of this password policy
848            */
849            @Override
850            public void setChangeable(boolean changeable) {
851                    _passwordPolicy.setChangeable(changeable);
852            }
853    
854            /**
855            * Sets whether this password policy is check syntax.
856            *
857            * @param checkSyntax the check syntax of this password policy
858            */
859            @Override
860            public void setCheckSyntax(boolean checkSyntax) {
861                    _passwordPolicy.setCheckSyntax(checkSyntax);
862            }
863    
864            /**
865            * Sets the company ID of this password policy.
866            *
867            * @param companyId the company ID of this password policy
868            */
869            @Override
870            public void setCompanyId(long companyId) {
871                    _passwordPolicy.setCompanyId(companyId);
872            }
873    
874            /**
875            * Sets the create date of this password policy.
876            *
877            * @param createDate the create date of this password policy
878            */
879            @Override
880            public void setCreateDate(Date createDate) {
881                    _passwordPolicy.setCreateDate(createDate);
882            }
883    
884            /**
885            * Sets whether this password policy is default policy.
886            *
887            * @param defaultPolicy the default policy of this password policy
888            */
889            @Override
890            public void setDefaultPolicy(boolean defaultPolicy) {
891                    _passwordPolicy.setDefaultPolicy(defaultPolicy);
892            }
893    
894            /**
895            * Sets the description of this password policy.
896            *
897            * @param description the description of this password policy
898            */
899            @Override
900            public void setDescription(java.lang.String description) {
901                    _passwordPolicy.setDescription(description);
902            }
903    
904            @Override
905            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
906                    _passwordPolicy.setExpandoBridgeAttributes(baseModel);
907            }
908    
909            @Override
910            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
911                    _passwordPolicy.setExpandoBridgeAttributes(expandoBridge);
912            }
913    
914            @Override
915            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
916                    _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
917            }
918    
919            /**
920            * Sets whether this password policy is expireable.
921            *
922            * @param expireable the expireable of this password policy
923            */
924            @Override
925            public void setExpireable(boolean expireable) {
926                    _passwordPolicy.setExpireable(expireable);
927            }
928    
929            /**
930            * Sets the grace limit of this password policy.
931            *
932            * @param graceLimit the grace limit of this password policy
933            */
934            @Override
935            public void setGraceLimit(int graceLimit) {
936                    _passwordPolicy.setGraceLimit(graceLimit);
937            }
938    
939            /**
940            * Sets whether this password policy is history.
941            *
942            * @param history the history of this password policy
943            */
944            @Override
945            public void setHistory(boolean history) {
946                    _passwordPolicy.setHistory(history);
947            }
948    
949            /**
950            * Sets the history count of this password policy.
951            *
952            * @param historyCount the history count of this password policy
953            */
954            @Override
955            public void setHistoryCount(int historyCount) {
956                    _passwordPolicy.setHistoryCount(historyCount);
957            }
958    
959            /**
960            * Sets whether this password policy is lockout.
961            *
962            * @param lockout the lockout of this password policy
963            */
964            @Override
965            public void setLockout(boolean lockout) {
966                    _passwordPolicy.setLockout(lockout);
967            }
968    
969            /**
970            * Sets the lockout duration of this password policy.
971            *
972            * @param lockoutDuration the lockout duration of this password policy
973            */
974            @Override
975            public void setLockoutDuration(long lockoutDuration) {
976                    _passwordPolicy.setLockoutDuration(lockoutDuration);
977            }
978    
979            /**
980            * Sets the max age of this password policy.
981            *
982            * @param maxAge the max age of this password policy
983            */
984            @Override
985            public void setMaxAge(long maxAge) {
986                    _passwordPolicy.setMaxAge(maxAge);
987            }
988    
989            /**
990            * Sets the max failure of this password policy.
991            *
992            * @param maxFailure the max failure of this password policy
993            */
994            @Override
995            public void setMaxFailure(int maxFailure) {
996                    _passwordPolicy.setMaxFailure(maxFailure);
997            }
998    
999            /**
1000            * Sets the min age of this password policy.
1001            *
1002            * @param minAge the min age of this password policy
1003            */
1004            @Override
1005            public void setMinAge(long minAge) {
1006                    _passwordPolicy.setMinAge(minAge);
1007            }
1008    
1009            /**
1010            * Sets the min alphanumeric of this password policy.
1011            *
1012            * @param minAlphanumeric the min alphanumeric of this password policy
1013            */
1014            @Override
1015            public void setMinAlphanumeric(int minAlphanumeric) {
1016                    _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
1017            }
1018    
1019            /**
1020            * Sets the min length of this password policy.
1021            *
1022            * @param minLength the min length of this password policy
1023            */
1024            @Override
1025            public void setMinLength(int minLength) {
1026                    _passwordPolicy.setMinLength(minLength);
1027            }
1028    
1029            /**
1030            * Sets the min lower case of this password policy.
1031            *
1032            * @param minLowerCase the min lower case of this password policy
1033            */
1034            @Override
1035            public void setMinLowerCase(int minLowerCase) {
1036                    _passwordPolicy.setMinLowerCase(minLowerCase);
1037            }
1038    
1039            /**
1040            * Sets the min numbers of this password policy.
1041            *
1042            * @param minNumbers the min numbers of this password policy
1043            */
1044            @Override
1045            public void setMinNumbers(int minNumbers) {
1046                    _passwordPolicy.setMinNumbers(minNumbers);
1047            }
1048    
1049            /**
1050            * Sets the min symbols of this password policy.
1051            *
1052            * @param minSymbols the min symbols of this password policy
1053            */
1054            @Override
1055            public void setMinSymbols(int minSymbols) {
1056                    _passwordPolicy.setMinSymbols(minSymbols);
1057            }
1058    
1059            /**
1060            * Sets the min upper case of this password policy.
1061            *
1062            * @param minUpperCase the min upper case of this password policy
1063            */
1064            @Override
1065            public void setMinUpperCase(int minUpperCase) {
1066                    _passwordPolicy.setMinUpperCase(minUpperCase);
1067            }
1068    
1069            /**
1070            * Sets the modified date of this password policy.
1071            *
1072            * @param modifiedDate the modified date of this password policy
1073            */
1074            @Override
1075            public void setModifiedDate(Date modifiedDate) {
1076                    _passwordPolicy.setModifiedDate(modifiedDate);
1077            }
1078    
1079            /**
1080            * Sets the mvcc version of this password policy.
1081            *
1082            * @param mvccVersion the mvcc version of this password policy
1083            */
1084            @Override
1085            public void setMvccVersion(long mvccVersion) {
1086                    _passwordPolicy.setMvccVersion(mvccVersion);
1087            }
1088    
1089            /**
1090            * Sets the name of this password policy.
1091            *
1092            * @param name the name of this password policy
1093            */
1094            @Override
1095            public void setName(java.lang.String name) {
1096                    _passwordPolicy.setName(name);
1097            }
1098    
1099            @Override
1100            public void setNew(boolean n) {
1101                    _passwordPolicy.setNew(n);
1102            }
1103    
1104            /**
1105            * Sets the password policy ID of this password policy.
1106            *
1107            * @param passwordPolicyId the password policy ID of this password policy
1108            */
1109            @Override
1110            public void setPasswordPolicyId(long passwordPolicyId) {
1111                    _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
1112            }
1113    
1114            /**
1115            * Sets the primary key of this password policy.
1116            *
1117            * @param primaryKey the primary key of this password policy
1118            */
1119            @Override
1120            public void setPrimaryKey(long primaryKey) {
1121                    _passwordPolicy.setPrimaryKey(primaryKey);
1122            }
1123    
1124            @Override
1125            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
1126                    _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1127            }
1128    
1129            /**
1130            * Sets the regex of this password policy.
1131            *
1132            * @param regex the regex of this password policy
1133            */
1134            @Override
1135            public void setRegex(java.lang.String regex) {
1136                    _passwordPolicy.setRegex(regex);
1137            }
1138    
1139            /**
1140            * Sets whether this password policy is require unlock.
1141            *
1142            * @param requireUnlock the require unlock of this password policy
1143            */
1144            @Override
1145            public void setRequireUnlock(boolean requireUnlock) {
1146                    _passwordPolicy.setRequireUnlock(requireUnlock);
1147            }
1148    
1149            /**
1150            * Sets the reset failure count of this password policy.
1151            *
1152            * @param resetFailureCount the reset failure count of this password policy
1153            */
1154            @Override
1155            public void setResetFailureCount(long resetFailureCount) {
1156                    _passwordPolicy.setResetFailureCount(resetFailureCount);
1157            }
1158    
1159            /**
1160            * Sets the reset ticket max age of this password policy.
1161            *
1162            * @param resetTicketMaxAge the reset ticket max age of this password policy
1163            */
1164            @Override
1165            public void setResetTicketMaxAge(long resetTicketMaxAge) {
1166                    _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
1167            }
1168    
1169            /**
1170            * Sets the user ID of this password policy.
1171            *
1172            * @param userId the user ID of this password policy
1173            */
1174            @Override
1175            public void setUserId(long userId) {
1176                    _passwordPolicy.setUserId(userId);
1177            }
1178    
1179            /**
1180            * Sets the user name of this password policy.
1181            *
1182            * @param userName the user name of this password policy
1183            */
1184            @Override
1185            public void setUserName(java.lang.String userName) {
1186                    _passwordPolicy.setUserName(userName);
1187            }
1188    
1189            /**
1190            * Sets the user uuid of this password policy.
1191            *
1192            * @param userUuid the user uuid of this password policy
1193            */
1194            @Override
1195            public void setUserUuid(java.lang.String userUuid) {
1196                    _passwordPolicy.setUserUuid(userUuid);
1197            }
1198    
1199            /**
1200            * Sets the uuid of this password policy.
1201            *
1202            * @param uuid the uuid of this password policy
1203            */
1204            @Override
1205            public void setUuid(java.lang.String uuid) {
1206                    _passwordPolicy.setUuid(uuid);
1207            }
1208    
1209            /**
1210            * Sets the warning time of this password policy.
1211            *
1212            * @param warningTime the warning time of this password policy
1213            */
1214            @Override
1215            public void setWarningTime(long warningTime) {
1216                    _passwordPolicy.setWarningTime(warningTime);
1217            }
1218    
1219            @Override
1220            public CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1221                    return _passwordPolicy.toCacheModel();
1222            }
1223    
1224            @Override
1225            public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1226                    return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1227            }
1228    
1229            @Override
1230            public java.lang.String toString() {
1231                    return _passwordPolicy.toString();
1232            }
1233    
1234            @Override
1235            public com.liferay.portal.model.PasswordPolicy toUnescapedModel() {
1236                    return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1237            }
1238    
1239            @Override
1240            public java.lang.String toXmlString() {
1241                    return _passwordPolicy.toXmlString();
1242            }
1243    
1244            @Override
1245            public boolean equals(Object obj) {
1246                    if (this == obj) {
1247                            return true;
1248                    }
1249    
1250                    if (!(obj instanceof PasswordPolicyWrapper)) {
1251                            return false;
1252                    }
1253    
1254                    PasswordPolicyWrapper passwordPolicyWrapper = (PasswordPolicyWrapper)obj;
1255    
1256                    if (Validator.equals(_passwordPolicy,
1257                                            passwordPolicyWrapper._passwordPolicy)) {
1258                            return true;
1259                    }
1260    
1261                    return false;
1262            }
1263    
1264            @Override
1265            public StagedModelType getStagedModelType() {
1266                    return _passwordPolicy.getStagedModelType();
1267            }
1268    
1269            @Override
1270            public PasswordPolicy getWrappedModel() {
1271                    return _passwordPolicy;
1272            }
1273    
1274            @Override
1275            public boolean isEntityCacheEnabled() {
1276                    return _passwordPolicy.isEntityCacheEnabled();
1277            }
1278    
1279            @Override
1280            public boolean isFinderCacheEnabled() {
1281                    return _passwordPolicy.isFinderCacheEnabled();
1282            }
1283    
1284            @Override
1285            public void resetOriginalValues() {
1286                    _passwordPolicy.resetOriginalValues();
1287            }
1288    
1289            private final PasswordPolicy _passwordPolicy;
1290    }