001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.lar.StagedModelType;
020 import com.liferay.portal.kernel.util.Validator;
021
022 import java.util.Date;
023 import java.util.HashMap;
024 import java.util.Map;
025
026
035 @ProviderType
036 public class PasswordPolicyWrapper implements PasswordPolicy,
037 ModelWrapper<PasswordPolicy> {
038 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
039 _passwordPolicy = passwordPolicy;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return PasswordPolicy.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return PasswordPolicy.class.getName();
050 }
051
052 @Override
053 public Map<String, Object> getModelAttributes() {
054 Map<String, Object> attributes = new HashMap<String, Object>();
055
056 attributes.put("mvccVersion", getMvccVersion());
057 attributes.put("uuid", getUuid());
058 attributes.put("passwordPolicyId", getPasswordPolicyId());
059 attributes.put("companyId", getCompanyId());
060 attributes.put("userId", getUserId());
061 attributes.put("userName", getUserName());
062 attributes.put("createDate", getCreateDate());
063 attributes.put("modifiedDate", getModifiedDate());
064 attributes.put("defaultPolicy", getDefaultPolicy());
065 attributes.put("name", getName());
066 attributes.put("description", getDescription());
067 attributes.put("changeable", getChangeable());
068 attributes.put("changeRequired", getChangeRequired());
069 attributes.put("minAge", getMinAge());
070 attributes.put("checkSyntax", getCheckSyntax());
071 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
072 attributes.put("minAlphanumeric", getMinAlphanumeric());
073 attributes.put("minLength", getMinLength());
074 attributes.put("minLowerCase", getMinLowerCase());
075 attributes.put("minNumbers", getMinNumbers());
076 attributes.put("minSymbols", getMinSymbols());
077 attributes.put("minUpperCase", getMinUpperCase());
078 attributes.put("regex", getRegex());
079 attributes.put("history", getHistory());
080 attributes.put("historyCount", getHistoryCount());
081 attributes.put("expireable", getExpireable());
082 attributes.put("maxAge", getMaxAge());
083 attributes.put("warningTime", getWarningTime());
084 attributes.put("graceLimit", getGraceLimit());
085 attributes.put("lockout", getLockout());
086 attributes.put("maxFailure", getMaxFailure());
087 attributes.put("lockoutDuration", getLockoutDuration());
088 attributes.put("requireUnlock", getRequireUnlock());
089 attributes.put("resetFailureCount", getResetFailureCount());
090 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
091
092 return attributes;
093 }
094
095 @Override
096 public void setModelAttributes(Map<String, Object> attributes) {
097 Long mvccVersion = (Long)attributes.get("mvccVersion");
098
099 if (mvccVersion != null) {
100 setMvccVersion(mvccVersion);
101 }
102
103 String uuid = (String)attributes.get("uuid");
104
105 if (uuid != null) {
106 setUuid(uuid);
107 }
108
109 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
110
111 if (passwordPolicyId != null) {
112 setPasswordPolicyId(passwordPolicyId);
113 }
114
115 Long companyId = (Long)attributes.get("companyId");
116
117 if (companyId != null) {
118 setCompanyId(companyId);
119 }
120
121 Long userId = (Long)attributes.get("userId");
122
123 if (userId != null) {
124 setUserId(userId);
125 }
126
127 String userName = (String)attributes.get("userName");
128
129 if (userName != null) {
130 setUserName(userName);
131 }
132
133 Date createDate = (Date)attributes.get("createDate");
134
135 if (createDate != null) {
136 setCreateDate(createDate);
137 }
138
139 Date modifiedDate = (Date)attributes.get("modifiedDate");
140
141 if (modifiedDate != null) {
142 setModifiedDate(modifiedDate);
143 }
144
145 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
146
147 if (defaultPolicy != null) {
148 setDefaultPolicy(defaultPolicy);
149 }
150
151 String name = (String)attributes.get("name");
152
153 if (name != null) {
154 setName(name);
155 }
156
157 String description = (String)attributes.get("description");
158
159 if (description != null) {
160 setDescription(description);
161 }
162
163 Boolean changeable = (Boolean)attributes.get("changeable");
164
165 if (changeable != null) {
166 setChangeable(changeable);
167 }
168
169 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
170
171 if (changeRequired != null) {
172 setChangeRequired(changeRequired);
173 }
174
175 Long minAge = (Long)attributes.get("minAge");
176
177 if (minAge != null) {
178 setMinAge(minAge);
179 }
180
181 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
182
183 if (checkSyntax != null) {
184 setCheckSyntax(checkSyntax);
185 }
186
187 Boolean allowDictionaryWords = (Boolean)attributes.get(
188 "allowDictionaryWords");
189
190 if (allowDictionaryWords != null) {
191 setAllowDictionaryWords(allowDictionaryWords);
192 }
193
194 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
195
196 if (minAlphanumeric != null) {
197 setMinAlphanumeric(minAlphanumeric);
198 }
199
200 Integer minLength = (Integer)attributes.get("minLength");
201
202 if (minLength != null) {
203 setMinLength(minLength);
204 }
205
206 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
207
208 if (minLowerCase != null) {
209 setMinLowerCase(minLowerCase);
210 }
211
212 Integer minNumbers = (Integer)attributes.get("minNumbers");
213
214 if (minNumbers != null) {
215 setMinNumbers(minNumbers);
216 }
217
218 Integer minSymbols = (Integer)attributes.get("minSymbols");
219
220 if (minSymbols != null) {
221 setMinSymbols(minSymbols);
222 }
223
224 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
225
226 if (minUpperCase != null) {
227 setMinUpperCase(minUpperCase);
228 }
229
230 String regex = (String)attributes.get("regex");
231
232 if (regex != null) {
233 setRegex(regex);
234 }
235
236 Boolean history = (Boolean)attributes.get("history");
237
238 if (history != null) {
239 setHistory(history);
240 }
241
242 Integer historyCount = (Integer)attributes.get("historyCount");
243
244 if (historyCount != null) {
245 setHistoryCount(historyCount);
246 }
247
248 Boolean expireable = (Boolean)attributes.get("expireable");
249
250 if (expireable != null) {
251 setExpireable(expireable);
252 }
253
254 Long maxAge = (Long)attributes.get("maxAge");
255
256 if (maxAge != null) {
257 setMaxAge(maxAge);
258 }
259
260 Long warningTime = (Long)attributes.get("warningTime");
261
262 if (warningTime != null) {
263 setWarningTime(warningTime);
264 }
265
266 Integer graceLimit = (Integer)attributes.get("graceLimit");
267
268 if (graceLimit != null) {
269 setGraceLimit(graceLimit);
270 }
271
272 Boolean lockout = (Boolean)attributes.get("lockout");
273
274 if (lockout != null) {
275 setLockout(lockout);
276 }
277
278 Integer maxFailure = (Integer)attributes.get("maxFailure");
279
280 if (maxFailure != null) {
281 setMaxFailure(maxFailure);
282 }
283
284 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
285
286 if (lockoutDuration != null) {
287 setLockoutDuration(lockoutDuration);
288 }
289
290 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
291
292 if (requireUnlock != null) {
293 setRequireUnlock(requireUnlock);
294 }
295
296 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
297
298 if (resetFailureCount != null) {
299 setResetFailureCount(resetFailureCount);
300 }
301
302 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
303
304 if (resetTicketMaxAge != null) {
305 setResetTicketMaxAge(resetTicketMaxAge);
306 }
307 }
308
309 @Override
310 public java.lang.Object clone() {
311 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
312 }
313
314 @Override
315 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
316 return _passwordPolicy.compareTo(passwordPolicy);
317 }
318
319
324 @Override
325 public boolean getAllowDictionaryWords() {
326 return _passwordPolicy.getAllowDictionaryWords();
327 }
328
329
334 @Override
335 public boolean getChangeRequired() {
336 return _passwordPolicy.getChangeRequired();
337 }
338
339
344 @Override
345 public boolean getChangeable() {
346 return _passwordPolicy.getChangeable();
347 }
348
349
354 @Override
355 public boolean getCheckSyntax() {
356 return _passwordPolicy.getCheckSyntax();
357 }
358
359
364 @Override
365 public long getCompanyId() {
366 return _passwordPolicy.getCompanyId();
367 }
368
369
374 @Override
375 public java.util.Date getCreateDate() {
376 return _passwordPolicy.getCreateDate();
377 }
378
379
384 @Override
385 public boolean getDefaultPolicy() {
386 return _passwordPolicy.getDefaultPolicy();
387 }
388
389
394 @Override
395 public java.lang.String getDescription() {
396 return _passwordPolicy.getDescription();
397 }
398
399 @Override
400 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
401 return _passwordPolicy.getExpandoBridge();
402 }
403
404
409 @Override
410 public boolean getExpireable() {
411 return _passwordPolicy.getExpireable();
412 }
413
414
419 @Override
420 public int getGraceLimit() {
421 return _passwordPolicy.getGraceLimit();
422 }
423
424
429 @Override
430 public boolean getHistory() {
431 return _passwordPolicy.getHistory();
432 }
433
434
439 @Override
440 public int getHistoryCount() {
441 return _passwordPolicy.getHistoryCount();
442 }
443
444
449 @Override
450 public boolean getLockout() {
451 return _passwordPolicy.getLockout();
452 }
453
454
459 @Override
460 public long getLockoutDuration() {
461 return _passwordPolicy.getLockoutDuration();
462 }
463
464
469 @Override
470 public long getMaxAge() {
471 return _passwordPolicy.getMaxAge();
472 }
473
474
479 @Override
480 public int getMaxFailure() {
481 return _passwordPolicy.getMaxFailure();
482 }
483
484
489 @Override
490 public long getMinAge() {
491 return _passwordPolicy.getMinAge();
492 }
493
494
499 @Override
500 public int getMinAlphanumeric() {
501 return _passwordPolicy.getMinAlphanumeric();
502 }
503
504
509 @Override
510 public int getMinLength() {
511 return _passwordPolicy.getMinLength();
512 }
513
514
519 @Override
520 public int getMinLowerCase() {
521 return _passwordPolicy.getMinLowerCase();
522 }
523
524
529 @Override
530 public int getMinNumbers() {
531 return _passwordPolicy.getMinNumbers();
532 }
533
534
539 @Override
540 public int getMinSymbols() {
541 return _passwordPolicy.getMinSymbols();
542 }
543
544
549 @Override
550 public int getMinUpperCase() {
551 return _passwordPolicy.getMinUpperCase();
552 }
553
554
559 @Override
560 public java.util.Date getModifiedDate() {
561 return _passwordPolicy.getModifiedDate();
562 }
563
564
569 @Override
570 public long getMvccVersion() {
571 return _passwordPolicy.getMvccVersion();
572 }
573
574
579 @Override
580 public java.lang.String getName() {
581 return _passwordPolicy.getName();
582 }
583
584
589 @Override
590 public long getPasswordPolicyId() {
591 return _passwordPolicy.getPasswordPolicyId();
592 }
593
594
599 @Override
600 public long getPrimaryKey() {
601 return _passwordPolicy.getPrimaryKey();
602 }
603
604 @Override
605 public java.io.Serializable getPrimaryKeyObj() {
606 return _passwordPolicy.getPrimaryKeyObj();
607 }
608
609
614 @Override
615 public java.lang.String getRegex() {
616 return _passwordPolicy.getRegex();
617 }
618
619
624 @Override
625 public boolean getRequireUnlock() {
626 return _passwordPolicy.getRequireUnlock();
627 }
628
629
634 @Override
635 public long getResetFailureCount() {
636 return _passwordPolicy.getResetFailureCount();
637 }
638
639
644 @Override
645 public long getResetTicketMaxAge() {
646 return _passwordPolicy.getResetTicketMaxAge();
647 }
648
649
654 @Override
655 public long getUserId() {
656 return _passwordPolicy.getUserId();
657 }
658
659
664 @Override
665 public java.lang.String getUserName() {
666 return _passwordPolicy.getUserName();
667 }
668
669
674 @Override
675 public java.lang.String getUserUuid() {
676 return _passwordPolicy.getUserUuid();
677 }
678
679
684 @Override
685 public java.lang.String getUuid() {
686 return _passwordPolicy.getUuid();
687 }
688
689
694 @Override
695 public long getWarningTime() {
696 return _passwordPolicy.getWarningTime();
697 }
698
699 @Override
700 public int hashCode() {
701 return _passwordPolicy.hashCode();
702 }
703
704
709 @Override
710 public boolean isAllowDictionaryWords() {
711 return _passwordPolicy.isAllowDictionaryWords();
712 }
713
714 @Override
715 public boolean isCachedModel() {
716 return _passwordPolicy.isCachedModel();
717 }
718
719
724 @Override
725 public boolean isChangeRequired() {
726 return _passwordPolicy.isChangeRequired();
727 }
728
729
734 @Override
735 public boolean isChangeable() {
736 return _passwordPolicy.isChangeable();
737 }
738
739
744 @Override
745 public boolean isCheckSyntax() {
746 return _passwordPolicy.isCheckSyntax();
747 }
748
749
754 @Override
755 public boolean isDefaultPolicy() {
756 return _passwordPolicy.isDefaultPolicy();
757 }
758
759 @Override
760 public boolean isEscapedModel() {
761 return _passwordPolicy.isEscapedModel();
762 }
763
764
769 @Override
770 public boolean isExpireable() {
771 return _passwordPolicy.isExpireable();
772 }
773
774
779 @Override
780 public boolean isHistory() {
781 return _passwordPolicy.isHistory();
782 }
783
784
789 @Override
790 public boolean isLockout() {
791 return _passwordPolicy.isLockout();
792 }
793
794 @Override
795 public boolean isNew() {
796 return _passwordPolicy.isNew();
797 }
798
799
804 @Override
805 public boolean isRequireUnlock() {
806 return _passwordPolicy.isRequireUnlock();
807 }
808
809 @Override
810 public void persist() {
811 _passwordPolicy.persist();
812 }
813
814
819 @Override
820 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
821 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
822 }
823
824 @Override
825 public void setCachedModel(boolean cachedModel) {
826 _passwordPolicy.setCachedModel(cachedModel);
827 }
828
829
834 @Override
835 public void setChangeRequired(boolean changeRequired) {
836 _passwordPolicy.setChangeRequired(changeRequired);
837 }
838
839
844 @Override
845 public void setChangeable(boolean changeable) {
846 _passwordPolicy.setChangeable(changeable);
847 }
848
849
854 @Override
855 public void setCheckSyntax(boolean checkSyntax) {
856 _passwordPolicy.setCheckSyntax(checkSyntax);
857 }
858
859
864 @Override
865 public void setCompanyId(long companyId) {
866 _passwordPolicy.setCompanyId(companyId);
867 }
868
869
874 @Override
875 public void setCreateDate(java.util.Date createDate) {
876 _passwordPolicy.setCreateDate(createDate);
877 }
878
879
884 @Override
885 public void setDefaultPolicy(boolean defaultPolicy) {
886 _passwordPolicy.setDefaultPolicy(defaultPolicy);
887 }
888
889
894 @Override
895 public void setDescription(java.lang.String description) {
896 _passwordPolicy.setDescription(description);
897 }
898
899 @Override
900 public void setExpandoBridgeAttributes(
901 com.liferay.portal.model.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(java.util.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 com.liferay.portal.model.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
1270 @Deprecated
1271 public PasswordPolicy getWrappedPasswordPolicy() {
1272 return _passwordPolicy;
1273 }
1274
1275 @Override
1276 public PasswordPolicy getWrappedModel() {
1277 return _passwordPolicy;
1278 }
1279
1280 @Override
1281 public boolean isEntityCacheEnabled() {
1282 return _passwordPolicy.isEntityCacheEnabled();
1283 }
1284
1285 @Override
1286 public boolean isFinderCacheEnabled() {
1287 return _passwordPolicy.isFinderCacheEnabled();
1288 }
1289
1290 @Override
1291 public void resetOriginalValues() {
1292 _passwordPolicy.resetOriginalValues();
1293 }
1294
1295 private final PasswordPolicy _passwordPolicy;
1296 }