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