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("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
297 public long getPrimaryKey() {
298 return _passwordPolicy.getPrimaryKey();
299 }
300
301
306 public void setPrimaryKey(long primaryKey) {
307 _passwordPolicy.setPrimaryKey(primaryKey);
308 }
309
310
315 public java.lang.String getUuid() {
316 return _passwordPolicy.getUuid();
317 }
318
319
324 public void setUuid(java.lang.String uuid) {
325 _passwordPolicy.setUuid(uuid);
326 }
327
328
333 public long getPasswordPolicyId() {
334 return _passwordPolicy.getPasswordPolicyId();
335 }
336
337
342 public void setPasswordPolicyId(long passwordPolicyId) {
343 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
344 }
345
346
351 public long getCompanyId() {
352 return _passwordPolicy.getCompanyId();
353 }
354
355
360 public void setCompanyId(long companyId) {
361 _passwordPolicy.setCompanyId(companyId);
362 }
363
364
369 public long getUserId() {
370 return _passwordPolicy.getUserId();
371 }
372
373
378 public void setUserId(long userId) {
379 _passwordPolicy.setUserId(userId);
380 }
381
382
388 public java.lang.String getUserUuid()
389 throws com.liferay.portal.kernel.exception.SystemException {
390 return _passwordPolicy.getUserUuid();
391 }
392
393
398 public void setUserUuid(java.lang.String userUuid) {
399 _passwordPolicy.setUserUuid(userUuid);
400 }
401
402
407 public java.lang.String getUserName() {
408 return _passwordPolicy.getUserName();
409 }
410
411
416 public void setUserName(java.lang.String userName) {
417 _passwordPolicy.setUserName(userName);
418 }
419
420
425 public java.util.Date getCreateDate() {
426 return _passwordPolicy.getCreateDate();
427 }
428
429
434 public void setCreateDate(java.util.Date createDate) {
435 _passwordPolicy.setCreateDate(createDate);
436 }
437
438
443 public java.util.Date getModifiedDate() {
444 return _passwordPolicy.getModifiedDate();
445 }
446
447
452 public void setModifiedDate(java.util.Date modifiedDate) {
453 _passwordPolicy.setModifiedDate(modifiedDate);
454 }
455
456
461 public boolean getDefaultPolicy() {
462 return _passwordPolicy.getDefaultPolicy();
463 }
464
465
470 public boolean isDefaultPolicy() {
471 return _passwordPolicy.isDefaultPolicy();
472 }
473
474
479 public void setDefaultPolicy(boolean defaultPolicy) {
480 _passwordPolicy.setDefaultPolicy(defaultPolicy);
481 }
482
483
488 public java.lang.String getName() {
489 return _passwordPolicy.getName();
490 }
491
492
497 public void setName(java.lang.String name) {
498 _passwordPolicy.setName(name);
499 }
500
501
506 public java.lang.String getDescription() {
507 return _passwordPolicy.getDescription();
508 }
509
510
515 public void setDescription(java.lang.String description) {
516 _passwordPolicy.setDescription(description);
517 }
518
519
524 public boolean getChangeable() {
525 return _passwordPolicy.getChangeable();
526 }
527
528
533 public boolean isChangeable() {
534 return _passwordPolicy.isChangeable();
535 }
536
537
542 public void setChangeable(boolean changeable) {
543 _passwordPolicy.setChangeable(changeable);
544 }
545
546
551 public boolean getChangeRequired() {
552 return _passwordPolicy.getChangeRequired();
553 }
554
555
560 public boolean isChangeRequired() {
561 return _passwordPolicy.isChangeRequired();
562 }
563
564
569 public void setChangeRequired(boolean changeRequired) {
570 _passwordPolicy.setChangeRequired(changeRequired);
571 }
572
573
578 public long getMinAge() {
579 return _passwordPolicy.getMinAge();
580 }
581
582
587 public void setMinAge(long minAge) {
588 _passwordPolicy.setMinAge(minAge);
589 }
590
591
596 public boolean getCheckSyntax() {
597 return _passwordPolicy.getCheckSyntax();
598 }
599
600
605 public boolean isCheckSyntax() {
606 return _passwordPolicy.isCheckSyntax();
607 }
608
609
614 public void setCheckSyntax(boolean checkSyntax) {
615 _passwordPolicy.setCheckSyntax(checkSyntax);
616 }
617
618
623 public boolean getAllowDictionaryWords() {
624 return _passwordPolicy.getAllowDictionaryWords();
625 }
626
627
632 public boolean isAllowDictionaryWords() {
633 return _passwordPolicy.isAllowDictionaryWords();
634 }
635
636
641 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
642 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
643 }
644
645
650 public int getMinAlphanumeric() {
651 return _passwordPolicy.getMinAlphanumeric();
652 }
653
654
659 public void setMinAlphanumeric(int minAlphanumeric) {
660 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
661 }
662
663
668 public int getMinLength() {
669 return _passwordPolicy.getMinLength();
670 }
671
672
677 public void setMinLength(int minLength) {
678 _passwordPolicy.setMinLength(minLength);
679 }
680
681
686 public int getMinLowerCase() {
687 return _passwordPolicy.getMinLowerCase();
688 }
689
690
695 public void setMinLowerCase(int minLowerCase) {
696 _passwordPolicy.setMinLowerCase(minLowerCase);
697 }
698
699
704 public int getMinNumbers() {
705 return _passwordPolicy.getMinNumbers();
706 }
707
708
713 public void setMinNumbers(int minNumbers) {
714 _passwordPolicy.setMinNumbers(minNumbers);
715 }
716
717
722 public int getMinSymbols() {
723 return _passwordPolicy.getMinSymbols();
724 }
725
726
731 public void setMinSymbols(int minSymbols) {
732 _passwordPolicy.setMinSymbols(minSymbols);
733 }
734
735
740 public int getMinUpperCase() {
741 return _passwordPolicy.getMinUpperCase();
742 }
743
744
749 public void setMinUpperCase(int minUpperCase) {
750 _passwordPolicy.setMinUpperCase(minUpperCase);
751 }
752
753
758 public java.lang.String getRegex() {
759 return _passwordPolicy.getRegex();
760 }
761
762
767 public void setRegex(java.lang.String regex) {
768 _passwordPolicy.setRegex(regex);
769 }
770
771
776 public boolean getHistory() {
777 return _passwordPolicy.getHistory();
778 }
779
780
785 public boolean isHistory() {
786 return _passwordPolicy.isHistory();
787 }
788
789
794 public void setHistory(boolean history) {
795 _passwordPolicy.setHistory(history);
796 }
797
798
803 public int getHistoryCount() {
804 return _passwordPolicy.getHistoryCount();
805 }
806
807
812 public void setHistoryCount(int historyCount) {
813 _passwordPolicy.setHistoryCount(historyCount);
814 }
815
816
821 public boolean getExpireable() {
822 return _passwordPolicy.getExpireable();
823 }
824
825
830 public boolean isExpireable() {
831 return _passwordPolicy.isExpireable();
832 }
833
834
839 public void setExpireable(boolean expireable) {
840 _passwordPolicy.setExpireable(expireable);
841 }
842
843
848 public long getMaxAge() {
849 return _passwordPolicy.getMaxAge();
850 }
851
852
857 public void setMaxAge(long maxAge) {
858 _passwordPolicy.setMaxAge(maxAge);
859 }
860
861
866 public long getWarningTime() {
867 return _passwordPolicy.getWarningTime();
868 }
869
870
875 public void setWarningTime(long warningTime) {
876 _passwordPolicy.setWarningTime(warningTime);
877 }
878
879
884 public int getGraceLimit() {
885 return _passwordPolicy.getGraceLimit();
886 }
887
888
893 public void setGraceLimit(int graceLimit) {
894 _passwordPolicy.setGraceLimit(graceLimit);
895 }
896
897
902 public boolean getLockout() {
903 return _passwordPolicy.getLockout();
904 }
905
906
911 public boolean isLockout() {
912 return _passwordPolicy.isLockout();
913 }
914
915
920 public void setLockout(boolean lockout) {
921 _passwordPolicy.setLockout(lockout);
922 }
923
924
929 public int getMaxFailure() {
930 return _passwordPolicy.getMaxFailure();
931 }
932
933
938 public void setMaxFailure(int maxFailure) {
939 _passwordPolicy.setMaxFailure(maxFailure);
940 }
941
942
947 public long getLockoutDuration() {
948 return _passwordPolicy.getLockoutDuration();
949 }
950
951
956 public void setLockoutDuration(long lockoutDuration) {
957 _passwordPolicy.setLockoutDuration(lockoutDuration);
958 }
959
960
965 public boolean getRequireUnlock() {
966 return _passwordPolicy.getRequireUnlock();
967 }
968
969
974 public boolean isRequireUnlock() {
975 return _passwordPolicy.isRequireUnlock();
976 }
977
978
983 public void setRequireUnlock(boolean requireUnlock) {
984 _passwordPolicy.setRequireUnlock(requireUnlock);
985 }
986
987
992 public long getResetFailureCount() {
993 return _passwordPolicy.getResetFailureCount();
994 }
995
996
1001 public void setResetFailureCount(long resetFailureCount) {
1002 _passwordPolicy.setResetFailureCount(resetFailureCount);
1003 }
1004
1005
1010 public long getResetTicketMaxAge() {
1011 return _passwordPolicy.getResetTicketMaxAge();
1012 }
1013
1014
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
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 }