001
014
015 package com.liferay.portal.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.expando.kernel.model.ExpandoBridge;
020
021 import com.liferay.exportimport.kernel.lar.StagedModelType;
022
023 import com.liferay.portal.kernel.service.ServiceContext;
024 import com.liferay.portal.kernel.util.Validator;
025
026 import java.io.Serializable;
027
028 import java.util.Date;
029 import java.util.HashMap;
030 import java.util.Map;
031
032
041 @ProviderType
042 public class PasswordPolicyWrapper implements PasswordPolicy,
043 ModelWrapper<PasswordPolicy> {
044 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
045 _passwordPolicy = passwordPolicy;
046 }
047
048 @Override
049 public Class<?> getModelClass() {
050 return PasswordPolicy.class;
051 }
052
053 @Override
054 public String getModelClassName() {
055 return PasswordPolicy.class.getName();
056 }
057
058 @Override
059 public Map<String, Object> getModelAttributes() {
060 Map<String, Object> attributes = new HashMap<String, Object>();
061
062 attributes.put("mvccVersion", getMvccVersion());
063 attributes.put("uuid", getUuid());
064 attributes.put("passwordPolicyId", getPasswordPolicyId());
065 attributes.put("companyId", getCompanyId());
066 attributes.put("userId", getUserId());
067 attributes.put("userName", getUserName());
068 attributes.put("createDate", getCreateDate());
069 attributes.put("modifiedDate", getModifiedDate());
070 attributes.put("defaultPolicy", getDefaultPolicy());
071 attributes.put("name", getName());
072 attributes.put("description", getDescription());
073 attributes.put("changeable", getChangeable());
074 attributes.put("changeRequired", getChangeRequired());
075 attributes.put("minAge", getMinAge());
076 attributes.put("checkSyntax", getCheckSyntax());
077 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
078 attributes.put("minAlphanumeric", getMinAlphanumeric());
079 attributes.put("minLength", getMinLength());
080 attributes.put("minLowerCase", getMinLowerCase());
081 attributes.put("minNumbers", getMinNumbers());
082 attributes.put("minSymbols", getMinSymbols());
083 attributes.put("minUpperCase", getMinUpperCase());
084 attributes.put("regex", getRegex());
085 attributes.put("history", getHistory());
086 attributes.put("historyCount", getHistoryCount());
087 attributes.put("expireable", getExpireable());
088 attributes.put("maxAge", getMaxAge());
089 attributes.put("warningTime", getWarningTime());
090 attributes.put("graceLimit", getGraceLimit());
091 attributes.put("lockout", getLockout());
092 attributes.put("maxFailure", getMaxFailure());
093 attributes.put("lockoutDuration", getLockoutDuration());
094 attributes.put("requireUnlock", getRequireUnlock());
095 attributes.put("resetFailureCount", getResetFailureCount());
096 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
097
098 return attributes;
099 }
100
101 @Override
102 public void setModelAttributes(Map<String, Object> attributes) {
103 Long mvccVersion = (Long)attributes.get("mvccVersion");
104
105 if (mvccVersion != null) {
106 setMvccVersion(mvccVersion);
107 }
108
109 String uuid = (String)attributes.get("uuid");
110
111 if (uuid != null) {
112 setUuid(uuid);
113 }
114
115 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
116
117 if (passwordPolicyId != null) {
118 setPasswordPolicyId(passwordPolicyId);
119 }
120
121 Long companyId = (Long)attributes.get("companyId");
122
123 if (companyId != null) {
124 setCompanyId(companyId);
125 }
126
127 Long userId = (Long)attributes.get("userId");
128
129 if (userId != null) {
130 setUserId(userId);
131 }
132
133 String userName = (String)attributes.get("userName");
134
135 if (userName != null) {
136 setUserName(userName);
137 }
138
139 Date createDate = (Date)attributes.get("createDate");
140
141 if (createDate != null) {
142 setCreateDate(createDate);
143 }
144
145 Date modifiedDate = (Date)attributes.get("modifiedDate");
146
147 if (modifiedDate != null) {
148 setModifiedDate(modifiedDate);
149 }
150
151 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
152
153 if (defaultPolicy != null) {
154 setDefaultPolicy(defaultPolicy);
155 }
156
157 String name = (String)attributes.get("name");
158
159 if (name != null) {
160 setName(name);
161 }
162
163 String description = (String)attributes.get("description");
164
165 if (description != null) {
166 setDescription(description);
167 }
168
169 Boolean changeable = (Boolean)attributes.get("changeable");
170
171 if (changeable != null) {
172 setChangeable(changeable);
173 }
174
175 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
176
177 if (changeRequired != null) {
178 setChangeRequired(changeRequired);
179 }
180
181 Long minAge = (Long)attributes.get("minAge");
182
183 if (minAge != null) {
184 setMinAge(minAge);
185 }
186
187 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
188
189 if (checkSyntax != null) {
190 setCheckSyntax(checkSyntax);
191 }
192
193 Boolean allowDictionaryWords = (Boolean)attributes.get(
194 "allowDictionaryWords");
195
196 if (allowDictionaryWords != null) {
197 setAllowDictionaryWords(allowDictionaryWords);
198 }
199
200 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
201
202 if (minAlphanumeric != null) {
203 setMinAlphanumeric(minAlphanumeric);
204 }
205
206 Integer minLength = (Integer)attributes.get("minLength");
207
208 if (minLength != null) {
209 setMinLength(minLength);
210 }
211
212 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
213
214 if (minLowerCase != null) {
215 setMinLowerCase(minLowerCase);
216 }
217
218 Integer minNumbers = (Integer)attributes.get("minNumbers");
219
220 if (minNumbers != null) {
221 setMinNumbers(minNumbers);
222 }
223
224 Integer minSymbols = (Integer)attributes.get("minSymbols");
225
226 if (minSymbols != null) {
227 setMinSymbols(minSymbols);
228 }
229
230 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
231
232 if (minUpperCase != null) {
233 setMinUpperCase(minUpperCase);
234 }
235
236 String regex = (String)attributes.get("regex");
237
238 if (regex != null) {
239 setRegex(regex);
240 }
241
242 Boolean history = (Boolean)attributes.get("history");
243
244 if (history != null) {
245 setHistory(history);
246 }
247
248 Integer historyCount = (Integer)attributes.get("historyCount");
249
250 if (historyCount != null) {
251 setHistoryCount(historyCount);
252 }
253
254 Boolean expireable = (Boolean)attributes.get("expireable");
255
256 if (expireable != null) {
257 setExpireable(expireable);
258 }
259
260 Long maxAge = (Long)attributes.get("maxAge");
261
262 if (maxAge != null) {
263 setMaxAge(maxAge);
264 }
265
266 Long warningTime = (Long)attributes.get("warningTime");
267
268 if (warningTime != null) {
269 setWarningTime(warningTime);
270 }
271
272 Integer graceLimit = (Integer)attributes.get("graceLimit");
273
274 if (graceLimit != null) {
275 setGraceLimit(graceLimit);
276 }
277
278 Boolean lockout = (Boolean)attributes.get("lockout");
279
280 if (lockout != null) {
281 setLockout(lockout);
282 }
283
284 Integer maxFailure = (Integer)attributes.get("maxFailure");
285
286 if (maxFailure != null) {
287 setMaxFailure(maxFailure);
288 }
289
290 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
291
292 if (lockoutDuration != null) {
293 setLockoutDuration(lockoutDuration);
294 }
295
296 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
297
298 if (requireUnlock != null) {
299 setRequireUnlock(requireUnlock);
300 }
301
302 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
303
304 if (resetFailureCount != null) {
305 setResetFailureCount(resetFailureCount);
306 }
307
308 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
309
310 if (resetTicketMaxAge != null) {
311 setResetTicketMaxAge(resetTicketMaxAge);
312 }
313 }
314
315 @Override
316 public java.lang.Object clone() {
317 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
318 }
319
320 @Override
321 public int compareTo(
322 com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) {
323 return _passwordPolicy.compareTo(passwordPolicy);
324 }
325
326
331 @Override
332 public boolean getAllowDictionaryWords() {
333 return _passwordPolicy.getAllowDictionaryWords();
334 }
335
336
341 @Override
342 public boolean getChangeRequired() {
343 return _passwordPolicy.getChangeRequired();
344 }
345
346
351 @Override
352 public boolean getChangeable() {
353 return _passwordPolicy.getChangeable();
354 }
355
356
361 @Override
362 public boolean getCheckSyntax() {
363 return _passwordPolicy.getCheckSyntax();
364 }
365
366
371 @Override
372 public long getCompanyId() {
373 return _passwordPolicy.getCompanyId();
374 }
375
376
381 @Override
382 public Date getCreateDate() {
383 return _passwordPolicy.getCreateDate();
384 }
385
386
391 @Override
392 public boolean getDefaultPolicy() {
393 return _passwordPolicy.getDefaultPolicy();
394 }
395
396
401 @Override
402 public java.lang.String getDescription() {
403 return _passwordPolicy.getDescription();
404 }
405
406 @Override
407 public ExpandoBridge getExpandoBridge() {
408 return _passwordPolicy.getExpandoBridge();
409 }
410
411
416 @Override
417 public boolean getExpireable() {
418 return _passwordPolicy.getExpireable();
419 }
420
421
426 @Override
427 public int getGraceLimit() {
428 return _passwordPolicy.getGraceLimit();
429 }
430
431
436 @Override
437 public boolean getHistory() {
438 return _passwordPolicy.getHistory();
439 }
440
441
446 @Override
447 public int getHistoryCount() {
448 return _passwordPolicy.getHistoryCount();
449 }
450
451
456 @Override
457 public boolean getLockout() {
458 return _passwordPolicy.getLockout();
459 }
460
461
466 @Override
467 public long getLockoutDuration() {
468 return _passwordPolicy.getLockoutDuration();
469 }
470
471
476 @Override
477 public long getMaxAge() {
478 return _passwordPolicy.getMaxAge();
479 }
480
481
486 @Override
487 public int getMaxFailure() {
488 return _passwordPolicy.getMaxFailure();
489 }
490
491
496 @Override
497 public long getMinAge() {
498 return _passwordPolicy.getMinAge();
499 }
500
501
506 @Override
507 public int getMinAlphanumeric() {
508 return _passwordPolicy.getMinAlphanumeric();
509 }
510
511
516 @Override
517 public int getMinLength() {
518 return _passwordPolicy.getMinLength();
519 }
520
521
526 @Override
527 public int getMinLowerCase() {
528 return _passwordPolicy.getMinLowerCase();
529 }
530
531
536 @Override
537 public int getMinNumbers() {
538 return _passwordPolicy.getMinNumbers();
539 }
540
541
546 @Override
547 public int getMinSymbols() {
548 return _passwordPolicy.getMinSymbols();
549 }
550
551
556 @Override
557 public int getMinUpperCase() {
558 return _passwordPolicy.getMinUpperCase();
559 }
560
561
566 @Override
567 public Date getModifiedDate() {
568 return _passwordPolicy.getModifiedDate();
569 }
570
571
576 @Override
577 public long getMvccVersion() {
578 return _passwordPolicy.getMvccVersion();
579 }
580
581
586 @Override
587 public java.lang.String getName() {
588 return _passwordPolicy.getName();
589 }
590
591
596 @Override
597 public long getPasswordPolicyId() {
598 return _passwordPolicy.getPasswordPolicyId();
599 }
600
601
606 @Override
607 public long getPrimaryKey() {
608 return _passwordPolicy.getPrimaryKey();
609 }
610
611 @Override
612 public Serializable getPrimaryKeyObj() {
613 return _passwordPolicy.getPrimaryKeyObj();
614 }
615
616
621 @Override
622 public java.lang.String getRegex() {
623 return _passwordPolicy.getRegex();
624 }
625
626
631 @Override
632 public boolean getRequireUnlock() {
633 return _passwordPolicy.getRequireUnlock();
634 }
635
636
641 @Override
642 public long getResetFailureCount() {
643 return _passwordPolicy.getResetFailureCount();
644 }
645
646
651 @Override
652 public long getResetTicketMaxAge() {
653 return _passwordPolicy.getResetTicketMaxAge();
654 }
655
656
661 @Override
662 public long getUserId() {
663 return _passwordPolicy.getUserId();
664 }
665
666
671 @Override
672 public java.lang.String getUserName() {
673 return _passwordPolicy.getUserName();
674 }
675
676
681 @Override
682 public java.lang.String getUserUuid() {
683 return _passwordPolicy.getUserUuid();
684 }
685
686
691 @Override
692 public java.lang.String getUuid() {
693 return _passwordPolicy.getUuid();
694 }
695
696
701 @Override
702 public long getWarningTime() {
703 return _passwordPolicy.getWarningTime();
704 }
705
706 @Override
707 public int hashCode() {
708 return _passwordPolicy.hashCode();
709 }
710
711
716 @Override
717 public boolean isAllowDictionaryWords() {
718 return _passwordPolicy.isAllowDictionaryWords();
719 }
720
721 @Override
722 public boolean isCachedModel() {
723 return _passwordPolicy.isCachedModel();
724 }
725
726
731 @Override
732 public boolean isChangeRequired() {
733 return _passwordPolicy.isChangeRequired();
734 }
735
736
741 @Override
742 public boolean isChangeable() {
743 return _passwordPolicy.isChangeable();
744 }
745
746
751 @Override
752 public boolean isCheckSyntax() {
753 return _passwordPolicy.isCheckSyntax();
754 }
755
756
761 @Override
762 public boolean isDefaultPolicy() {
763 return _passwordPolicy.isDefaultPolicy();
764 }
765
766 @Override
767 public boolean isEscapedModel() {
768 return _passwordPolicy.isEscapedModel();
769 }
770
771
776 @Override
777 public boolean isExpireable() {
778 return _passwordPolicy.isExpireable();
779 }
780
781
786 @Override
787 public boolean isHistory() {
788 return _passwordPolicy.isHistory();
789 }
790
791
796 @Override
797 public boolean isLockout() {
798 return _passwordPolicy.isLockout();
799 }
800
801 @Override
802 public boolean isNew() {
803 return _passwordPolicy.isNew();
804 }
805
806
811 @Override
812 public boolean isRequireUnlock() {
813 return _passwordPolicy.isRequireUnlock();
814 }
815
816 @Override
817 public void persist() {
818 _passwordPolicy.persist();
819 }
820
821
826 @Override
827 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
828 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
829 }
830
831 @Override
832 public void setCachedModel(boolean cachedModel) {
833 _passwordPolicy.setCachedModel(cachedModel);
834 }
835
836
841 @Override
842 public void setChangeRequired(boolean changeRequired) {
843 _passwordPolicy.setChangeRequired(changeRequired);
844 }
845
846
851 @Override
852 public void setChangeable(boolean changeable) {
853 _passwordPolicy.setChangeable(changeable);
854 }
855
856
861 @Override
862 public void setCheckSyntax(boolean checkSyntax) {
863 _passwordPolicy.setCheckSyntax(checkSyntax);
864 }
865
866
871 @Override
872 public void setCompanyId(long companyId) {
873 _passwordPolicy.setCompanyId(companyId);
874 }
875
876
881 @Override
882 public void setCreateDate(Date createDate) {
883 _passwordPolicy.setCreateDate(createDate);
884 }
885
886
891 @Override
892 public void setDefaultPolicy(boolean defaultPolicy) {
893 _passwordPolicy.setDefaultPolicy(defaultPolicy);
894 }
895
896
901 @Override
902 public void setDescription(java.lang.String description) {
903 _passwordPolicy.setDescription(description);
904 }
905
906 @Override
907 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
908 _passwordPolicy.setExpandoBridgeAttributes(baseModel);
909 }
910
911 @Override
912 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
913 _passwordPolicy.setExpandoBridgeAttributes(expandoBridge);
914 }
915
916 @Override
917 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
918 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
919 }
920
921
926 @Override
927 public void setExpireable(boolean expireable) {
928 _passwordPolicy.setExpireable(expireable);
929 }
930
931
936 @Override
937 public void setGraceLimit(int graceLimit) {
938 _passwordPolicy.setGraceLimit(graceLimit);
939 }
940
941
946 @Override
947 public void setHistory(boolean history) {
948 _passwordPolicy.setHistory(history);
949 }
950
951
956 @Override
957 public void setHistoryCount(int historyCount) {
958 _passwordPolicy.setHistoryCount(historyCount);
959 }
960
961
966 @Override
967 public void setLockout(boolean lockout) {
968 _passwordPolicy.setLockout(lockout);
969 }
970
971
976 @Override
977 public void setLockoutDuration(long lockoutDuration) {
978 _passwordPolicy.setLockoutDuration(lockoutDuration);
979 }
980
981
986 @Override
987 public void setMaxAge(long maxAge) {
988 _passwordPolicy.setMaxAge(maxAge);
989 }
990
991
996 @Override
997 public void setMaxFailure(int maxFailure) {
998 _passwordPolicy.setMaxFailure(maxFailure);
999 }
1000
1001
1006 @Override
1007 public void setMinAge(long minAge) {
1008 _passwordPolicy.setMinAge(minAge);
1009 }
1010
1011
1016 @Override
1017 public void setMinAlphanumeric(int minAlphanumeric) {
1018 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
1019 }
1020
1021
1026 @Override
1027 public void setMinLength(int minLength) {
1028 _passwordPolicy.setMinLength(minLength);
1029 }
1030
1031
1036 @Override
1037 public void setMinLowerCase(int minLowerCase) {
1038 _passwordPolicy.setMinLowerCase(minLowerCase);
1039 }
1040
1041
1046 @Override
1047 public void setMinNumbers(int minNumbers) {
1048 _passwordPolicy.setMinNumbers(minNumbers);
1049 }
1050
1051
1056 @Override
1057 public void setMinSymbols(int minSymbols) {
1058 _passwordPolicy.setMinSymbols(minSymbols);
1059 }
1060
1061
1066 @Override
1067 public void setMinUpperCase(int minUpperCase) {
1068 _passwordPolicy.setMinUpperCase(minUpperCase);
1069 }
1070
1071
1076 @Override
1077 public void setModifiedDate(Date modifiedDate) {
1078 _passwordPolicy.setModifiedDate(modifiedDate);
1079 }
1080
1081
1086 @Override
1087 public void setMvccVersion(long mvccVersion) {
1088 _passwordPolicy.setMvccVersion(mvccVersion);
1089 }
1090
1091
1096 @Override
1097 public void setName(java.lang.String name) {
1098 _passwordPolicy.setName(name);
1099 }
1100
1101 @Override
1102 public void setNew(boolean n) {
1103 _passwordPolicy.setNew(n);
1104 }
1105
1106
1111 @Override
1112 public void setPasswordPolicyId(long passwordPolicyId) {
1113 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
1114 }
1115
1116
1121 @Override
1122 public void setPrimaryKey(long primaryKey) {
1123 _passwordPolicy.setPrimaryKey(primaryKey);
1124 }
1125
1126 @Override
1127 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
1128 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1129 }
1130
1131
1136 @Override
1137 public void setRegex(java.lang.String regex) {
1138 _passwordPolicy.setRegex(regex);
1139 }
1140
1141
1146 @Override
1147 public void setRequireUnlock(boolean requireUnlock) {
1148 _passwordPolicy.setRequireUnlock(requireUnlock);
1149 }
1150
1151
1156 @Override
1157 public void setResetFailureCount(long resetFailureCount) {
1158 _passwordPolicy.setResetFailureCount(resetFailureCount);
1159 }
1160
1161
1166 @Override
1167 public void setResetTicketMaxAge(long resetTicketMaxAge) {
1168 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
1169 }
1170
1171
1176 @Override
1177 public void setUserId(long userId) {
1178 _passwordPolicy.setUserId(userId);
1179 }
1180
1181
1186 @Override
1187 public void setUserName(java.lang.String userName) {
1188 _passwordPolicy.setUserName(userName);
1189 }
1190
1191
1196 @Override
1197 public void setUserUuid(java.lang.String userUuid) {
1198 _passwordPolicy.setUserUuid(userUuid);
1199 }
1200
1201
1206 @Override
1207 public void setUuid(java.lang.String uuid) {
1208 _passwordPolicy.setUuid(uuid);
1209 }
1210
1211
1216 @Override
1217 public void setWarningTime(long warningTime) {
1218 _passwordPolicy.setWarningTime(warningTime);
1219 }
1220
1221 @Override
1222 public CacheModel<com.liferay.portal.kernel.model.PasswordPolicy> toCacheModel() {
1223 return _passwordPolicy.toCacheModel();
1224 }
1225
1226 @Override
1227 public com.liferay.portal.kernel.model.PasswordPolicy toEscapedModel() {
1228 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1229 }
1230
1231 @Override
1232 public java.lang.String toString() {
1233 return _passwordPolicy.toString();
1234 }
1235
1236 @Override
1237 public com.liferay.portal.kernel.model.PasswordPolicy toUnescapedModel() {
1238 return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1239 }
1240
1241 @Override
1242 public java.lang.String toXmlString() {
1243 return _passwordPolicy.toXmlString();
1244 }
1245
1246 @Override
1247 public boolean equals(Object obj) {
1248 if (this == obj) {
1249 return true;
1250 }
1251
1252 if (!(obj instanceof PasswordPolicyWrapper)) {
1253 return false;
1254 }
1255
1256 PasswordPolicyWrapper passwordPolicyWrapper = (PasswordPolicyWrapper)obj;
1257
1258 if (Validator.equals(_passwordPolicy,
1259 passwordPolicyWrapper._passwordPolicy)) {
1260 return true;
1261 }
1262
1263 return false;
1264 }
1265
1266 @Override
1267 public StagedModelType getStagedModelType() {
1268 return _passwordPolicy.getStagedModelType();
1269 }
1270
1271 @Override
1272 public PasswordPolicy getWrappedModel() {
1273 return _passwordPolicy;
1274 }
1275
1276 @Override
1277 public boolean isEntityCacheEnabled() {
1278 return _passwordPolicy.isEntityCacheEnabled();
1279 }
1280
1281 @Override
1282 public boolean isFinderCacheEnabled() {
1283 return _passwordPolicy.isFinderCacheEnabled();
1284 }
1285
1286 @Override
1287 public void resetOriginalValues() {
1288 _passwordPolicy.resetOriginalValues();
1289 }
1290
1291 private final PasswordPolicy _passwordPolicy;
1292 }