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 import com.liferay.portal.service.ServiceContext;
021
022 import com.liferay.portlet.expando.model.ExpandoBridge;
023 import com.liferay.portlet.exportimport.lar.StagedModelType;
024
025 import java.io.Serializable;
026
027 import java.util.Date;
028 import java.util.HashMap;
029 import java.util.Map;
030
031
040 @ProviderType
041 public class PasswordPolicyWrapper implements PasswordPolicy,
042 ModelWrapper<PasswordPolicy> {
043 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
044 _passwordPolicy = passwordPolicy;
045 }
046
047 @Override
048 public Class<?> getModelClass() {
049 return PasswordPolicy.class;
050 }
051
052 @Override
053 public String getModelClassName() {
054 return PasswordPolicy.class.getName();
055 }
056
057 @Override
058 public Map<String, Object> getModelAttributes() {
059 Map<String, Object> attributes = new HashMap<String, Object>();
060
061 attributes.put("mvccVersion", getMvccVersion());
062 attributes.put("uuid", getUuid());
063 attributes.put("passwordPolicyId", getPasswordPolicyId());
064 attributes.put("companyId", getCompanyId());
065 attributes.put("userId", getUserId());
066 attributes.put("userName", getUserName());
067 attributes.put("createDate", getCreateDate());
068 attributes.put("modifiedDate", getModifiedDate());
069 attributes.put("defaultPolicy", getDefaultPolicy());
070 attributes.put("name", getName());
071 attributes.put("description", getDescription());
072 attributes.put("changeable", getChangeable());
073 attributes.put("changeRequired", getChangeRequired());
074 attributes.put("minAge", getMinAge());
075 attributes.put("checkSyntax", getCheckSyntax());
076 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
077 attributes.put("minAlphanumeric", getMinAlphanumeric());
078 attributes.put("minLength", getMinLength());
079 attributes.put("minLowerCase", getMinLowerCase());
080 attributes.put("minNumbers", getMinNumbers());
081 attributes.put("minSymbols", getMinSymbols());
082 attributes.put("minUpperCase", getMinUpperCase());
083 attributes.put("regex", getRegex());
084 attributes.put("history", getHistory());
085 attributes.put("historyCount", getHistoryCount());
086 attributes.put("expireable", getExpireable());
087 attributes.put("maxAge", getMaxAge());
088 attributes.put("warningTime", getWarningTime());
089 attributes.put("graceLimit", getGraceLimit());
090 attributes.put("lockout", getLockout());
091 attributes.put("maxFailure", getMaxFailure());
092 attributes.put("lockoutDuration", getLockoutDuration());
093 attributes.put("requireUnlock", getRequireUnlock());
094 attributes.put("resetFailureCount", getResetFailureCount());
095 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
096
097 return attributes;
098 }
099
100 @Override
101 public void setModelAttributes(Map<String, Object> attributes) {
102 Long mvccVersion = (Long)attributes.get("mvccVersion");
103
104 if (mvccVersion != null) {
105 setMvccVersion(mvccVersion);
106 }
107
108 String uuid = (String)attributes.get("uuid");
109
110 if (uuid != null) {
111 setUuid(uuid);
112 }
113
114 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
115
116 if (passwordPolicyId != null) {
117 setPasswordPolicyId(passwordPolicyId);
118 }
119
120 Long companyId = (Long)attributes.get("companyId");
121
122 if (companyId != null) {
123 setCompanyId(companyId);
124 }
125
126 Long userId = (Long)attributes.get("userId");
127
128 if (userId != null) {
129 setUserId(userId);
130 }
131
132 String userName = (String)attributes.get("userName");
133
134 if (userName != null) {
135 setUserName(userName);
136 }
137
138 Date createDate = (Date)attributes.get("createDate");
139
140 if (createDate != null) {
141 setCreateDate(createDate);
142 }
143
144 Date modifiedDate = (Date)attributes.get("modifiedDate");
145
146 if (modifiedDate != null) {
147 setModifiedDate(modifiedDate);
148 }
149
150 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
151
152 if (defaultPolicy != null) {
153 setDefaultPolicy(defaultPolicy);
154 }
155
156 String name = (String)attributes.get("name");
157
158 if (name != null) {
159 setName(name);
160 }
161
162 String description = (String)attributes.get("description");
163
164 if (description != null) {
165 setDescription(description);
166 }
167
168 Boolean changeable = (Boolean)attributes.get("changeable");
169
170 if (changeable != null) {
171 setChangeable(changeable);
172 }
173
174 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
175
176 if (changeRequired != null) {
177 setChangeRequired(changeRequired);
178 }
179
180 Long minAge = (Long)attributes.get("minAge");
181
182 if (minAge != null) {
183 setMinAge(minAge);
184 }
185
186 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
187
188 if (checkSyntax != null) {
189 setCheckSyntax(checkSyntax);
190 }
191
192 Boolean allowDictionaryWords = (Boolean)attributes.get(
193 "allowDictionaryWords");
194
195 if (allowDictionaryWords != null) {
196 setAllowDictionaryWords(allowDictionaryWords);
197 }
198
199 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
200
201 if (minAlphanumeric != null) {
202 setMinAlphanumeric(minAlphanumeric);
203 }
204
205 Integer minLength = (Integer)attributes.get("minLength");
206
207 if (minLength != null) {
208 setMinLength(minLength);
209 }
210
211 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
212
213 if (minLowerCase != null) {
214 setMinLowerCase(minLowerCase);
215 }
216
217 Integer minNumbers = (Integer)attributes.get("minNumbers");
218
219 if (minNumbers != null) {
220 setMinNumbers(minNumbers);
221 }
222
223 Integer minSymbols = (Integer)attributes.get("minSymbols");
224
225 if (minSymbols != null) {
226 setMinSymbols(minSymbols);
227 }
228
229 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
230
231 if (minUpperCase != null) {
232 setMinUpperCase(minUpperCase);
233 }
234
235 String regex = (String)attributes.get("regex");
236
237 if (regex != null) {
238 setRegex(regex);
239 }
240
241 Boolean history = (Boolean)attributes.get("history");
242
243 if (history != null) {
244 setHistory(history);
245 }
246
247 Integer historyCount = (Integer)attributes.get("historyCount");
248
249 if (historyCount != null) {
250 setHistoryCount(historyCount);
251 }
252
253 Boolean expireable = (Boolean)attributes.get("expireable");
254
255 if (expireable != null) {
256 setExpireable(expireable);
257 }
258
259 Long maxAge = (Long)attributes.get("maxAge");
260
261 if (maxAge != null) {
262 setMaxAge(maxAge);
263 }
264
265 Long warningTime = (Long)attributes.get("warningTime");
266
267 if (warningTime != null) {
268 setWarningTime(warningTime);
269 }
270
271 Integer graceLimit = (Integer)attributes.get("graceLimit");
272
273 if (graceLimit != null) {
274 setGraceLimit(graceLimit);
275 }
276
277 Boolean lockout = (Boolean)attributes.get("lockout");
278
279 if (lockout != null) {
280 setLockout(lockout);
281 }
282
283 Integer maxFailure = (Integer)attributes.get("maxFailure");
284
285 if (maxFailure != null) {
286 setMaxFailure(maxFailure);
287 }
288
289 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
290
291 if (lockoutDuration != null) {
292 setLockoutDuration(lockoutDuration);
293 }
294
295 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
296
297 if (requireUnlock != null) {
298 setRequireUnlock(requireUnlock);
299 }
300
301 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
302
303 if (resetFailureCount != null) {
304 setResetFailureCount(resetFailureCount);
305 }
306
307 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
308
309 if (resetTicketMaxAge != null) {
310 setResetTicketMaxAge(resetTicketMaxAge);
311 }
312 }
313
314 @Override
315 public java.lang.Object clone() {
316 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
317 }
318
319 @Override
320 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
321 return _passwordPolicy.compareTo(passwordPolicy);
322 }
323
324
329 @Override
330 public boolean getAllowDictionaryWords() {
331 return _passwordPolicy.getAllowDictionaryWords();
332 }
333
334
339 @Override
340 public boolean getChangeRequired() {
341 return _passwordPolicy.getChangeRequired();
342 }
343
344
349 @Override
350 public boolean getChangeable() {
351 return _passwordPolicy.getChangeable();
352 }
353
354
359 @Override
360 public boolean getCheckSyntax() {
361 return _passwordPolicy.getCheckSyntax();
362 }
363
364
369 @Override
370 public long getCompanyId() {
371 return _passwordPolicy.getCompanyId();
372 }
373
374
379 @Override
380 public Date getCreateDate() {
381 return _passwordPolicy.getCreateDate();
382 }
383
384
389 @Override
390 public boolean getDefaultPolicy() {
391 return _passwordPolicy.getDefaultPolicy();
392 }
393
394
399 @Override
400 public java.lang.String getDescription() {
401 return _passwordPolicy.getDescription();
402 }
403
404 @Override
405 public ExpandoBridge getExpandoBridge() {
406 return _passwordPolicy.getExpandoBridge();
407 }
408
409
414 @Override
415 public boolean getExpireable() {
416 return _passwordPolicy.getExpireable();
417 }
418
419
424 @Override
425 public int getGraceLimit() {
426 return _passwordPolicy.getGraceLimit();
427 }
428
429
434 @Override
435 public boolean getHistory() {
436 return _passwordPolicy.getHistory();
437 }
438
439
444 @Override
445 public int getHistoryCount() {
446 return _passwordPolicy.getHistoryCount();
447 }
448
449
454 @Override
455 public boolean getLockout() {
456 return _passwordPolicy.getLockout();
457 }
458
459
464 @Override
465 public long getLockoutDuration() {
466 return _passwordPolicy.getLockoutDuration();
467 }
468
469
474 @Override
475 public long getMaxAge() {
476 return _passwordPolicy.getMaxAge();
477 }
478
479
484 @Override
485 public int getMaxFailure() {
486 return _passwordPolicy.getMaxFailure();
487 }
488
489
494 @Override
495 public long getMinAge() {
496 return _passwordPolicy.getMinAge();
497 }
498
499
504 @Override
505 public int getMinAlphanumeric() {
506 return _passwordPolicy.getMinAlphanumeric();
507 }
508
509
514 @Override
515 public int getMinLength() {
516 return _passwordPolicy.getMinLength();
517 }
518
519
524 @Override
525 public int getMinLowerCase() {
526 return _passwordPolicy.getMinLowerCase();
527 }
528
529
534 @Override
535 public int getMinNumbers() {
536 return _passwordPolicy.getMinNumbers();
537 }
538
539
544 @Override
545 public int getMinSymbols() {
546 return _passwordPolicy.getMinSymbols();
547 }
548
549
554 @Override
555 public int getMinUpperCase() {
556 return _passwordPolicy.getMinUpperCase();
557 }
558
559
564 @Override
565 public Date getModifiedDate() {
566 return _passwordPolicy.getModifiedDate();
567 }
568
569
574 @Override
575 public long getMvccVersion() {
576 return _passwordPolicy.getMvccVersion();
577 }
578
579
584 @Override
585 public java.lang.String getName() {
586 return _passwordPolicy.getName();
587 }
588
589
594 @Override
595 public long getPasswordPolicyId() {
596 return _passwordPolicy.getPasswordPolicyId();
597 }
598
599
604 @Override
605 public long getPrimaryKey() {
606 return _passwordPolicy.getPrimaryKey();
607 }
608
609 @Override
610 public Serializable getPrimaryKeyObj() {
611 return _passwordPolicy.getPrimaryKeyObj();
612 }
613
614
619 @Override
620 public java.lang.String getRegex() {
621 return _passwordPolicy.getRegex();
622 }
623
624
629 @Override
630 public boolean getRequireUnlock() {
631 return _passwordPolicy.getRequireUnlock();
632 }
633
634
639 @Override
640 public long getResetFailureCount() {
641 return _passwordPolicy.getResetFailureCount();
642 }
643
644
649 @Override
650 public long getResetTicketMaxAge() {
651 return _passwordPolicy.getResetTicketMaxAge();
652 }
653
654
659 @Override
660 public long getUserId() {
661 return _passwordPolicy.getUserId();
662 }
663
664
669 @Override
670 public java.lang.String getUserName() {
671 return _passwordPolicy.getUserName();
672 }
673
674
679 @Override
680 public java.lang.String getUserUuid() {
681 return _passwordPolicy.getUserUuid();
682 }
683
684
689 @Override
690 public java.lang.String getUuid() {
691 return _passwordPolicy.getUuid();
692 }
693
694
699 @Override
700 public long getWarningTime() {
701 return _passwordPolicy.getWarningTime();
702 }
703
704 @Override
705 public int hashCode() {
706 return _passwordPolicy.hashCode();
707 }
708
709
714 @Override
715 public boolean isAllowDictionaryWords() {
716 return _passwordPolicy.isAllowDictionaryWords();
717 }
718
719 @Override
720 public boolean isCachedModel() {
721 return _passwordPolicy.isCachedModel();
722 }
723
724
729 @Override
730 public boolean isChangeRequired() {
731 return _passwordPolicy.isChangeRequired();
732 }
733
734
739 @Override
740 public boolean isChangeable() {
741 return _passwordPolicy.isChangeable();
742 }
743
744
749 @Override
750 public boolean isCheckSyntax() {
751 return _passwordPolicy.isCheckSyntax();
752 }
753
754
759 @Override
760 public boolean isDefaultPolicy() {
761 return _passwordPolicy.isDefaultPolicy();
762 }
763
764 @Override
765 public boolean isEscapedModel() {
766 return _passwordPolicy.isEscapedModel();
767 }
768
769
774 @Override
775 public boolean isExpireable() {
776 return _passwordPolicy.isExpireable();
777 }
778
779
784 @Override
785 public boolean isHistory() {
786 return _passwordPolicy.isHistory();
787 }
788
789
794 @Override
795 public boolean isLockout() {
796 return _passwordPolicy.isLockout();
797 }
798
799 @Override
800 public boolean isNew() {
801 return _passwordPolicy.isNew();
802 }
803
804
809 @Override
810 public boolean isRequireUnlock() {
811 return _passwordPolicy.isRequireUnlock();
812 }
813
814 @Override
815 public void persist() {
816 _passwordPolicy.persist();
817 }
818
819
824 @Override
825 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
826 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
827 }
828
829 @Override
830 public void setCachedModel(boolean cachedModel) {
831 _passwordPolicy.setCachedModel(cachedModel);
832 }
833
834
839 @Override
840 public void setChangeRequired(boolean changeRequired) {
841 _passwordPolicy.setChangeRequired(changeRequired);
842 }
843
844
849 @Override
850 public void setChangeable(boolean changeable) {
851 _passwordPolicy.setChangeable(changeable);
852 }
853
854
859 @Override
860 public void setCheckSyntax(boolean checkSyntax) {
861 _passwordPolicy.setCheckSyntax(checkSyntax);
862 }
863
864
869 @Override
870 public void setCompanyId(long companyId) {
871 _passwordPolicy.setCompanyId(companyId);
872 }
873
874
879 @Override
880 public void setCreateDate(Date createDate) {
881 _passwordPolicy.setCreateDate(createDate);
882 }
883
884
889 @Override
890 public void setDefaultPolicy(boolean defaultPolicy) {
891 _passwordPolicy.setDefaultPolicy(defaultPolicy);
892 }
893
894
899 @Override
900 public void setDescription(java.lang.String description) {
901 _passwordPolicy.setDescription(description);
902 }
903
904 @Override
905 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
906 _passwordPolicy.setExpandoBridgeAttributes(baseModel);
907 }
908
909 @Override
910 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
911 _passwordPolicy.setExpandoBridgeAttributes(expandoBridge);
912 }
913
914 @Override
915 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
916 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
917 }
918
919
924 @Override
925 public void setExpireable(boolean expireable) {
926 _passwordPolicy.setExpireable(expireable);
927 }
928
929
934 @Override
935 public void setGraceLimit(int graceLimit) {
936 _passwordPolicy.setGraceLimit(graceLimit);
937 }
938
939
944 @Override
945 public void setHistory(boolean history) {
946 _passwordPolicy.setHistory(history);
947 }
948
949
954 @Override
955 public void setHistoryCount(int historyCount) {
956 _passwordPolicy.setHistoryCount(historyCount);
957 }
958
959
964 @Override
965 public void setLockout(boolean lockout) {
966 _passwordPolicy.setLockout(lockout);
967 }
968
969
974 @Override
975 public void setLockoutDuration(long lockoutDuration) {
976 _passwordPolicy.setLockoutDuration(lockoutDuration);
977 }
978
979
984 @Override
985 public void setMaxAge(long maxAge) {
986 _passwordPolicy.setMaxAge(maxAge);
987 }
988
989
994 @Override
995 public void setMaxFailure(int maxFailure) {
996 _passwordPolicy.setMaxFailure(maxFailure);
997 }
998
999
1004 @Override
1005 public void setMinAge(long minAge) {
1006 _passwordPolicy.setMinAge(minAge);
1007 }
1008
1009
1014 @Override
1015 public void setMinAlphanumeric(int minAlphanumeric) {
1016 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
1017 }
1018
1019
1024 @Override
1025 public void setMinLength(int minLength) {
1026 _passwordPolicy.setMinLength(minLength);
1027 }
1028
1029
1034 @Override
1035 public void setMinLowerCase(int minLowerCase) {
1036 _passwordPolicy.setMinLowerCase(minLowerCase);
1037 }
1038
1039
1044 @Override
1045 public void setMinNumbers(int minNumbers) {
1046 _passwordPolicy.setMinNumbers(minNumbers);
1047 }
1048
1049
1054 @Override
1055 public void setMinSymbols(int minSymbols) {
1056 _passwordPolicy.setMinSymbols(minSymbols);
1057 }
1058
1059
1064 @Override
1065 public void setMinUpperCase(int minUpperCase) {
1066 _passwordPolicy.setMinUpperCase(minUpperCase);
1067 }
1068
1069
1074 @Override
1075 public void setModifiedDate(Date modifiedDate) {
1076 _passwordPolicy.setModifiedDate(modifiedDate);
1077 }
1078
1079
1084 @Override
1085 public void setMvccVersion(long mvccVersion) {
1086 _passwordPolicy.setMvccVersion(mvccVersion);
1087 }
1088
1089
1094 @Override
1095 public void setName(java.lang.String name) {
1096 _passwordPolicy.setName(name);
1097 }
1098
1099 @Override
1100 public void setNew(boolean n) {
1101 _passwordPolicy.setNew(n);
1102 }
1103
1104
1109 @Override
1110 public void setPasswordPolicyId(long passwordPolicyId) {
1111 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
1112 }
1113
1114
1119 @Override
1120 public void setPrimaryKey(long primaryKey) {
1121 _passwordPolicy.setPrimaryKey(primaryKey);
1122 }
1123
1124 @Override
1125 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
1126 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1127 }
1128
1129
1134 @Override
1135 public void setRegex(java.lang.String regex) {
1136 _passwordPolicy.setRegex(regex);
1137 }
1138
1139
1144 @Override
1145 public void setRequireUnlock(boolean requireUnlock) {
1146 _passwordPolicy.setRequireUnlock(requireUnlock);
1147 }
1148
1149
1154 @Override
1155 public void setResetFailureCount(long resetFailureCount) {
1156 _passwordPolicy.setResetFailureCount(resetFailureCount);
1157 }
1158
1159
1164 @Override
1165 public void setResetTicketMaxAge(long resetTicketMaxAge) {
1166 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
1167 }
1168
1169
1174 @Override
1175 public void setUserId(long userId) {
1176 _passwordPolicy.setUserId(userId);
1177 }
1178
1179
1184 @Override
1185 public void setUserName(java.lang.String userName) {
1186 _passwordPolicy.setUserName(userName);
1187 }
1188
1189
1194 @Override
1195 public void setUserUuid(java.lang.String userUuid) {
1196 _passwordPolicy.setUserUuid(userUuid);
1197 }
1198
1199
1204 @Override
1205 public void setUuid(java.lang.String uuid) {
1206 _passwordPolicy.setUuid(uuid);
1207 }
1208
1209
1214 @Override
1215 public void setWarningTime(long warningTime) {
1216 _passwordPolicy.setWarningTime(warningTime);
1217 }
1218
1219 @Override
1220 public CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1221 return _passwordPolicy.toCacheModel();
1222 }
1223
1224 @Override
1225 public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1226 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1227 }
1228
1229 @Override
1230 public java.lang.String toString() {
1231 return _passwordPolicy.toString();
1232 }
1233
1234 @Override
1235 public com.liferay.portal.model.PasswordPolicy toUnescapedModel() {
1236 return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1237 }
1238
1239 @Override
1240 public java.lang.String toXmlString() {
1241 return _passwordPolicy.toXmlString();
1242 }
1243
1244 @Override
1245 public boolean equals(Object obj) {
1246 if (this == obj) {
1247 return true;
1248 }
1249
1250 if (!(obj instanceof PasswordPolicyWrapper)) {
1251 return false;
1252 }
1253
1254 PasswordPolicyWrapper passwordPolicyWrapper = (PasswordPolicyWrapper)obj;
1255
1256 if (Validator.equals(_passwordPolicy,
1257 passwordPolicyWrapper._passwordPolicy)) {
1258 return true;
1259 }
1260
1261 return false;
1262 }
1263
1264 @Override
1265 public StagedModelType getStagedModelType() {
1266 return _passwordPolicy.getStagedModelType();
1267 }
1268
1269 @Override
1270 public PasswordPolicy getWrappedModel() {
1271 return _passwordPolicy;
1272 }
1273
1274 @Override
1275 public boolean isEntityCacheEnabled() {
1276 return _passwordPolicy.isEntityCacheEnabled();
1277 }
1278
1279 @Override
1280 public boolean isFinderCacheEnabled() {
1281 return _passwordPolicy.isFinderCacheEnabled();
1282 }
1283
1284 @Override
1285 public void resetOriginalValues() {
1286 _passwordPolicy.resetOriginalValues();
1287 }
1288
1289 private final PasswordPolicy _passwordPolicy;
1290 }