001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link PasswordPolicy}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PasswordPolicy
024     * @generated
025     */
026    public class PasswordPolicyWrapper implements PasswordPolicy {
027            public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
028                    _passwordPolicy = passwordPolicy;
029            }
030    
031            public Class<?> getModelClass() {
032                    return PasswordPolicy.class;
033            }
034    
035            public String getModelClassName() {
036                    return PasswordPolicy.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this password policy.
041            *
042            * @return the primary key of this password policy
043            */
044            public long getPrimaryKey() {
045                    return _passwordPolicy.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this password policy.
050            *
051            * @param primaryKey the primary key of this password policy
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _passwordPolicy.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the password policy ID of this password policy.
059            *
060            * @return the password policy ID of this password policy
061            */
062            public long getPasswordPolicyId() {
063                    return _passwordPolicy.getPasswordPolicyId();
064            }
065    
066            /**
067            * Sets the password policy ID of this password policy.
068            *
069            * @param passwordPolicyId the password policy ID of this password policy
070            */
071            public void setPasswordPolicyId(long passwordPolicyId) {
072                    _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
073            }
074    
075            /**
076            * Returns the company ID of this password policy.
077            *
078            * @return the company ID of this password policy
079            */
080            public long getCompanyId() {
081                    return _passwordPolicy.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this password policy.
086            *
087            * @param companyId the company ID of this password policy
088            */
089            public void setCompanyId(long companyId) {
090                    _passwordPolicy.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the user ID of this password policy.
095            *
096            * @return the user ID of this password policy
097            */
098            public long getUserId() {
099                    return _passwordPolicy.getUserId();
100            }
101    
102            /**
103            * Sets the user ID of this password policy.
104            *
105            * @param userId the user ID of this password policy
106            */
107            public void setUserId(long userId) {
108                    _passwordPolicy.setUserId(userId);
109            }
110    
111            /**
112            * Returns the user uuid of this password policy.
113            *
114            * @return the user uuid of this password policy
115            * @throws SystemException if a system exception occurred
116            */
117            public java.lang.String getUserUuid()
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return _passwordPolicy.getUserUuid();
120            }
121    
122            /**
123            * Sets the user uuid of this password policy.
124            *
125            * @param userUuid the user uuid of this password policy
126            */
127            public void setUserUuid(java.lang.String userUuid) {
128                    _passwordPolicy.setUserUuid(userUuid);
129            }
130    
131            /**
132            * Returns the user name of this password policy.
133            *
134            * @return the user name of this password policy
135            */
136            public java.lang.String getUserName() {
137                    return _passwordPolicy.getUserName();
138            }
139    
140            /**
141            * Sets the user name of this password policy.
142            *
143            * @param userName the user name of this password policy
144            */
145            public void setUserName(java.lang.String userName) {
146                    _passwordPolicy.setUserName(userName);
147            }
148    
149            /**
150            * Returns the create date of this password policy.
151            *
152            * @return the create date of this password policy
153            */
154            public java.util.Date getCreateDate() {
155                    return _passwordPolicy.getCreateDate();
156            }
157    
158            /**
159            * Sets the create date of this password policy.
160            *
161            * @param createDate the create date of this password policy
162            */
163            public void setCreateDate(java.util.Date createDate) {
164                    _passwordPolicy.setCreateDate(createDate);
165            }
166    
167            /**
168            * Returns the modified date of this password policy.
169            *
170            * @return the modified date of this password policy
171            */
172            public java.util.Date getModifiedDate() {
173                    return _passwordPolicy.getModifiedDate();
174            }
175    
176            /**
177            * Sets the modified date of this password policy.
178            *
179            * @param modifiedDate the modified date of this password policy
180            */
181            public void setModifiedDate(java.util.Date modifiedDate) {
182                    _passwordPolicy.setModifiedDate(modifiedDate);
183            }
184    
185            /**
186            * Returns the default policy of this password policy.
187            *
188            * @return the default policy of this password policy
189            */
190            public boolean getDefaultPolicy() {
191                    return _passwordPolicy.getDefaultPolicy();
192            }
193    
194            /**
195            * Returns <code>true</code> if this password policy is default policy.
196            *
197            * @return <code>true</code> if this password policy is default policy; <code>false</code> otherwise
198            */
199            public boolean isDefaultPolicy() {
200                    return _passwordPolicy.isDefaultPolicy();
201            }
202    
203            /**
204            * Sets whether this password policy is default policy.
205            *
206            * @param defaultPolicy the default policy of this password policy
207            */
208            public void setDefaultPolicy(boolean defaultPolicy) {
209                    _passwordPolicy.setDefaultPolicy(defaultPolicy);
210            }
211    
212            /**
213            * Returns the name of this password policy.
214            *
215            * @return the name of this password policy
216            */
217            public java.lang.String getName() {
218                    return _passwordPolicy.getName();
219            }
220    
221            /**
222            * Sets the name of this password policy.
223            *
224            * @param name the name of this password policy
225            */
226            public void setName(java.lang.String name) {
227                    _passwordPolicy.setName(name);
228            }
229    
230            /**
231            * Returns the description of this password policy.
232            *
233            * @return the description of this password policy
234            */
235            public java.lang.String getDescription() {
236                    return _passwordPolicy.getDescription();
237            }
238    
239            /**
240            * Sets the description of this password policy.
241            *
242            * @param description the description of this password policy
243            */
244            public void setDescription(java.lang.String description) {
245                    _passwordPolicy.setDescription(description);
246            }
247    
248            /**
249            * Returns the changeable of this password policy.
250            *
251            * @return the changeable of this password policy
252            */
253            public boolean getChangeable() {
254                    return _passwordPolicy.getChangeable();
255            }
256    
257            /**
258            * Returns <code>true</code> if this password policy is changeable.
259            *
260            * @return <code>true</code> if this password policy is changeable; <code>false</code> otherwise
261            */
262            public boolean isChangeable() {
263                    return _passwordPolicy.isChangeable();
264            }
265    
266            /**
267            * Sets whether this password policy is changeable.
268            *
269            * @param changeable the changeable of this password policy
270            */
271            public void setChangeable(boolean changeable) {
272                    _passwordPolicy.setChangeable(changeable);
273            }
274    
275            /**
276            * Returns the change required of this password policy.
277            *
278            * @return the change required of this password policy
279            */
280            public boolean getChangeRequired() {
281                    return _passwordPolicy.getChangeRequired();
282            }
283    
284            /**
285            * Returns <code>true</code> if this password policy is change required.
286            *
287            * @return <code>true</code> if this password policy is change required; <code>false</code> otherwise
288            */
289            public boolean isChangeRequired() {
290                    return _passwordPolicy.isChangeRequired();
291            }
292    
293            /**
294            * Sets whether this password policy is change required.
295            *
296            * @param changeRequired the change required of this password policy
297            */
298            public void setChangeRequired(boolean changeRequired) {
299                    _passwordPolicy.setChangeRequired(changeRequired);
300            }
301    
302            /**
303            * Returns the min age of this password policy.
304            *
305            * @return the min age of this password policy
306            */
307            public long getMinAge() {
308                    return _passwordPolicy.getMinAge();
309            }
310    
311            /**
312            * Sets the min age of this password policy.
313            *
314            * @param minAge the min age of this password policy
315            */
316            public void setMinAge(long minAge) {
317                    _passwordPolicy.setMinAge(minAge);
318            }
319    
320            /**
321            * Returns the check syntax of this password policy.
322            *
323            * @return the check syntax of this password policy
324            */
325            public boolean getCheckSyntax() {
326                    return _passwordPolicy.getCheckSyntax();
327            }
328    
329            /**
330            * Returns <code>true</code> if this password policy is check syntax.
331            *
332            * @return <code>true</code> if this password policy is check syntax; <code>false</code> otherwise
333            */
334            public boolean isCheckSyntax() {
335                    return _passwordPolicy.isCheckSyntax();
336            }
337    
338            /**
339            * Sets whether this password policy is check syntax.
340            *
341            * @param checkSyntax the check syntax of this password policy
342            */
343            public void setCheckSyntax(boolean checkSyntax) {
344                    _passwordPolicy.setCheckSyntax(checkSyntax);
345            }
346    
347            /**
348            * Returns the allow dictionary words of this password policy.
349            *
350            * @return the allow dictionary words of this password policy
351            */
352            public boolean getAllowDictionaryWords() {
353                    return _passwordPolicy.getAllowDictionaryWords();
354            }
355    
356            /**
357            * Returns <code>true</code> if this password policy is allow dictionary words.
358            *
359            * @return <code>true</code> if this password policy is allow dictionary words; <code>false</code> otherwise
360            */
361            public boolean isAllowDictionaryWords() {
362                    return _passwordPolicy.isAllowDictionaryWords();
363            }
364    
365            /**
366            * Sets whether this password policy is allow dictionary words.
367            *
368            * @param allowDictionaryWords the allow dictionary words of this password policy
369            */
370            public void setAllowDictionaryWords(boolean allowDictionaryWords) {
371                    _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
372            }
373    
374            /**
375            * Returns the min alphanumeric of this password policy.
376            *
377            * @return the min alphanumeric of this password policy
378            */
379            public int getMinAlphanumeric() {
380                    return _passwordPolicy.getMinAlphanumeric();
381            }
382    
383            /**
384            * Sets the min alphanumeric of this password policy.
385            *
386            * @param minAlphanumeric the min alphanumeric of this password policy
387            */
388            public void setMinAlphanumeric(int minAlphanumeric) {
389                    _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
390            }
391    
392            /**
393            * Returns the min length of this password policy.
394            *
395            * @return the min length of this password policy
396            */
397            public int getMinLength() {
398                    return _passwordPolicy.getMinLength();
399            }
400    
401            /**
402            * Sets the min length of this password policy.
403            *
404            * @param minLength the min length of this password policy
405            */
406            public void setMinLength(int minLength) {
407                    _passwordPolicy.setMinLength(minLength);
408            }
409    
410            /**
411            * Returns the min lower case of this password policy.
412            *
413            * @return the min lower case of this password policy
414            */
415            public int getMinLowerCase() {
416                    return _passwordPolicy.getMinLowerCase();
417            }
418    
419            /**
420            * Sets the min lower case of this password policy.
421            *
422            * @param minLowerCase the min lower case of this password policy
423            */
424            public void setMinLowerCase(int minLowerCase) {
425                    _passwordPolicy.setMinLowerCase(minLowerCase);
426            }
427    
428            /**
429            * Returns the min numbers of this password policy.
430            *
431            * @return the min numbers of this password policy
432            */
433            public int getMinNumbers() {
434                    return _passwordPolicy.getMinNumbers();
435            }
436    
437            /**
438            * Sets the min numbers of this password policy.
439            *
440            * @param minNumbers the min numbers of this password policy
441            */
442            public void setMinNumbers(int minNumbers) {
443                    _passwordPolicy.setMinNumbers(minNumbers);
444            }
445    
446            /**
447            * Returns the min symbols of this password policy.
448            *
449            * @return the min symbols of this password policy
450            */
451            public int getMinSymbols() {
452                    return _passwordPolicy.getMinSymbols();
453            }
454    
455            /**
456            * Sets the min symbols of this password policy.
457            *
458            * @param minSymbols the min symbols of this password policy
459            */
460            public void setMinSymbols(int minSymbols) {
461                    _passwordPolicy.setMinSymbols(minSymbols);
462            }
463    
464            /**
465            * Returns the min upper case of this password policy.
466            *
467            * @return the min upper case of this password policy
468            */
469            public int getMinUpperCase() {
470                    return _passwordPolicy.getMinUpperCase();
471            }
472    
473            /**
474            * Sets the min upper case of this password policy.
475            *
476            * @param minUpperCase the min upper case of this password policy
477            */
478            public void setMinUpperCase(int minUpperCase) {
479                    _passwordPolicy.setMinUpperCase(minUpperCase);
480            }
481    
482            /**
483            * Returns the history of this password policy.
484            *
485            * @return the history of this password policy
486            */
487            public boolean getHistory() {
488                    return _passwordPolicy.getHistory();
489            }
490    
491            /**
492            * Returns <code>true</code> if this password policy is history.
493            *
494            * @return <code>true</code> if this password policy is history; <code>false</code> otherwise
495            */
496            public boolean isHistory() {
497                    return _passwordPolicy.isHistory();
498            }
499    
500            /**
501            * Sets whether this password policy is history.
502            *
503            * @param history the history of this password policy
504            */
505            public void setHistory(boolean history) {
506                    _passwordPolicy.setHistory(history);
507            }
508    
509            /**
510            * Returns the history count of this password policy.
511            *
512            * @return the history count of this password policy
513            */
514            public int getHistoryCount() {
515                    return _passwordPolicy.getHistoryCount();
516            }
517    
518            /**
519            * Sets the history count of this password policy.
520            *
521            * @param historyCount the history count of this password policy
522            */
523            public void setHistoryCount(int historyCount) {
524                    _passwordPolicy.setHistoryCount(historyCount);
525            }
526    
527            /**
528            * Returns the expireable of this password policy.
529            *
530            * @return the expireable of this password policy
531            */
532            public boolean getExpireable() {
533                    return _passwordPolicy.getExpireable();
534            }
535    
536            /**
537            * Returns <code>true</code> if this password policy is expireable.
538            *
539            * @return <code>true</code> if this password policy is expireable; <code>false</code> otherwise
540            */
541            public boolean isExpireable() {
542                    return _passwordPolicy.isExpireable();
543            }
544    
545            /**
546            * Sets whether this password policy is expireable.
547            *
548            * @param expireable the expireable of this password policy
549            */
550            public void setExpireable(boolean expireable) {
551                    _passwordPolicy.setExpireable(expireable);
552            }
553    
554            /**
555            * Returns the max age of this password policy.
556            *
557            * @return the max age of this password policy
558            */
559            public long getMaxAge() {
560                    return _passwordPolicy.getMaxAge();
561            }
562    
563            /**
564            * Sets the max age of this password policy.
565            *
566            * @param maxAge the max age of this password policy
567            */
568            public void setMaxAge(long maxAge) {
569                    _passwordPolicy.setMaxAge(maxAge);
570            }
571    
572            /**
573            * Returns the warning time of this password policy.
574            *
575            * @return the warning time of this password policy
576            */
577            public long getWarningTime() {
578                    return _passwordPolicy.getWarningTime();
579            }
580    
581            /**
582            * Sets the warning time of this password policy.
583            *
584            * @param warningTime the warning time of this password policy
585            */
586            public void setWarningTime(long warningTime) {
587                    _passwordPolicy.setWarningTime(warningTime);
588            }
589    
590            /**
591            * Returns the grace limit of this password policy.
592            *
593            * @return the grace limit of this password policy
594            */
595            public int getGraceLimit() {
596                    return _passwordPolicy.getGraceLimit();
597            }
598    
599            /**
600            * Sets the grace limit of this password policy.
601            *
602            * @param graceLimit the grace limit of this password policy
603            */
604            public void setGraceLimit(int graceLimit) {
605                    _passwordPolicy.setGraceLimit(graceLimit);
606            }
607    
608            /**
609            * Returns the lockout of this password policy.
610            *
611            * @return the lockout of this password policy
612            */
613            public boolean getLockout() {
614                    return _passwordPolicy.getLockout();
615            }
616    
617            /**
618            * Returns <code>true</code> if this password policy is lockout.
619            *
620            * @return <code>true</code> if this password policy is lockout; <code>false</code> otherwise
621            */
622            public boolean isLockout() {
623                    return _passwordPolicy.isLockout();
624            }
625    
626            /**
627            * Sets whether this password policy is lockout.
628            *
629            * @param lockout the lockout of this password policy
630            */
631            public void setLockout(boolean lockout) {
632                    _passwordPolicy.setLockout(lockout);
633            }
634    
635            /**
636            * Returns the max failure of this password policy.
637            *
638            * @return the max failure of this password policy
639            */
640            public int getMaxFailure() {
641                    return _passwordPolicy.getMaxFailure();
642            }
643    
644            /**
645            * Sets the max failure of this password policy.
646            *
647            * @param maxFailure the max failure of this password policy
648            */
649            public void setMaxFailure(int maxFailure) {
650                    _passwordPolicy.setMaxFailure(maxFailure);
651            }
652    
653            /**
654            * Returns the lockout duration of this password policy.
655            *
656            * @return the lockout duration of this password policy
657            */
658            public long getLockoutDuration() {
659                    return _passwordPolicy.getLockoutDuration();
660            }
661    
662            /**
663            * Sets the lockout duration of this password policy.
664            *
665            * @param lockoutDuration the lockout duration of this password policy
666            */
667            public void setLockoutDuration(long lockoutDuration) {
668                    _passwordPolicy.setLockoutDuration(lockoutDuration);
669            }
670    
671            /**
672            * Returns the require unlock of this password policy.
673            *
674            * @return the require unlock of this password policy
675            */
676            public boolean getRequireUnlock() {
677                    return _passwordPolicy.getRequireUnlock();
678            }
679    
680            /**
681            * Returns <code>true</code> if this password policy is require unlock.
682            *
683            * @return <code>true</code> if this password policy is require unlock; <code>false</code> otherwise
684            */
685            public boolean isRequireUnlock() {
686                    return _passwordPolicy.isRequireUnlock();
687            }
688    
689            /**
690            * Sets whether this password policy is require unlock.
691            *
692            * @param requireUnlock the require unlock of this password policy
693            */
694            public void setRequireUnlock(boolean requireUnlock) {
695                    _passwordPolicy.setRequireUnlock(requireUnlock);
696            }
697    
698            /**
699            * Returns the reset failure count of this password policy.
700            *
701            * @return the reset failure count of this password policy
702            */
703            public long getResetFailureCount() {
704                    return _passwordPolicy.getResetFailureCount();
705            }
706    
707            /**
708            * Sets the reset failure count of this password policy.
709            *
710            * @param resetFailureCount the reset failure count of this password policy
711            */
712            public void setResetFailureCount(long resetFailureCount) {
713                    _passwordPolicy.setResetFailureCount(resetFailureCount);
714            }
715    
716            /**
717            * Returns the reset ticket max age of this password policy.
718            *
719            * @return the reset ticket max age of this password policy
720            */
721            public long getResetTicketMaxAge() {
722                    return _passwordPolicy.getResetTicketMaxAge();
723            }
724    
725            /**
726            * Sets the reset ticket max age of this password policy.
727            *
728            * @param resetTicketMaxAge the reset ticket max age of this password policy
729            */
730            public void setResetTicketMaxAge(long resetTicketMaxAge) {
731                    _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
732            }
733    
734            public boolean isNew() {
735                    return _passwordPolicy.isNew();
736            }
737    
738            public void setNew(boolean n) {
739                    _passwordPolicy.setNew(n);
740            }
741    
742            public boolean isCachedModel() {
743                    return _passwordPolicy.isCachedModel();
744            }
745    
746            public void setCachedModel(boolean cachedModel) {
747                    _passwordPolicy.setCachedModel(cachedModel);
748            }
749    
750            public boolean isEscapedModel() {
751                    return _passwordPolicy.isEscapedModel();
752            }
753    
754            public java.io.Serializable getPrimaryKeyObj() {
755                    return _passwordPolicy.getPrimaryKeyObj();
756            }
757    
758            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
759                    _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
760            }
761    
762            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
763                    return _passwordPolicy.getExpandoBridge();
764            }
765    
766            public void setExpandoBridgeAttributes(
767                    com.liferay.portal.service.ServiceContext serviceContext) {
768                    _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
769            }
770    
771            @Override
772            public java.lang.Object clone() {
773                    return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
774            }
775    
776            public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
777                    return _passwordPolicy.compareTo(passwordPolicy);
778            }
779    
780            @Override
781            public int hashCode() {
782                    return _passwordPolicy.hashCode();
783            }
784    
785            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
786                    return _passwordPolicy.toCacheModel();
787            }
788    
789            public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
790                    return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
791            }
792    
793            @Override
794            public java.lang.String toString() {
795                    return _passwordPolicy.toString();
796            }
797    
798            public java.lang.String toXmlString() {
799                    return _passwordPolicy.toXmlString();
800            }
801    
802            public void persist()
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    _passwordPolicy.persist();
805            }
806    
807            public PasswordPolicy getWrappedPasswordPolicy() {
808                    return _passwordPolicy;
809            }
810    
811            public void resetOriginalValues() {
812                    _passwordPolicy.resetOriginalValues();
813            }
814    
815            private PasswordPolicy _passwordPolicy;
816    }