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