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.lar.StagedModelType;
020    import com.liferay.portal.kernel.util.Validator;
021    
022    import java.util.Date;
023    import java.util.HashMap;
024    import java.util.Map;
025    
026    /**
027     * <p>
028     * This class is a wrapper for {@link PasswordPolicy}.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see PasswordPolicy
033     * @generated
034     */
035    @ProviderType
036    public class PasswordPolicyWrapper implements PasswordPolicy,
037            ModelWrapper<PasswordPolicy> {
038            public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
039                    _passwordPolicy = passwordPolicy;
040            }
041    
042            @Override
043            public Class<?> getModelClass() {
044                    return PasswordPolicy.class;
045            }
046    
047            @Override
048            public String getModelClassName() {
049                    return PasswordPolicy.class.getName();
050            }
051    
052            @Override
053            public Map<String, Object> getModelAttributes() {
054                    Map<String, Object> attributes = new HashMap<String, Object>();
055    
056                    attributes.put("mvccVersion", getMvccVersion());
057                    attributes.put("uuid", getUuid());
058                    attributes.put("passwordPolicyId", getPasswordPolicyId());
059                    attributes.put("companyId", getCompanyId());
060                    attributes.put("userId", getUserId());
061                    attributes.put("userName", getUserName());
062                    attributes.put("createDate", getCreateDate());
063                    attributes.put("modifiedDate", getModifiedDate());
064                    attributes.put("defaultPolicy", getDefaultPolicy());
065                    attributes.put("name", getName());
066                    attributes.put("description", getDescription());
067                    attributes.put("changeable", getChangeable());
068                    attributes.put("changeRequired", getChangeRequired());
069                    attributes.put("minAge", getMinAge());
070                    attributes.put("checkSyntax", getCheckSyntax());
071                    attributes.put("allowDictionaryWords", getAllowDictionaryWords());
072                    attributes.put("minAlphanumeric", getMinAlphanumeric());
073                    attributes.put("minLength", getMinLength());
074                    attributes.put("minLowerCase", getMinLowerCase());
075                    attributes.put("minNumbers", getMinNumbers());
076                    attributes.put("minSymbols", getMinSymbols());
077                    attributes.put("minUpperCase", getMinUpperCase());
078                    attributes.put("regex", getRegex());
079                    attributes.put("history", getHistory());
080                    attributes.put("historyCount", getHistoryCount());
081                    attributes.put("expireable", getExpireable());
082                    attributes.put("maxAge", getMaxAge());
083                    attributes.put("warningTime", getWarningTime());
084                    attributes.put("graceLimit", getGraceLimit());
085                    attributes.put("lockout", getLockout());
086                    attributes.put("maxFailure", getMaxFailure());
087                    attributes.put("lockoutDuration", getLockoutDuration());
088                    attributes.put("requireUnlock", getRequireUnlock());
089                    attributes.put("resetFailureCount", getResetFailureCount());
090                    attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
091    
092                    return attributes;
093            }
094    
095            @Override
096            public void setModelAttributes(Map<String, Object> attributes) {
097                    Long mvccVersion = (Long)attributes.get("mvccVersion");
098    
099                    if (mvccVersion != null) {
100                            setMvccVersion(mvccVersion);
101                    }
102    
103                    String uuid = (String)attributes.get("uuid");
104    
105                    if (uuid != null) {
106                            setUuid(uuid);
107                    }
108    
109                    Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
110    
111                    if (passwordPolicyId != null) {
112                            setPasswordPolicyId(passwordPolicyId);
113                    }
114    
115                    Long companyId = (Long)attributes.get("companyId");
116    
117                    if (companyId != null) {
118                            setCompanyId(companyId);
119                    }
120    
121                    Long userId = (Long)attributes.get("userId");
122    
123                    if (userId != null) {
124                            setUserId(userId);
125                    }
126    
127                    String userName = (String)attributes.get("userName");
128    
129                    if (userName != null) {
130                            setUserName(userName);
131                    }
132    
133                    Date createDate = (Date)attributes.get("createDate");
134    
135                    if (createDate != null) {
136                            setCreateDate(createDate);
137                    }
138    
139                    Date modifiedDate = (Date)attributes.get("modifiedDate");
140    
141                    if (modifiedDate != null) {
142                            setModifiedDate(modifiedDate);
143                    }
144    
145                    Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
146    
147                    if (defaultPolicy != null) {
148                            setDefaultPolicy(defaultPolicy);
149                    }
150    
151                    String name = (String)attributes.get("name");
152    
153                    if (name != null) {
154                            setName(name);
155                    }
156    
157                    String description = (String)attributes.get("description");
158    
159                    if (description != null) {
160                            setDescription(description);
161                    }
162    
163                    Boolean changeable = (Boolean)attributes.get("changeable");
164    
165                    if (changeable != null) {
166                            setChangeable(changeable);
167                    }
168    
169                    Boolean changeRequired = (Boolean)attributes.get("changeRequired");
170    
171                    if (changeRequired != null) {
172                            setChangeRequired(changeRequired);
173                    }
174    
175                    Long minAge = (Long)attributes.get("minAge");
176    
177                    if (minAge != null) {
178                            setMinAge(minAge);
179                    }
180    
181                    Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
182    
183                    if (checkSyntax != null) {
184                            setCheckSyntax(checkSyntax);
185                    }
186    
187                    Boolean allowDictionaryWords = (Boolean)attributes.get(
188                                    "allowDictionaryWords");
189    
190                    if (allowDictionaryWords != null) {
191                            setAllowDictionaryWords(allowDictionaryWords);
192                    }
193    
194                    Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
195    
196                    if (minAlphanumeric != null) {
197                            setMinAlphanumeric(minAlphanumeric);
198                    }
199    
200                    Integer minLength = (Integer)attributes.get("minLength");
201    
202                    if (minLength != null) {
203                            setMinLength(minLength);
204                    }
205    
206                    Integer minLowerCase = (Integer)attributes.get("minLowerCase");
207    
208                    if (minLowerCase != null) {
209                            setMinLowerCase(minLowerCase);
210                    }
211    
212                    Integer minNumbers = (Integer)attributes.get("minNumbers");
213    
214                    if (minNumbers != null) {
215                            setMinNumbers(minNumbers);
216                    }
217    
218                    Integer minSymbols = (Integer)attributes.get("minSymbols");
219    
220                    if (minSymbols != null) {
221                            setMinSymbols(minSymbols);
222                    }
223    
224                    Integer minUpperCase = (Integer)attributes.get("minUpperCase");
225    
226                    if (minUpperCase != null) {
227                            setMinUpperCase(minUpperCase);
228                    }
229    
230                    String regex = (String)attributes.get("regex");
231    
232                    if (regex != null) {
233                            setRegex(regex);
234                    }
235    
236                    Boolean history = (Boolean)attributes.get("history");
237    
238                    if (history != null) {
239                            setHistory(history);
240                    }
241    
242                    Integer historyCount = (Integer)attributes.get("historyCount");
243    
244                    if (historyCount != null) {
245                            setHistoryCount(historyCount);
246                    }
247    
248                    Boolean expireable = (Boolean)attributes.get("expireable");
249    
250                    if (expireable != null) {
251                            setExpireable(expireable);
252                    }
253    
254                    Long maxAge = (Long)attributes.get("maxAge");
255    
256                    if (maxAge != null) {
257                            setMaxAge(maxAge);
258                    }
259    
260                    Long warningTime = (Long)attributes.get("warningTime");
261    
262                    if (warningTime != null) {
263                            setWarningTime(warningTime);
264                    }
265    
266                    Integer graceLimit = (Integer)attributes.get("graceLimit");
267    
268                    if (graceLimit != null) {
269                            setGraceLimit(graceLimit);
270                    }
271    
272                    Boolean lockout = (Boolean)attributes.get("lockout");
273    
274                    if (lockout != null) {
275                            setLockout(lockout);
276                    }
277    
278                    Integer maxFailure = (Integer)attributes.get("maxFailure");
279    
280                    if (maxFailure != null) {
281                            setMaxFailure(maxFailure);
282                    }
283    
284                    Long lockoutDuration = (Long)attributes.get("lockoutDuration");
285    
286                    if (lockoutDuration != null) {
287                            setLockoutDuration(lockoutDuration);
288                    }
289    
290                    Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
291    
292                    if (requireUnlock != null) {
293                            setRequireUnlock(requireUnlock);
294                    }
295    
296                    Long resetFailureCount = (Long)attributes.get("resetFailureCount");
297    
298                    if (resetFailureCount != null) {
299                            setResetFailureCount(resetFailureCount);
300                    }
301    
302                    Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
303    
304                    if (resetTicketMaxAge != null) {
305                            setResetTicketMaxAge(resetTicketMaxAge);
306                    }
307            }
308    
309            @Override
310            public java.lang.Object clone() {
311                    return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
312            }
313    
314            @Override
315            public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
316                    return _passwordPolicy.compareTo(passwordPolicy);
317            }
318    
319            /**
320            * Returns the allow dictionary words of this password policy.
321            *
322            * @return the allow dictionary words of this password policy
323            */
324            @Override
325            public boolean getAllowDictionaryWords() {
326                    return _passwordPolicy.getAllowDictionaryWords();
327            }
328    
329            /**
330            * Returns the change required of this password policy.
331            *
332            * @return the change required of this password policy
333            */
334            @Override
335            public boolean getChangeRequired() {
336                    return _passwordPolicy.getChangeRequired();
337            }
338    
339            /**
340            * Returns the changeable of this password policy.
341            *
342            * @return the changeable of this password policy
343            */
344            @Override
345            public boolean getChangeable() {
346                    return _passwordPolicy.getChangeable();
347            }
348    
349            /**
350            * Returns the check syntax of this password policy.
351            *
352            * @return the check syntax of this password policy
353            */
354            @Override
355            public boolean getCheckSyntax() {
356                    return _passwordPolicy.getCheckSyntax();
357            }
358    
359            /**
360            * Returns the company ID of this password policy.
361            *
362            * @return the company ID of this password policy
363            */
364            @Override
365            public long getCompanyId() {
366                    return _passwordPolicy.getCompanyId();
367            }
368    
369            /**
370            * Returns the create date of this password policy.
371            *
372            * @return the create date of this password policy
373            */
374            @Override
375            public java.util.Date getCreateDate() {
376                    return _passwordPolicy.getCreateDate();
377            }
378    
379            /**
380            * Returns the default policy of this password policy.
381            *
382            * @return the default policy of this password policy
383            */
384            @Override
385            public boolean getDefaultPolicy() {
386                    return _passwordPolicy.getDefaultPolicy();
387            }
388    
389            /**
390            * Returns the description of this password policy.
391            *
392            * @return the description of this password policy
393            */
394            @Override
395            public java.lang.String getDescription() {
396                    return _passwordPolicy.getDescription();
397            }
398    
399            @Override
400            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
401                    return _passwordPolicy.getExpandoBridge();
402            }
403    
404            /**
405            * Returns the expireable of this password policy.
406            *
407            * @return the expireable of this password policy
408            */
409            @Override
410            public boolean getExpireable() {
411                    return _passwordPolicy.getExpireable();
412            }
413    
414            /**
415            * Returns the grace limit of this password policy.
416            *
417            * @return the grace limit of this password policy
418            */
419            @Override
420            public int getGraceLimit() {
421                    return _passwordPolicy.getGraceLimit();
422            }
423    
424            /**
425            * Returns the history of this password policy.
426            *
427            * @return the history of this password policy
428            */
429            @Override
430            public boolean getHistory() {
431                    return _passwordPolicy.getHistory();
432            }
433    
434            /**
435            * Returns the history count of this password policy.
436            *
437            * @return the history count of this password policy
438            */
439            @Override
440            public int getHistoryCount() {
441                    return _passwordPolicy.getHistoryCount();
442            }
443    
444            /**
445            * Returns the lockout of this password policy.
446            *
447            * @return the lockout of this password policy
448            */
449            @Override
450            public boolean getLockout() {
451                    return _passwordPolicy.getLockout();
452            }
453    
454            /**
455            * Returns the lockout duration of this password policy.
456            *
457            * @return the lockout duration of this password policy
458            */
459            @Override
460            public long getLockoutDuration() {
461                    return _passwordPolicy.getLockoutDuration();
462            }
463    
464            /**
465            * Returns the max age of this password policy.
466            *
467            * @return the max age of this password policy
468            */
469            @Override
470            public long getMaxAge() {
471                    return _passwordPolicy.getMaxAge();
472            }
473    
474            /**
475            * Returns the max failure of this password policy.
476            *
477            * @return the max failure of this password policy
478            */
479            @Override
480            public int getMaxFailure() {
481                    return _passwordPolicy.getMaxFailure();
482            }
483    
484            /**
485            * Returns the min age of this password policy.
486            *
487            * @return the min age of this password policy
488            */
489            @Override
490            public long getMinAge() {
491                    return _passwordPolicy.getMinAge();
492            }
493    
494            /**
495            * Returns the min alphanumeric of this password policy.
496            *
497            * @return the min alphanumeric of this password policy
498            */
499            @Override
500            public int getMinAlphanumeric() {
501                    return _passwordPolicy.getMinAlphanumeric();
502            }
503    
504            /**
505            * Returns the min length of this password policy.
506            *
507            * @return the min length of this password policy
508            */
509            @Override
510            public int getMinLength() {
511                    return _passwordPolicy.getMinLength();
512            }
513    
514            /**
515            * Returns the min lower case of this password policy.
516            *
517            * @return the min lower case of this password policy
518            */
519            @Override
520            public int getMinLowerCase() {
521                    return _passwordPolicy.getMinLowerCase();
522            }
523    
524            /**
525            * Returns the min numbers of this password policy.
526            *
527            * @return the min numbers of this password policy
528            */
529            @Override
530            public int getMinNumbers() {
531                    return _passwordPolicy.getMinNumbers();
532            }
533    
534            /**
535            * Returns the min symbols of this password policy.
536            *
537            * @return the min symbols of this password policy
538            */
539            @Override
540            public int getMinSymbols() {
541                    return _passwordPolicy.getMinSymbols();
542            }
543    
544            /**
545            * Returns the min upper case of this password policy.
546            *
547            * @return the min upper case of this password policy
548            */
549            @Override
550            public int getMinUpperCase() {
551                    return _passwordPolicy.getMinUpperCase();
552            }
553    
554            /**
555            * Returns the modified date of this password policy.
556            *
557            * @return the modified date of this password policy
558            */
559            @Override
560            public java.util.Date getModifiedDate() {
561                    return _passwordPolicy.getModifiedDate();
562            }
563    
564            /**
565            * Returns the mvcc version of this password policy.
566            *
567            * @return the mvcc version of this password policy
568            */
569            @Override
570            public long getMvccVersion() {
571                    return _passwordPolicy.getMvccVersion();
572            }
573    
574            /**
575            * Returns the name of this password policy.
576            *
577            * @return the name of this password policy
578            */
579            @Override
580            public java.lang.String getName() {
581                    return _passwordPolicy.getName();
582            }
583    
584            /**
585            * Returns the password policy ID of this password policy.
586            *
587            * @return the password policy ID of this password policy
588            */
589            @Override
590            public long getPasswordPolicyId() {
591                    return _passwordPolicy.getPasswordPolicyId();
592            }
593    
594            /**
595            * Returns the primary key of this password policy.
596            *
597            * @return the primary key of this password policy
598            */
599            @Override
600            public long getPrimaryKey() {
601                    return _passwordPolicy.getPrimaryKey();
602            }
603    
604            @Override
605            public java.io.Serializable getPrimaryKeyObj() {
606                    return _passwordPolicy.getPrimaryKeyObj();
607            }
608    
609            /**
610            * Returns the regex of this password policy.
611            *
612            * @return the regex of this password policy
613            */
614            @Override
615            public java.lang.String getRegex() {
616                    return _passwordPolicy.getRegex();
617            }
618    
619            /**
620            * Returns the require unlock of this password policy.
621            *
622            * @return the require unlock of this password policy
623            */
624            @Override
625            public boolean getRequireUnlock() {
626                    return _passwordPolicy.getRequireUnlock();
627            }
628    
629            /**
630            * Returns the reset failure count of this password policy.
631            *
632            * @return the reset failure count of this password policy
633            */
634            @Override
635            public long getResetFailureCount() {
636                    return _passwordPolicy.getResetFailureCount();
637            }
638    
639            /**
640            * Returns the reset ticket max age of this password policy.
641            *
642            * @return the reset ticket max age of this password policy
643            */
644            @Override
645            public long getResetTicketMaxAge() {
646                    return _passwordPolicy.getResetTicketMaxAge();
647            }
648    
649            /**
650            * Returns the user ID of this password policy.
651            *
652            * @return the user ID of this password policy
653            */
654            @Override
655            public long getUserId() {
656                    return _passwordPolicy.getUserId();
657            }
658    
659            /**
660            * Returns the user name of this password policy.
661            *
662            * @return the user name of this password policy
663            */
664            @Override
665            public java.lang.String getUserName() {
666                    return _passwordPolicy.getUserName();
667            }
668    
669            /**
670            * Returns the user uuid of this password policy.
671            *
672            * @return the user uuid of this password policy
673            */
674            @Override
675            public java.lang.String getUserUuid() {
676                    return _passwordPolicy.getUserUuid();
677            }
678    
679            /**
680            * Returns the uuid of this password policy.
681            *
682            * @return the uuid of this password policy
683            */
684            @Override
685            public java.lang.String getUuid() {
686                    return _passwordPolicy.getUuid();
687            }
688    
689            /**
690            * Returns the warning time of this password policy.
691            *
692            * @return the warning time of this password policy
693            */
694            @Override
695            public long getWarningTime() {
696                    return _passwordPolicy.getWarningTime();
697            }
698    
699            @Override
700            public int hashCode() {
701                    return _passwordPolicy.hashCode();
702            }
703    
704            /**
705            * Returns <code>true</code> if this password policy is allow dictionary words.
706            *
707            * @return <code>true</code> if this password policy is allow dictionary words; <code>false</code> otherwise
708            */
709            @Override
710            public boolean isAllowDictionaryWords() {
711                    return _passwordPolicy.isAllowDictionaryWords();
712            }
713    
714            @Override
715            public boolean isCachedModel() {
716                    return _passwordPolicy.isCachedModel();
717            }
718    
719            /**
720            * Returns <code>true</code> if this password policy is change required.
721            *
722            * @return <code>true</code> if this password policy is change required; <code>false</code> otherwise
723            */
724            @Override
725            public boolean isChangeRequired() {
726                    return _passwordPolicy.isChangeRequired();
727            }
728    
729            /**
730            * Returns <code>true</code> if this password policy is changeable.
731            *
732            * @return <code>true</code> if this password policy is changeable; <code>false</code> otherwise
733            */
734            @Override
735            public boolean isChangeable() {
736                    return _passwordPolicy.isChangeable();
737            }
738    
739            /**
740            * Returns <code>true</code> if this password policy is check syntax.
741            *
742            * @return <code>true</code> if this password policy is check syntax; <code>false</code> otherwise
743            */
744            @Override
745            public boolean isCheckSyntax() {
746                    return _passwordPolicy.isCheckSyntax();
747            }
748    
749            /**
750            * Returns <code>true</code> if this password policy is default policy.
751            *
752            * @return <code>true</code> if this password policy is default policy; <code>false</code> otherwise
753            */
754            @Override
755            public boolean isDefaultPolicy() {
756                    return _passwordPolicy.isDefaultPolicy();
757            }
758    
759            @Override
760            public boolean isEscapedModel() {
761                    return _passwordPolicy.isEscapedModel();
762            }
763    
764            /**
765            * Returns <code>true</code> if this password policy is expireable.
766            *
767            * @return <code>true</code> if this password policy is expireable; <code>false</code> otherwise
768            */
769            @Override
770            public boolean isExpireable() {
771                    return _passwordPolicy.isExpireable();
772            }
773    
774            /**
775            * Returns <code>true</code> if this password policy is history.
776            *
777            * @return <code>true</code> if this password policy is history; <code>false</code> otherwise
778            */
779            @Override
780            public boolean isHistory() {
781                    return _passwordPolicy.isHistory();
782            }
783    
784            /**
785            * Returns <code>true</code> if this password policy is lockout.
786            *
787            * @return <code>true</code> if this password policy is lockout; <code>false</code> otherwise
788            */
789            @Override
790            public boolean isLockout() {
791                    return _passwordPolicy.isLockout();
792            }
793    
794            @Override
795            public boolean isNew() {
796                    return _passwordPolicy.isNew();
797            }
798    
799            /**
800            * Returns <code>true</code> if this password policy is require unlock.
801            *
802            * @return <code>true</code> if this password policy is require unlock; <code>false</code> otherwise
803            */
804            @Override
805            public boolean isRequireUnlock() {
806                    return _passwordPolicy.isRequireUnlock();
807            }
808    
809            @Override
810            public void persist() {
811                    _passwordPolicy.persist();
812            }
813    
814            /**
815            * Sets whether this password policy is allow dictionary words.
816            *
817            * @param allowDictionaryWords the allow dictionary words of this password policy
818            */
819            @Override
820            public void setAllowDictionaryWords(boolean allowDictionaryWords) {
821                    _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
822            }
823    
824            @Override
825            public void setCachedModel(boolean cachedModel) {
826                    _passwordPolicy.setCachedModel(cachedModel);
827            }
828    
829            /**
830            * Sets whether this password policy is change required.
831            *
832            * @param changeRequired the change required of this password policy
833            */
834            @Override
835            public void setChangeRequired(boolean changeRequired) {
836                    _passwordPolicy.setChangeRequired(changeRequired);
837            }
838    
839            /**
840            * Sets whether this password policy is changeable.
841            *
842            * @param changeable the changeable of this password policy
843            */
844            @Override
845            public void setChangeable(boolean changeable) {
846                    _passwordPolicy.setChangeable(changeable);
847            }
848    
849            /**
850            * Sets whether this password policy is check syntax.
851            *
852            * @param checkSyntax the check syntax of this password policy
853            */
854            @Override
855            public void setCheckSyntax(boolean checkSyntax) {
856                    _passwordPolicy.setCheckSyntax(checkSyntax);
857            }
858    
859            /**
860            * Sets the company ID of this password policy.
861            *
862            * @param companyId the company ID of this password policy
863            */
864            @Override
865            public void setCompanyId(long companyId) {
866                    _passwordPolicy.setCompanyId(companyId);
867            }
868    
869            /**
870            * Sets the create date of this password policy.
871            *
872            * @param createDate the create date of this password policy
873            */
874            @Override
875            public void setCreateDate(java.util.Date createDate) {
876                    _passwordPolicy.setCreateDate(createDate);
877            }
878    
879            /**
880            * Sets whether this password policy is default policy.
881            *
882            * @param defaultPolicy the default policy of this password policy
883            */
884            @Override
885            public void setDefaultPolicy(boolean defaultPolicy) {
886                    _passwordPolicy.setDefaultPolicy(defaultPolicy);
887            }
888    
889            /**
890            * Sets the description of this password policy.
891            *
892            * @param description the description of this password policy
893            */
894            @Override
895            public void setDescription(java.lang.String description) {
896                    _passwordPolicy.setDescription(description);
897            }
898    
899            @Override
900            public void setExpandoBridgeAttributes(
901                    com.liferay.portal.model.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(java.util.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 com.liferay.portal.model.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            /**
1268             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1269             */
1270            @Deprecated
1271            public PasswordPolicy getWrappedPasswordPolicy() {
1272                    return _passwordPolicy;
1273            }
1274    
1275            @Override
1276            public PasswordPolicy getWrappedModel() {
1277                    return _passwordPolicy;
1278            }
1279    
1280            @Override
1281            public boolean isEntityCacheEnabled() {
1282                    return _passwordPolicy.isEntityCacheEnabled();
1283            }
1284    
1285            @Override
1286            public boolean isFinderCacheEnabled() {
1287                    return _passwordPolicy.isFinderCacheEnabled();
1288            }
1289    
1290            @Override
1291            public void resetOriginalValues() {
1292                    _passwordPolicy.resetOriginalValues();
1293            }
1294    
1295            private final PasswordPolicy _passwordPolicy;
1296    }