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