001
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
030 public class PasswordPolicyWrapper implements PasswordPolicy,
031 ModelWrapper<PasswordPolicy> {
032 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
033 _passwordPolicy = passwordPolicy;
034 }
035
036 public Class<?> getModelClass() {
037 return PasswordPolicy.class;
038 }
039
040 public String getModelClassName() {
041 return PasswordPolicy.class.getName();
042 }
043
044 public Map<String, Object> getModelAttributes() {
045 Map<String, Object> attributes = new HashMap<String, Object>();
046
047 attributes.put("passwordPolicyId", getPasswordPolicyId());
048 attributes.put("companyId", getCompanyId());
049 attributes.put("userId", getUserId());
050 attributes.put("userName", getUserName());
051 attributes.put("createDate", getCreateDate());
052 attributes.put("modifiedDate", getModifiedDate());
053 attributes.put("defaultPolicy", getDefaultPolicy());
054 attributes.put("name", getName());
055 attributes.put("description", getDescription());
056 attributes.put("changeable", getChangeable());
057 attributes.put("changeRequired", getChangeRequired());
058 attributes.put("minAge", getMinAge());
059 attributes.put("checkSyntax", getCheckSyntax());
060 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
061 attributes.put("minAlphanumeric", getMinAlphanumeric());
062 attributes.put("minLength", getMinLength());
063 attributes.put("minLowerCase", getMinLowerCase());
064 attributes.put("minNumbers", getMinNumbers());
065 attributes.put("minSymbols", getMinSymbols());
066 attributes.put("minUpperCase", getMinUpperCase());
067 attributes.put("regex", getRegex());
068 attributes.put("history", getHistory());
069 attributes.put("historyCount", getHistoryCount());
070 attributes.put("expireable", getExpireable());
071 attributes.put("maxAge", getMaxAge());
072 attributes.put("warningTime", getWarningTime());
073 attributes.put("graceLimit", getGraceLimit());
074 attributes.put("lockout", getLockout());
075 attributes.put("maxFailure", getMaxFailure());
076 attributes.put("lockoutDuration", getLockoutDuration());
077 attributes.put("requireUnlock", getRequireUnlock());
078 attributes.put("resetFailureCount", getResetFailureCount());
079 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
080
081 return attributes;
082 }
083
084 public void setModelAttributes(Map<String, Object> attributes) {
085 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
086
087 if (passwordPolicyId != null) {
088 setPasswordPolicyId(passwordPolicyId);
089 }
090
091 Long companyId = (Long)attributes.get("companyId");
092
093 if (companyId != null) {
094 setCompanyId(companyId);
095 }
096
097 Long userId = (Long)attributes.get("userId");
098
099 if (userId != null) {
100 setUserId(userId);
101 }
102
103 String userName = (String)attributes.get("userName");
104
105 if (userName != null) {
106 setUserName(userName);
107 }
108
109 Date createDate = (Date)attributes.get("createDate");
110
111 if (createDate != null) {
112 setCreateDate(createDate);
113 }
114
115 Date modifiedDate = (Date)attributes.get("modifiedDate");
116
117 if (modifiedDate != null) {
118 setModifiedDate(modifiedDate);
119 }
120
121 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
122
123 if (defaultPolicy != null) {
124 setDefaultPolicy(defaultPolicy);
125 }
126
127 String name = (String)attributes.get("name");
128
129 if (name != null) {
130 setName(name);
131 }
132
133 String description = (String)attributes.get("description");
134
135 if (description != null) {
136 setDescription(description);
137 }
138
139 Boolean changeable = (Boolean)attributes.get("changeable");
140
141 if (changeable != null) {
142 setChangeable(changeable);
143 }
144
145 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
146
147 if (changeRequired != null) {
148 setChangeRequired(changeRequired);
149 }
150
151 Long minAge = (Long)attributes.get("minAge");
152
153 if (minAge != null) {
154 setMinAge(minAge);
155 }
156
157 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
158
159 if (checkSyntax != null) {
160 setCheckSyntax(checkSyntax);
161 }
162
163 Boolean allowDictionaryWords = (Boolean)attributes.get(
164 "allowDictionaryWords");
165
166 if (allowDictionaryWords != null) {
167 setAllowDictionaryWords(allowDictionaryWords);
168 }
169
170 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
171
172 if (minAlphanumeric != null) {
173 setMinAlphanumeric(minAlphanumeric);
174 }
175
176 Integer minLength = (Integer)attributes.get("minLength");
177
178 if (minLength != null) {
179 setMinLength(minLength);
180 }
181
182 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
183
184 if (minLowerCase != null) {
185 setMinLowerCase(minLowerCase);
186 }
187
188 Integer minNumbers = (Integer)attributes.get("minNumbers");
189
190 if (minNumbers != null) {
191 setMinNumbers(minNumbers);
192 }
193
194 Integer minSymbols = (Integer)attributes.get("minSymbols");
195
196 if (minSymbols != null) {
197 setMinSymbols(minSymbols);
198 }
199
200 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
201
202 if (minUpperCase != null) {
203 setMinUpperCase(minUpperCase);
204 }
205
206 String regex = (String)attributes.get("regex");
207
208 if (regex != null) {
209 setRegex(regex);
210 }
211
212 Boolean history = (Boolean)attributes.get("history");
213
214 if (history != null) {
215 setHistory(history);
216 }
217
218 Integer historyCount = (Integer)attributes.get("historyCount");
219
220 if (historyCount != null) {
221 setHistoryCount(historyCount);
222 }
223
224 Boolean expireable = (Boolean)attributes.get("expireable");
225
226 if (expireable != null) {
227 setExpireable(expireable);
228 }
229
230 Long maxAge = (Long)attributes.get("maxAge");
231
232 if (maxAge != null) {
233 setMaxAge(maxAge);
234 }
235
236 Long warningTime = (Long)attributes.get("warningTime");
237
238 if (warningTime != null) {
239 setWarningTime(warningTime);
240 }
241
242 Integer graceLimit = (Integer)attributes.get("graceLimit");
243
244 if (graceLimit != null) {
245 setGraceLimit(graceLimit);
246 }
247
248 Boolean lockout = (Boolean)attributes.get("lockout");
249
250 if (lockout != null) {
251 setLockout(lockout);
252 }
253
254 Integer maxFailure = (Integer)attributes.get("maxFailure");
255
256 if (maxFailure != null) {
257 setMaxFailure(maxFailure);
258 }
259
260 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
261
262 if (lockoutDuration != null) {
263 setLockoutDuration(lockoutDuration);
264 }
265
266 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
267
268 if (requireUnlock != null) {
269 setRequireUnlock(requireUnlock);
270 }
271
272 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
273
274 if (resetFailureCount != null) {
275 setResetFailureCount(resetFailureCount);
276 }
277
278 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
279
280 if (resetTicketMaxAge != null) {
281 setResetTicketMaxAge(resetTicketMaxAge);
282 }
283 }
284
285
290 public long getPrimaryKey() {
291 return _passwordPolicy.getPrimaryKey();
292 }
293
294
299 public void setPrimaryKey(long primaryKey) {
300 _passwordPolicy.setPrimaryKey(primaryKey);
301 }
302
303
308 public long getPasswordPolicyId() {
309 return _passwordPolicy.getPasswordPolicyId();
310 }
311
312
317 public void setPasswordPolicyId(long passwordPolicyId) {
318 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
319 }
320
321
326 public long getCompanyId() {
327 return _passwordPolicy.getCompanyId();
328 }
329
330
335 public void setCompanyId(long companyId) {
336 _passwordPolicy.setCompanyId(companyId);
337 }
338
339
344 public long getUserId() {
345 return _passwordPolicy.getUserId();
346 }
347
348
353 public void setUserId(long userId) {
354 _passwordPolicy.setUserId(userId);
355 }
356
357
363 public java.lang.String getUserUuid()
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return _passwordPolicy.getUserUuid();
366 }
367
368
373 public void setUserUuid(java.lang.String userUuid) {
374 _passwordPolicy.setUserUuid(userUuid);
375 }
376
377
382 public java.lang.String getUserName() {
383 return _passwordPolicy.getUserName();
384 }
385
386
391 public void setUserName(java.lang.String userName) {
392 _passwordPolicy.setUserName(userName);
393 }
394
395
400 public java.util.Date getCreateDate() {
401 return _passwordPolicy.getCreateDate();
402 }
403
404
409 public void setCreateDate(java.util.Date createDate) {
410 _passwordPolicy.setCreateDate(createDate);
411 }
412
413
418 public java.util.Date getModifiedDate() {
419 return _passwordPolicy.getModifiedDate();
420 }
421
422
427 public void setModifiedDate(java.util.Date modifiedDate) {
428 _passwordPolicy.setModifiedDate(modifiedDate);
429 }
430
431
436 public boolean getDefaultPolicy() {
437 return _passwordPolicy.getDefaultPolicy();
438 }
439
440
445 public boolean isDefaultPolicy() {
446 return _passwordPolicy.isDefaultPolicy();
447 }
448
449
454 public void setDefaultPolicy(boolean defaultPolicy) {
455 _passwordPolicy.setDefaultPolicy(defaultPolicy);
456 }
457
458
463 public java.lang.String getName() {
464 return _passwordPolicy.getName();
465 }
466
467
472 public void setName(java.lang.String name) {
473 _passwordPolicy.setName(name);
474 }
475
476
481 public java.lang.String getDescription() {
482 return _passwordPolicy.getDescription();
483 }
484
485
490 public void setDescription(java.lang.String description) {
491 _passwordPolicy.setDescription(description);
492 }
493
494
499 public boolean getChangeable() {
500 return _passwordPolicy.getChangeable();
501 }
502
503
508 public boolean isChangeable() {
509 return _passwordPolicy.isChangeable();
510 }
511
512
517 public void setChangeable(boolean changeable) {
518 _passwordPolicy.setChangeable(changeable);
519 }
520
521
526 public boolean getChangeRequired() {
527 return _passwordPolicy.getChangeRequired();
528 }
529
530
535 public boolean isChangeRequired() {
536 return _passwordPolicy.isChangeRequired();
537 }
538
539
544 public void setChangeRequired(boolean changeRequired) {
545 _passwordPolicy.setChangeRequired(changeRequired);
546 }
547
548
553 public long getMinAge() {
554 return _passwordPolicy.getMinAge();
555 }
556
557
562 public void setMinAge(long minAge) {
563 _passwordPolicy.setMinAge(minAge);
564 }
565
566
571 public boolean getCheckSyntax() {
572 return _passwordPolicy.getCheckSyntax();
573 }
574
575
580 public boolean isCheckSyntax() {
581 return _passwordPolicy.isCheckSyntax();
582 }
583
584
589 public void setCheckSyntax(boolean checkSyntax) {
590 _passwordPolicy.setCheckSyntax(checkSyntax);
591 }
592
593
598 public boolean getAllowDictionaryWords() {
599 return _passwordPolicy.getAllowDictionaryWords();
600 }
601
602
607 public boolean isAllowDictionaryWords() {
608 return _passwordPolicy.isAllowDictionaryWords();
609 }
610
611
616 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
617 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
618 }
619
620
625 public int getMinAlphanumeric() {
626 return _passwordPolicy.getMinAlphanumeric();
627 }
628
629
634 public void setMinAlphanumeric(int minAlphanumeric) {
635 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
636 }
637
638
643 public int getMinLength() {
644 return _passwordPolicy.getMinLength();
645 }
646
647
652 public void setMinLength(int minLength) {
653 _passwordPolicy.setMinLength(minLength);
654 }
655
656
661 public int getMinLowerCase() {
662 return _passwordPolicy.getMinLowerCase();
663 }
664
665
670 public void setMinLowerCase(int minLowerCase) {
671 _passwordPolicy.setMinLowerCase(minLowerCase);
672 }
673
674
679 public int getMinNumbers() {
680 return _passwordPolicy.getMinNumbers();
681 }
682
683
688 public void setMinNumbers(int minNumbers) {
689 _passwordPolicy.setMinNumbers(minNumbers);
690 }
691
692
697 public int getMinSymbols() {
698 return _passwordPolicy.getMinSymbols();
699 }
700
701
706 public void setMinSymbols(int minSymbols) {
707 _passwordPolicy.setMinSymbols(minSymbols);
708 }
709
710
715 public int getMinUpperCase() {
716 return _passwordPolicy.getMinUpperCase();
717 }
718
719
724 public void setMinUpperCase(int minUpperCase) {
725 _passwordPolicy.setMinUpperCase(minUpperCase);
726 }
727
728
733 public java.lang.String getRegex() {
734 return _passwordPolicy.getRegex();
735 }
736
737
742 public void setRegex(java.lang.String regex) {
743 _passwordPolicy.setRegex(regex);
744 }
745
746
751 public boolean getHistory() {
752 return _passwordPolicy.getHistory();
753 }
754
755
760 public boolean isHistory() {
761 return _passwordPolicy.isHistory();
762 }
763
764
769 public void setHistory(boolean history) {
770 _passwordPolicy.setHistory(history);
771 }
772
773
778 public int getHistoryCount() {
779 return _passwordPolicy.getHistoryCount();
780 }
781
782
787 public void setHistoryCount(int historyCount) {
788 _passwordPolicy.setHistoryCount(historyCount);
789 }
790
791
796 public boolean getExpireable() {
797 return _passwordPolicy.getExpireable();
798 }
799
800
805 public boolean isExpireable() {
806 return _passwordPolicy.isExpireable();
807 }
808
809
814 public void setExpireable(boolean expireable) {
815 _passwordPolicy.setExpireable(expireable);
816 }
817
818
823 public long getMaxAge() {
824 return _passwordPolicy.getMaxAge();
825 }
826
827
832 public void setMaxAge(long maxAge) {
833 _passwordPolicy.setMaxAge(maxAge);
834 }
835
836
841 public long getWarningTime() {
842 return _passwordPolicy.getWarningTime();
843 }
844
845
850 public void setWarningTime(long warningTime) {
851 _passwordPolicy.setWarningTime(warningTime);
852 }
853
854
859 public int getGraceLimit() {
860 return _passwordPolicy.getGraceLimit();
861 }
862
863
868 public void setGraceLimit(int graceLimit) {
869 _passwordPolicy.setGraceLimit(graceLimit);
870 }
871
872
877 public boolean getLockout() {
878 return _passwordPolicy.getLockout();
879 }
880
881
886 public boolean isLockout() {
887 return _passwordPolicy.isLockout();
888 }
889
890
895 public void setLockout(boolean lockout) {
896 _passwordPolicy.setLockout(lockout);
897 }
898
899
904 public int getMaxFailure() {
905 return _passwordPolicy.getMaxFailure();
906 }
907
908
913 public void setMaxFailure(int maxFailure) {
914 _passwordPolicy.setMaxFailure(maxFailure);
915 }
916
917
922 public long getLockoutDuration() {
923 return _passwordPolicy.getLockoutDuration();
924 }
925
926
931 public void setLockoutDuration(long lockoutDuration) {
932 _passwordPolicy.setLockoutDuration(lockoutDuration);
933 }
934
935
940 public boolean getRequireUnlock() {
941 return _passwordPolicy.getRequireUnlock();
942 }
943
944
949 public boolean isRequireUnlock() {
950 return _passwordPolicy.isRequireUnlock();
951 }
952
953
958 public void setRequireUnlock(boolean requireUnlock) {
959 _passwordPolicy.setRequireUnlock(requireUnlock);
960 }
961
962
967 public long getResetFailureCount() {
968 return _passwordPolicy.getResetFailureCount();
969 }
970
971
976 public void setResetFailureCount(long resetFailureCount) {
977 _passwordPolicy.setResetFailureCount(resetFailureCount);
978 }
979
980
985 public long getResetTicketMaxAge() {
986 return _passwordPolicy.getResetTicketMaxAge();
987 }
988
989
994 public void setResetTicketMaxAge(long resetTicketMaxAge) {
995 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
996 }
997
998 public boolean isNew() {
999 return _passwordPolicy.isNew();
1000 }
1001
1002 public void setNew(boolean n) {
1003 _passwordPolicy.setNew(n);
1004 }
1005
1006 public boolean isCachedModel() {
1007 return _passwordPolicy.isCachedModel();
1008 }
1009
1010 public void setCachedModel(boolean cachedModel) {
1011 _passwordPolicy.setCachedModel(cachedModel);
1012 }
1013
1014 public boolean isEscapedModel() {
1015 return _passwordPolicy.isEscapedModel();
1016 }
1017
1018 public java.io.Serializable getPrimaryKeyObj() {
1019 return _passwordPolicy.getPrimaryKeyObj();
1020 }
1021
1022 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1023 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1024 }
1025
1026 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1027 return _passwordPolicy.getExpandoBridge();
1028 }
1029
1030 public void setExpandoBridgeAttributes(
1031 com.liferay.portal.service.ServiceContext serviceContext) {
1032 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
1033 }
1034
1035 @Override
1036 public java.lang.Object clone() {
1037 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
1038 }
1039
1040 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
1041 return _passwordPolicy.compareTo(passwordPolicy);
1042 }
1043
1044 @Override
1045 public int hashCode() {
1046 return _passwordPolicy.hashCode();
1047 }
1048
1049 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1050 return _passwordPolicy.toCacheModel();
1051 }
1052
1053 public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1054 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1055 }
1056
1057 public com.liferay.portal.model.PasswordPolicy toUnescapedModel() {
1058 return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1059 }
1060
1061 @Override
1062 public java.lang.String toString() {
1063 return _passwordPolicy.toString();
1064 }
1065
1066 public java.lang.String toXmlString() {
1067 return _passwordPolicy.toXmlString();
1068 }
1069
1070 public void persist()
1071 throws com.liferay.portal.kernel.exception.SystemException {
1072 _passwordPolicy.persist();
1073 }
1074
1075
1078 public PasswordPolicy getWrappedPasswordPolicy() {
1079 return _passwordPolicy;
1080 }
1081
1082 public PasswordPolicy getWrappedModel() {
1083 return _passwordPolicy;
1084 }
1085
1086 public void resetOriginalValues() {
1087 _passwordPolicy.resetOriginalValues();
1088 }
1089
1090 private PasswordPolicy _passwordPolicy;
1091 }