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