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