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