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