001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Validator;
020
021 import com.liferay.portlet.exportimport.lar.StagedModelType;
022
023 import java.util.Date;
024 import java.util.HashMap;
025 import java.util.Map;
026
027
036 @ProviderType
037 public class PasswordPolicyWrapper implements PasswordPolicy,
038 ModelWrapper<PasswordPolicy> {
039 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
040 _passwordPolicy = passwordPolicy;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return PasswordPolicy.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return PasswordPolicy.class.getName();
051 }
052
053 @Override
054 public Map<String, Object> getModelAttributes() {
055 Map<String, Object> attributes = new HashMap<String, Object>();
056
057 attributes.put("mvccVersion", getMvccVersion());
058 attributes.put("uuid", getUuid());
059 attributes.put("passwordPolicyId", getPasswordPolicyId());
060 attributes.put("companyId", getCompanyId());
061 attributes.put("userId", getUserId());
062 attributes.put("userName", getUserName());
063 attributes.put("createDate", getCreateDate());
064 attributes.put("modifiedDate", getModifiedDate());
065 attributes.put("defaultPolicy", getDefaultPolicy());
066 attributes.put("name", getName());
067 attributes.put("description", getDescription());
068 attributes.put("changeable", getChangeable());
069 attributes.put("changeRequired", getChangeRequired());
070 attributes.put("minAge", getMinAge());
071 attributes.put("checkSyntax", getCheckSyntax());
072 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
073 attributes.put("minAlphanumeric", getMinAlphanumeric());
074 attributes.put("minLength", getMinLength());
075 attributes.put("minLowerCase", getMinLowerCase());
076 attributes.put("minNumbers", getMinNumbers());
077 attributes.put("minSymbols", getMinSymbols());
078 attributes.put("minUpperCase", getMinUpperCase());
079 attributes.put("regex", getRegex());
080 attributes.put("history", getHistory());
081 attributes.put("historyCount", getHistoryCount());
082 attributes.put("expireable", getExpireable());
083 attributes.put("maxAge", getMaxAge());
084 attributes.put("warningTime", getWarningTime());
085 attributes.put("graceLimit", getGraceLimit());
086 attributes.put("lockout", getLockout());
087 attributes.put("maxFailure", getMaxFailure());
088 attributes.put("lockoutDuration", getLockoutDuration());
089 attributes.put("requireUnlock", getRequireUnlock());
090 attributes.put("resetFailureCount", getResetFailureCount());
091 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
092
093 return attributes;
094 }
095
096 @Override
097 public void setModelAttributes(Map<String, Object> attributes) {
098 Long mvccVersion = (Long)attributes.get("mvccVersion");
099
100 if (mvccVersion != null) {
101 setMvccVersion(mvccVersion);
102 }
103
104 String uuid = (String)attributes.get("uuid");
105
106 if (uuid != null) {
107 setUuid(uuid);
108 }
109
110 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
111
112 if (passwordPolicyId != null) {
113 setPasswordPolicyId(passwordPolicyId);
114 }
115
116 Long companyId = (Long)attributes.get("companyId");
117
118 if (companyId != null) {
119 setCompanyId(companyId);
120 }
121
122 Long userId = (Long)attributes.get("userId");
123
124 if (userId != null) {
125 setUserId(userId);
126 }
127
128 String userName = (String)attributes.get("userName");
129
130 if (userName != null) {
131 setUserName(userName);
132 }
133
134 Date createDate = (Date)attributes.get("createDate");
135
136 if (createDate != null) {
137 setCreateDate(createDate);
138 }
139
140 Date modifiedDate = (Date)attributes.get("modifiedDate");
141
142 if (modifiedDate != null) {
143 setModifiedDate(modifiedDate);
144 }
145
146 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
147
148 if (defaultPolicy != null) {
149 setDefaultPolicy(defaultPolicy);
150 }
151
152 String name = (String)attributes.get("name");
153
154 if (name != null) {
155 setName(name);
156 }
157
158 String description = (String)attributes.get("description");
159
160 if (description != null) {
161 setDescription(description);
162 }
163
164 Boolean changeable = (Boolean)attributes.get("changeable");
165
166 if (changeable != null) {
167 setChangeable(changeable);
168 }
169
170 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
171
172 if (changeRequired != null) {
173 setChangeRequired(changeRequired);
174 }
175
176 Long minAge = (Long)attributes.get("minAge");
177
178 if (minAge != null) {
179 setMinAge(minAge);
180 }
181
182 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
183
184 if (checkSyntax != null) {
185 setCheckSyntax(checkSyntax);
186 }
187
188 Boolean allowDictionaryWords = (Boolean)attributes.get(
189 "allowDictionaryWords");
190
191 if (allowDictionaryWords != null) {
192 setAllowDictionaryWords(allowDictionaryWords);
193 }
194
195 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
196
197 if (minAlphanumeric != null) {
198 setMinAlphanumeric(minAlphanumeric);
199 }
200
201 Integer minLength = (Integer)attributes.get("minLength");
202
203 if (minLength != null) {
204 setMinLength(minLength);
205 }
206
207 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
208
209 if (minLowerCase != null) {
210 setMinLowerCase(minLowerCase);
211 }
212
213 Integer minNumbers = (Integer)attributes.get("minNumbers");
214
215 if (minNumbers != null) {
216 setMinNumbers(minNumbers);
217 }
218
219 Integer minSymbols = (Integer)attributes.get("minSymbols");
220
221 if (minSymbols != null) {
222 setMinSymbols(minSymbols);
223 }
224
225 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
226
227 if (minUpperCase != null) {
228 setMinUpperCase(minUpperCase);
229 }
230
231 String regex = (String)attributes.get("regex");
232
233 if (regex != null) {
234 setRegex(regex);
235 }
236
237 Boolean history = (Boolean)attributes.get("history");
238
239 if (history != null) {
240 setHistory(history);
241 }
242
243 Integer historyCount = (Integer)attributes.get("historyCount");
244
245 if (historyCount != null) {
246 setHistoryCount(historyCount);
247 }
248
249 Boolean expireable = (Boolean)attributes.get("expireable");
250
251 if (expireable != null) {
252 setExpireable(expireable);
253 }
254
255 Long maxAge = (Long)attributes.get("maxAge");
256
257 if (maxAge != null) {
258 setMaxAge(maxAge);
259 }
260
261 Long warningTime = (Long)attributes.get("warningTime");
262
263 if (warningTime != null) {
264 setWarningTime(warningTime);
265 }
266
267 Integer graceLimit = (Integer)attributes.get("graceLimit");
268
269 if (graceLimit != null) {
270 setGraceLimit(graceLimit);
271 }
272
273 Boolean lockout = (Boolean)attributes.get("lockout");
274
275 if (lockout != null) {
276 setLockout(lockout);
277 }
278
279 Integer maxFailure = (Integer)attributes.get("maxFailure");
280
281 if (maxFailure != null) {
282 setMaxFailure(maxFailure);
283 }
284
285 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
286
287 if (lockoutDuration != null) {
288 setLockoutDuration(lockoutDuration);
289 }
290
291 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
292
293 if (requireUnlock != null) {
294 setRequireUnlock(requireUnlock);
295 }
296
297 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
298
299 if (resetFailureCount != null) {
300 setResetFailureCount(resetFailureCount);
301 }
302
303 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
304
305 if (resetTicketMaxAge != null) {
306 setResetTicketMaxAge(resetTicketMaxAge);
307 }
308 }
309
310 @Override
311 public java.lang.Object clone() {
312 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
313 }
314
315 @Override
316 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
317 return _passwordPolicy.compareTo(passwordPolicy);
318 }
319
320
325 @Override
326 public boolean getAllowDictionaryWords() {
327 return _passwordPolicy.getAllowDictionaryWords();
328 }
329
330
335 @Override
336 public boolean getChangeRequired() {
337 return _passwordPolicy.getChangeRequired();
338 }
339
340
345 @Override
346 public boolean getChangeable() {
347 return _passwordPolicy.getChangeable();
348 }
349
350
355 @Override
356 public boolean getCheckSyntax() {
357 return _passwordPolicy.getCheckSyntax();
358 }
359
360
365 @Override
366 public long getCompanyId() {
367 return _passwordPolicy.getCompanyId();
368 }
369
370
375 @Override
376 public Date getCreateDate() {
377 return _passwordPolicy.getCreateDate();
378 }
379
380
385 @Override
386 public boolean getDefaultPolicy() {
387 return _passwordPolicy.getDefaultPolicy();
388 }
389
390
395 @Override
396 public java.lang.String getDescription() {
397 return _passwordPolicy.getDescription();
398 }
399
400 @Override
401 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
402 return _passwordPolicy.getExpandoBridge();
403 }
404
405
410 @Override
411 public boolean getExpireable() {
412 return _passwordPolicy.getExpireable();
413 }
414
415
420 @Override
421 public int getGraceLimit() {
422 return _passwordPolicy.getGraceLimit();
423 }
424
425
430 @Override
431 public boolean getHistory() {
432 return _passwordPolicy.getHistory();
433 }
434
435
440 @Override
441 public int getHistoryCount() {
442 return _passwordPolicy.getHistoryCount();
443 }
444
445
450 @Override
451 public boolean getLockout() {
452 return _passwordPolicy.getLockout();
453 }
454
455
460 @Override
461 public long getLockoutDuration() {
462 return _passwordPolicy.getLockoutDuration();
463 }
464
465
470 @Override
471 public long getMaxAge() {
472 return _passwordPolicy.getMaxAge();
473 }
474
475
480 @Override
481 public int getMaxFailure() {
482 return _passwordPolicy.getMaxFailure();
483 }
484
485
490 @Override
491 public long getMinAge() {
492 return _passwordPolicy.getMinAge();
493 }
494
495
500 @Override
501 public int getMinAlphanumeric() {
502 return _passwordPolicy.getMinAlphanumeric();
503 }
504
505
510 @Override
511 public int getMinLength() {
512 return _passwordPolicy.getMinLength();
513 }
514
515
520 @Override
521 public int getMinLowerCase() {
522 return _passwordPolicy.getMinLowerCase();
523 }
524
525
530 @Override
531 public int getMinNumbers() {
532 return _passwordPolicy.getMinNumbers();
533 }
534
535
540 @Override
541 public int getMinSymbols() {
542 return _passwordPolicy.getMinSymbols();
543 }
544
545
550 @Override
551 public int getMinUpperCase() {
552 return _passwordPolicy.getMinUpperCase();
553 }
554
555
560 @Override
561 public Date getModifiedDate() {
562 return _passwordPolicy.getModifiedDate();
563 }
564
565
570 @Override
571 public long getMvccVersion() {
572 return _passwordPolicy.getMvccVersion();
573 }
574
575
580 @Override
581 public java.lang.String getName() {
582 return _passwordPolicy.getName();
583 }
584
585
590 @Override
591 public long getPasswordPolicyId() {
592 return _passwordPolicy.getPasswordPolicyId();
593 }
594
595
600 @Override
601 public long getPrimaryKey() {
602 return _passwordPolicy.getPrimaryKey();
603 }
604
605 @Override
606 public java.io.Serializable getPrimaryKeyObj() {
607 return _passwordPolicy.getPrimaryKeyObj();
608 }
609
610
615 @Override
616 public java.lang.String getRegex() {
617 return _passwordPolicy.getRegex();
618 }
619
620
625 @Override
626 public boolean getRequireUnlock() {
627 return _passwordPolicy.getRequireUnlock();
628 }
629
630
635 @Override
636 public long getResetFailureCount() {
637 return _passwordPolicy.getResetFailureCount();
638 }
639
640
645 @Override
646 public long getResetTicketMaxAge() {
647 return _passwordPolicy.getResetTicketMaxAge();
648 }
649
650
655 @Override
656 public long getUserId() {
657 return _passwordPolicy.getUserId();
658 }
659
660
665 @Override
666 public java.lang.String getUserName() {
667 return _passwordPolicy.getUserName();
668 }
669
670
675 @Override
676 public java.lang.String getUserUuid() {
677 return _passwordPolicy.getUserUuid();
678 }
679
680
685 @Override
686 public java.lang.String getUuid() {
687 return _passwordPolicy.getUuid();
688 }
689
690
695 @Override
696 public long getWarningTime() {
697 return _passwordPolicy.getWarningTime();
698 }
699
700 @Override
701 public int hashCode() {
702 return _passwordPolicy.hashCode();
703 }
704
705
710 @Override
711 public boolean isAllowDictionaryWords() {
712 return _passwordPolicy.isAllowDictionaryWords();
713 }
714
715 @Override
716 public boolean isCachedModel() {
717 return _passwordPolicy.isCachedModel();
718 }
719
720
725 @Override
726 public boolean isChangeRequired() {
727 return _passwordPolicy.isChangeRequired();
728 }
729
730
735 @Override
736 public boolean isChangeable() {
737 return _passwordPolicy.isChangeable();
738 }
739
740
745 @Override
746 public boolean isCheckSyntax() {
747 return _passwordPolicy.isCheckSyntax();
748 }
749
750
755 @Override
756 public boolean isDefaultPolicy() {
757 return _passwordPolicy.isDefaultPolicy();
758 }
759
760 @Override
761 public boolean isEscapedModel() {
762 return _passwordPolicy.isEscapedModel();
763 }
764
765
770 @Override
771 public boolean isExpireable() {
772 return _passwordPolicy.isExpireable();
773 }
774
775
780 @Override
781 public boolean isHistory() {
782 return _passwordPolicy.isHistory();
783 }
784
785
790 @Override
791 public boolean isLockout() {
792 return _passwordPolicy.isLockout();
793 }
794
795 @Override
796 public boolean isNew() {
797 return _passwordPolicy.isNew();
798 }
799
800
805 @Override
806 public boolean isRequireUnlock() {
807 return _passwordPolicy.isRequireUnlock();
808 }
809
810 @Override
811 public void persist() {
812 _passwordPolicy.persist();
813 }
814
815
820 @Override
821 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
822 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
823 }
824
825 @Override
826 public void setCachedModel(boolean cachedModel) {
827 _passwordPolicy.setCachedModel(cachedModel);
828 }
829
830
835 @Override
836 public void setChangeRequired(boolean changeRequired) {
837 _passwordPolicy.setChangeRequired(changeRequired);
838 }
839
840
845 @Override
846 public void setChangeable(boolean changeable) {
847 _passwordPolicy.setChangeable(changeable);
848 }
849
850
855 @Override
856 public void setCheckSyntax(boolean checkSyntax) {
857 _passwordPolicy.setCheckSyntax(checkSyntax);
858 }
859
860
865 @Override
866 public void setCompanyId(long companyId) {
867 _passwordPolicy.setCompanyId(companyId);
868 }
869
870
875 @Override
876 public void setCreateDate(Date createDate) {
877 _passwordPolicy.setCreateDate(createDate);
878 }
879
880
885 @Override
886 public void setDefaultPolicy(boolean defaultPolicy) {
887 _passwordPolicy.setDefaultPolicy(defaultPolicy);
888 }
889
890
895 @Override
896 public void setDescription(java.lang.String description) {
897 _passwordPolicy.setDescription(description);
898 }
899
900 @Override
901 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
902 _passwordPolicy.setExpandoBridgeAttributes(baseModel);
903 }
904
905 @Override
906 public void setExpandoBridgeAttributes(
907 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
908 _passwordPolicy.setExpandoBridgeAttributes(expandoBridge);
909 }
910
911 @Override
912 public void setExpandoBridgeAttributes(
913 com.liferay.portal.service.ServiceContext serviceContext) {
914 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
915 }
916
917
922 @Override
923 public void setExpireable(boolean expireable) {
924 _passwordPolicy.setExpireable(expireable);
925 }
926
927
932 @Override
933 public void setGraceLimit(int graceLimit) {
934 _passwordPolicy.setGraceLimit(graceLimit);
935 }
936
937
942 @Override
943 public void setHistory(boolean history) {
944 _passwordPolicy.setHistory(history);
945 }
946
947
952 @Override
953 public void setHistoryCount(int historyCount) {
954 _passwordPolicy.setHistoryCount(historyCount);
955 }
956
957
962 @Override
963 public void setLockout(boolean lockout) {
964 _passwordPolicy.setLockout(lockout);
965 }
966
967
972 @Override
973 public void setLockoutDuration(long lockoutDuration) {
974 _passwordPolicy.setLockoutDuration(lockoutDuration);
975 }
976
977
982 @Override
983 public void setMaxAge(long maxAge) {
984 _passwordPolicy.setMaxAge(maxAge);
985 }
986
987
992 @Override
993 public void setMaxFailure(int maxFailure) {
994 _passwordPolicy.setMaxFailure(maxFailure);
995 }
996
997
1002 @Override
1003 public void setMinAge(long minAge) {
1004 _passwordPolicy.setMinAge(minAge);
1005 }
1006
1007
1012 @Override
1013 public void setMinAlphanumeric(int minAlphanumeric) {
1014 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
1015 }
1016
1017
1022 @Override
1023 public void setMinLength(int minLength) {
1024 _passwordPolicy.setMinLength(minLength);
1025 }
1026
1027
1032 @Override
1033 public void setMinLowerCase(int minLowerCase) {
1034 _passwordPolicy.setMinLowerCase(minLowerCase);
1035 }
1036
1037
1042 @Override
1043 public void setMinNumbers(int minNumbers) {
1044 _passwordPolicy.setMinNumbers(minNumbers);
1045 }
1046
1047
1052 @Override
1053 public void setMinSymbols(int minSymbols) {
1054 _passwordPolicy.setMinSymbols(minSymbols);
1055 }
1056
1057
1062 @Override
1063 public void setMinUpperCase(int minUpperCase) {
1064 _passwordPolicy.setMinUpperCase(minUpperCase);
1065 }
1066
1067
1072 @Override
1073 public void setModifiedDate(Date modifiedDate) {
1074 _passwordPolicy.setModifiedDate(modifiedDate);
1075 }
1076
1077
1082 @Override
1083 public void setMvccVersion(long mvccVersion) {
1084 _passwordPolicy.setMvccVersion(mvccVersion);
1085 }
1086
1087
1092 @Override
1093 public void setName(java.lang.String name) {
1094 _passwordPolicy.setName(name);
1095 }
1096
1097 @Override
1098 public void setNew(boolean n) {
1099 _passwordPolicy.setNew(n);
1100 }
1101
1102
1107 @Override
1108 public void setPasswordPolicyId(long passwordPolicyId) {
1109 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
1110 }
1111
1112
1117 @Override
1118 public void setPrimaryKey(long primaryKey) {
1119 _passwordPolicy.setPrimaryKey(primaryKey);
1120 }
1121
1122 @Override
1123 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1124 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1125 }
1126
1127
1132 @Override
1133 public void setRegex(java.lang.String regex) {
1134 _passwordPolicy.setRegex(regex);
1135 }
1136
1137
1142 @Override
1143 public void setRequireUnlock(boolean requireUnlock) {
1144 _passwordPolicy.setRequireUnlock(requireUnlock);
1145 }
1146
1147
1152 @Override
1153 public void setResetFailureCount(long resetFailureCount) {
1154 _passwordPolicy.setResetFailureCount(resetFailureCount);
1155 }
1156
1157
1162 @Override
1163 public void setResetTicketMaxAge(long resetTicketMaxAge) {
1164 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
1165 }
1166
1167
1172 @Override
1173 public void setUserId(long userId) {
1174 _passwordPolicy.setUserId(userId);
1175 }
1176
1177
1182 @Override
1183 public void setUserName(java.lang.String userName) {
1184 _passwordPolicy.setUserName(userName);
1185 }
1186
1187
1192 @Override
1193 public void setUserUuid(java.lang.String userUuid) {
1194 _passwordPolicy.setUserUuid(userUuid);
1195 }
1196
1197
1202 @Override
1203 public void setUuid(java.lang.String uuid) {
1204 _passwordPolicy.setUuid(uuid);
1205 }
1206
1207
1212 @Override
1213 public void setWarningTime(long warningTime) {
1214 _passwordPolicy.setWarningTime(warningTime);
1215 }
1216
1217 @Override
1218 public CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1219 return _passwordPolicy.toCacheModel();
1220 }
1221
1222 @Override
1223 public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1224 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1225 }
1226
1227 @Override
1228 public java.lang.String toString() {
1229 return _passwordPolicy.toString();
1230 }
1231
1232 @Override
1233 public com.liferay.portal.model.PasswordPolicy toUnescapedModel() {
1234 return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1235 }
1236
1237 @Override
1238 public java.lang.String toXmlString() {
1239 return _passwordPolicy.toXmlString();
1240 }
1241
1242 @Override
1243 public boolean equals(Object obj) {
1244 if (this == obj) {
1245 return true;
1246 }
1247
1248 if (!(obj instanceof PasswordPolicyWrapper)) {
1249 return false;
1250 }
1251
1252 PasswordPolicyWrapper passwordPolicyWrapper = (PasswordPolicyWrapper)obj;
1253
1254 if (Validator.equals(_passwordPolicy,
1255 passwordPolicyWrapper._passwordPolicy)) {
1256 return true;
1257 }
1258
1259 return false;
1260 }
1261
1262 @Override
1263 public StagedModelType getStagedModelType() {
1264 return _passwordPolicy.getStagedModelType();
1265 }
1266
1267 @Override
1268 public PasswordPolicy getWrappedModel() {
1269 return _passwordPolicy;
1270 }
1271
1272 @Override
1273 public boolean isEntityCacheEnabled() {
1274 return _passwordPolicy.isEntityCacheEnabled();
1275 }
1276
1277 @Override
1278 public boolean isFinderCacheEnabled() {
1279 return _passwordPolicy.isFinderCacheEnabled();
1280 }
1281
1282 @Override
1283 public void resetOriginalValues() {
1284 _passwordPolicy.resetOriginalValues();
1285 }
1286
1287 private final PasswordPolicy _passwordPolicy;
1288 }