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("uuid", getUuid());
057 attributes.put("passwordPolicyId", getPasswordPolicyId());
058 attributes.put("companyId", getCompanyId());
059 attributes.put("userId", getUserId());
060 attributes.put("userName", getUserName());
061 attributes.put("createDate", getCreateDate());
062 attributes.put("modifiedDate", getModifiedDate());
063 attributes.put("defaultPolicy", getDefaultPolicy());
064 attributes.put("name", getName());
065 attributes.put("description", getDescription());
066 attributes.put("changeable", getChangeable());
067 attributes.put("changeRequired", getChangeRequired());
068 attributes.put("minAge", getMinAge());
069 attributes.put("checkSyntax", getCheckSyntax());
070 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
071 attributes.put("minAlphanumeric", getMinAlphanumeric());
072 attributes.put("minLength", getMinLength());
073 attributes.put("minLowerCase", getMinLowerCase());
074 attributes.put("minNumbers", getMinNumbers());
075 attributes.put("minSymbols", getMinSymbols());
076 attributes.put("minUpperCase", getMinUpperCase());
077 attributes.put("regex", getRegex());
078 attributes.put("history", getHistory());
079 attributes.put("historyCount", getHistoryCount());
080 attributes.put("expireable", getExpireable());
081 attributes.put("maxAge", getMaxAge());
082 attributes.put("warningTime", getWarningTime());
083 attributes.put("graceLimit", getGraceLimit());
084 attributes.put("lockout", getLockout());
085 attributes.put("maxFailure", getMaxFailure());
086 attributes.put("lockoutDuration", getLockoutDuration());
087 attributes.put("requireUnlock", getRequireUnlock());
088 attributes.put("resetFailureCount", getResetFailureCount());
089 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
090
091 return attributes;
092 }
093
094 @Override
095 public void setModelAttributes(Map<String, Object> attributes) {
096 String uuid = (String)attributes.get("uuid");
097
098 if (uuid != null) {
099 setUuid(uuid);
100 }
101
102 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
103
104 if (passwordPolicyId != null) {
105 setPasswordPolicyId(passwordPolicyId);
106 }
107
108 Long companyId = (Long)attributes.get("companyId");
109
110 if (companyId != null) {
111 setCompanyId(companyId);
112 }
113
114 Long userId = (Long)attributes.get("userId");
115
116 if (userId != null) {
117 setUserId(userId);
118 }
119
120 String userName = (String)attributes.get("userName");
121
122 if (userName != null) {
123 setUserName(userName);
124 }
125
126 Date createDate = (Date)attributes.get("createDate");
127
128 if (createDate != null) {
129 setCreateDate(createDate);
130 }
131
132 Date modifiedDate = (Date)attributes.get("modifiedDate");
133
134 if (modifiedDate != null) {
135 setModifiedDate(modifiedDate);
136 }
137
138 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
139
140 if (defaultPolicy != null) {
141 setDefaultPolicy(defaultPolicy);
142 }
143
144 String name = (String)attributes.get("name");
145
146 if (name != null) {
147 setName(name);
148 }
149
150 String description = (String)attributes.get("description");
151
152 if (description != null) {
153 setDescription(description);
154 }
155
156 Boolean changeable = (Boolean)attributes.get("changeable");
157
158 if (changeable != null) {
159 setChangeable(changeable);
160 }
161
162 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
163
164 if (changeRequired != null) {
165 setChangeRequired(changeRequired);
166 }
167
168 Long minAge = (Long)attributes.get("minAge");
169
170 if (minAge != null) {
171 setMinAge(minAge);
172 }
173
174 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
175
176 if (checkSyntax != null) {
177 setCheckSyntax(checkSyntax);
178 }
179
180 Boolean allowDictionaryWords = (Boolean)attributes.get(
181 "allowDictionaryWords");
182
183 if (allowDictionaryWords != null) {
184 setAllowDictionaryWords(allowDictionaryWords);
185 }
186
187 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
188
189 if (minAlphanumeric != null) {
190 setMinAlphanumeric(minAlphanumeric);
191 }
192
193 Integer minLength = (Integer)attributes.get("minLength");
194
195 if (minLength != null) {
196 setMinLength(minLength);
197 }
198
199 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
200
201 if (minLowerCase != null) {
202 setMinLowerCase(minLowerCase);
203 }
204
205 Integer minNumbers = (Integer)attributes.get("minNumbers");
206
207 if (minNumbers != null) {
208 setMinNumbers(minNumbers);
209 }
210
211 Integer minSymbols = (Integer)attributes.get("minSymbols");
212
213 if (minSymbols != null) {
214 setMinSymbols(minSymbols);
215 }
216
217 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
218
219 if (minUpperCase != null) {
220 setMinUpperCase(minUpperCase);
221 }
222
223 String regex = (String)attributes.get("regex");
224
225 if (regex != null) {
226 setRegex(regex);
227 }
228
229 Boolean history = (Boolean)attributes.get("history");
230
231 if (history != null) {
232 setHistory(history);
233 }
234
235 Integer historyCount = (Integer)attributes.get("historyCount");
236
237 if (historyCount != null) {
238 setHistoryCount(historyCount);
239 }
240
241 Boolean expireable = (Boolean)attributes.get("expireable");
242
243 if (expireable != null) {
244 setExpireable(expireable);
245 }
246
247 Long maxAge = (Long)attributes.get("maxAge");
248
249 if (maxAge != null) {
250 setMaxAge(maxAge);
251 }
252
253 Long warningTime = (Long)attributes.get("warningTime");
254
255 if (warningTime != null) {
256 setWarningTime(warningTime);
257 }
258
259 Integer graceLimit = (Integer)attributes.get("graceLimit");
260
261 if (graceLimit != null) {
262 setGraceLimit(graceLimit);
263 }
264
265 Boolean lockout = (Boolean)attributes.get("lockout");
266
267 if (lockout != null) {
268 setLockout(lockout);
269 }
270
271 Integer maxFailure = (Integer)attributes.get("maxFailure");
272
273 if (maxFailure != null) {
274 setMaxFailure(maxFailure);
275 }
276
277 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
278
279 if (lockoutDuration != null) {
280 setLockoutDuration(lockoutDuration);
281 }
282
283 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
284
285 if (requireUnlock != null) {
286 setRequireUnlock(requireUnlock);
287 }
288
289 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
290
291 if (resetFailureCount != null) {
292 setResetFailureCount(resetFailureCount);
293 }
294
295 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
296
297 if (resetTicketMaxAge != null) {
298 setResetTicketMaxAge(resetTicketMaxAge);
299 }
300 }
301
302
307 @Override
308 public long getPrimaryKey() {
309 return _passwordPolicy.getPrimaryKey();
310 }
311
312
317 @Override
318 public void setPrimaryKey(long primaryKey) {
319 _passwordPolicy.setPrimaryKey(primaryKey);
320 }
321
322
327 @Override
328 public java.lang.String getUuid() {
329 return _passwordPolicy.getUuid();
330 }
331
332
337 @Override
338 public void setUuid(java.lang.String uuid) {
339 _passwordPolicy.setUuid(uuid);
340 }
341
342
347 @Override
348 public long getPasswordPolicyId() {
349 return _passwordPolicy.getPasswordPolicyId();
350 }
351
352
357 @Override
358 public void setPasswordPolicyId(long passwordPolicyId) {
359 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
360 }
361
362
367 @Override
368 public long getCompanyId() {
369 return _passwordPolicy.getCompanyId();
370 }
371
372
377 @Override
378 public void setCompanyId(long companyId) {
379 _passwordPolicy.setCompanyId(companyId);
380 }
381
382
387 @Override
388 public long getUserId() {
389 return _passwordPolicy.getUserId();
390 }
391
392
397 @Override
398 public void setUserId(long userId) {
399 _passwordPolicy.setUserId(userId);
400 }
401
402
408 @Override
409 public java.lang.String getUserUuid()
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return _passwordPolicy.getUserUuid();
412 }
413
414
419 @Override
420 public void setUserUuid(java.lang.String userUuid) {
421 _passwordPolicy.setUserUuid(userUuid);
422 }
423
424
429 @Override
430 public java.lang.String getUserName() {
431 return _passwordPolicy.getUserName();
432 }
433
434
439 @Override
440 public void setUserName(java.lang.String userName) {
441 _passwordPolicy.setUserName(userName);
442 }
443
444
449 @Override
450 public java.util.Date getCreateDate() {
451 return _passwordPolicy.getCreateDate();
452 }
453
454
459 @Override
460 public void setCreateDate(java.util.Date createDate) {
461 _passwordPolicy.setCreateDate(createDate);
462 }
463
464
469 @Override
470 public java.util.Date getModifiedDate() {
471 return _passwordPolicy.getModifiedDate();
472 }
473
474
479 @Override
480 public void setModifiedDate(java.util.Date modifiedDate) {
481 _passwordPolicy.setModifiedDate(modifiedDate);
482 }
483
484
489 @Override
490 public boolean getDefaultPolicy() {
491 return _passwordPolicy.getDefaultPolicy();
492 }
493
494
499 @Override
500 public boolean isDefaultPolicy() {
501 return _passwordPolicy.isDefaultPolicy();
502 }
503
504
509 @Override
510 public void setDefaultPolicy(boolean defaultPolicy) {
511 _passwordPolicy.setDefaultPolicy(defaultPolicy);
512 }
513
514
519 @Override
520 public java.lang.String getName() {
521 return _passwordPolicy.getName();
522 }
523
524
529 @Override
530 public void setName(java.lang.String name) {
531 _passwordPolicy.setName(name);
532 }
533
534
539 @Override
540 public java.lang.String getDescription() {
541 return _passwordPolicy.getDescription();
542 }
543
544
549 @Override
550 public void setDescription(java.lang.String description) {
551 _passwordPolicy.setDescription(description);
552 }
553
554
559 @Override
560 public boolean getChangeable() {
561 return _passwordPolicy.getChangeable();
562 }
563
564
569 @Override
570 public boolean isChangeable() {
571 return _passwordPolicy.isChangeable();
572 }
573
574
579 @Override
580 public void setChangeable(boolean changeable) {
581 _passwordPolicy.setChangeable(changeable);
582 }
583
584
589 @Override
590 public boolean getChangeRequired() {
591 return _passwordPolicy.getChangeRequired();
592 }
593
594
599 @Override
600 public boolean isChangeRequired() {
601 return _passwordPolicy.isChangeRequired();
602 }
603
604
609 @Override
610 public void setChangeRequired(boolean changeRequired) {
611 _passwordPolicy.setChangeRequired(changeRequired);
612 }
613
614
619 @Override
620 public long getMinAge() {
621 return _passwordPolicy.getMinAge();
622 }
623
624
629 @Override
630 public void setMinAge(long minAge) {
631 _passwordPolicy.setMinAge(minAge);
632 }
633
634
639 @Override
640 public boolean getCheckSyntax() {
641 return _passwordPolicy.getCheckSyntax();
642 }
643
644
649 @Override
650 public boolean isCheckSyntax() {
651 return _passwordPolicy.isCheckSyntax();
652 }
653
654
659 @Override
660 public void setCheckSyntax(boolean checkSyntax) {
661 _passwordPolicy.setCheckSyntax(checkSyntax);
662 }
663
664
669 @Override
670 public boolean getAllowDictionaryWords() {
671 return _passwordPolicy.getAllowDictionaryWords();
672 }
673
674
679 @Override
680 public boolean isAllowDictionaryWords() {
681 return _passwordPolicy.isAllowDictionaryWords();
682 }
683
684
689 @Override
690 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
691 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
692 }
693
694
699 @Override
700 public int getMinAlphanumeric() {
701 return _passwordPolicy.getMinAlphanumeric();
702 }
703
704
709 @Override
710 public void setMinAlphanumeric(int minAlphanumeric) {
711 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
712 }
713
714
719 @Override
720 public int getMinLength() {
721 return _passwordPolicy.getMinLength();
722 }
723
724
729 @Override
730 public void setMinLength(int minLength) {
731 _passwordPolicy.setMinLength(minLength);
732 }
733
734
739 @Override
740 public int getMinLowerCase() {
741 return _passwordPolicy.getMinLowerCase();
742 }
743
744
749 @Override
750 public void setMinLowerCase(int minLowerCase) {
751 _passwordPolicy.setMinLowerCase(minLowerCase);
752 }
753
754
759 @Override
760 public int getMinNumbers() {
761 return _passwordPolicy.getMinNumbers();
762 }
763
764
769 @Override
770 public void setMinNumbers(int minNumbers) {
771 _passwordPolicy.setMinNumbers(minNumbers);
772 }
773
774
779 @Override
780 public int getMinSymbols() {
781 return _passwordPolicy.getMinSymbols();
782 }
783
784
789 @Override
790 public void setMinSymbols(int minSymbols) {
791 _passwordPolicy.setMinSymbols(minSymbols);
792 }
793
794
799 @Override
800 public int getMinUpperCase() {
801 return _passwordPolicy.getMinUpperCase();
802 }
803
804
809 @Override
810 public void setMinUpperCase(int minUpperCase) {
811 _passwordPolicy.setMinUpperCase(minUpperCase);
812 }
813
814
819 @Override
820 public java.lang.String getRegex() {
821 return _passwordPolicy.getRegex();
822 }
823
824
829 @Override
830 public void setRegex(java.lang.String regex) {
831 _passwordPolicy.setRegex(regex);
832 }
833
834
839 @Override
840 public boolean getHistory() {
841 return _passwordPolicy.getHistory();
842 }
843
844
849 @Override
850 public boolean isHistory() {
851 return _passwordPolicy.isHistory();
852 }
853
854
859 @Override
860 public void setHistory(boolean history) {
861 _passwordPolicy.setHistory(history);
862 }
863
864
869 @Override
870 public int getHistoryCount() {
871 return _passwordPolicy.getHistoryCount();
872 }
873
874
879 @Override
880 public void setHistoryCount(int historyCount) {
881 _passwordPolicy.setHistoryCount(historyCount);
882 }
883
884
889 @Override
890 public boolean getExpireable() {
891 return _passwordPolicy.getExpireable();
892 }
893
894
899 @Override
900 public boolean isExpireable() {
901 return _passwordPolicy.isExpireable();
902 }
903
904
909 @Override
910 public void setExpireable(boolean expireable) {
911 _passwordPolicy.setExpireable(expireable);
912 }
913
914
919 @Override
920 public long getMaxAge() {
921 return _passwordPolicy.getMaxAge();
922 }
923
924
929 @Override
930 public void setMaxAge(long maxAge) {
931 _passwordPolicy.setMaxAge(maxAge);
932 }
933
934
939 @Override
940 public long getWarningTime() {
941 return _passwordPolicy.getWarningTime();
942 }
943
944
949 @Override
950 public void setWarningTime(long warningTime) {
951 _passwordPolicy.setWarningTime(warningTime);
952 }
953
954
959 @Override
960 public int getGraceLimit() {
961 return _passwordPolicy.getGraceLimit();
962 }
963
964
969 @Override
970 public void setGraceLimit(int graceLimit) {
971 _passwordPolicy.setGraceLimit(graceLimit);
972 }
973
974
979 @Override
980 public boolean getLockout() {
981 return _passwordPolicy.getLockout();
982 }
983
984
989 @Override
990 public boolean isLockout() {
991 return _passwordPolicy.isLockout();
992 }
993
994
999 @Override
1000 public void setLockout(boolean lockout) {
1001 _passwordPolicy.setLockout(lockout);
1002 }
1003
1004
1009 @Override
1010 public int getMaxFailure() {
1011 return _passwordPolicy.getMaxFailure();
1012 }
1013
1014
1019 @Override
1020 public void setMaxFailure(int maxFailure) {
1021 _passwordPolicy.setMaxFailure(maxFailure);
1022 }
1023
1024
1029 @Override
1030 public long getLockoutDuration() {
1031 return _passwordPolicy.getLockoutDuration();
1032 }
1033
1034
1039 @Override
1040 public void setLockoutDuration(long lockoutDuration) {
1041 _passwordPolicy.setLockoutDuration(lockoutDuration);
1042 }
1043
1044
1049 @Override
1050 public boolean getRequireUnlock() {
1051 return _passwordPolicy.getRequireUnlock();
1052 }
1053
1054
1059 @Override
1060 public boolean isRequireUnlock() {
1061 return _passwordPolicy.isRequireUnlock();
1062 }
1063
1064
1069 @Override
1070 public void setRequireUnlock(boolean requireUnlock) {
1071 _passwordPolicy.setRequireUnlock(requireUnlock);
1072 }
1073
1074
1079 @Override
1080 public long getResetFailureCount() {
1081 return _passwordPolicy.getResetFailureCount();
1082 }
1083
1084
1089 @Override
1090 public void setResetFailureCount(long resetFailureCount) {
1091 _passwordPolicy.setResetFailureCount(resetFailureCount);
1092 }
1093
1094
1099 @Override
1100 public long getResetTicketMaxAge() {
1101 return _passwordPolicy.getResetTicketMaxAge();
1102 }
1103
1104
1109 @Override
1110 public void setResetTicketMaxAge(long resetTicketMaxAge) {
1111 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
1112 }
1113
1114 @Override
1115 public boolean isNew() {
1116 return _passwordPolicy.isNew();
1117 }
1118
1119 @Override
1120 public void setNew(boolean n) {
1121 _passwordPolicy.setNew(n);
1122 }
1123
1124 @Override
1125 public boolean isCachedModel() {
1126 return _passwordPolicy.isCachedModel();
1127 }
1128
1129 @Override
1130 public void setCachedModel(boolean cachedModel) {
1131 _passwordPolicy.setCachedModel(cachedModel);
1132 }
1133
1134 @Override
1135 public boolean isEscapedModel() {
1136 return _passwordPolicy.isEscapedModel();
1137 }
1138
1139 @Override
1140 public java.io.Serializable getPrimaryKeyObj() {
1141 return _passwordPolicy.getPrimaryKeyObj();
1142 }
1143
1144 @Override
1145 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1146 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1147 }
1148
1149 @Override
1150 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1151 return _passwordPolicy.getExpandoBridge();
1152 }
1153
1154 @Override
1155 public void setExpandoBridgeAttributes(
1156 com.liferay.portal.model.BaseModel<?> baseModel) {
1157 _passwordPolicy.setExpandoBridgeAttributes(baseModel);
1158 }
1159
1160 @Override
1161 public void setExpandoBridgeAttributes(
1162 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1163 _passwordPolicy.setExpandoBridgeAttributes(expandoBridge);
1164 }
1165
1166 @Override
1167 public void setExpandoBridgeAttributes(
1168 com.liferay.portal.service.ServiceContext serviceContext) {
1169 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
1170 }
1171
1172 @Override
1173 public java.lang.Object clone() {
1174 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
1175 }
1176
1177 @Override
1178 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
1179 return _passwordPolicy.compareTo(passwordPolicy);
1180 }
1181
1182 @Override
1183 public int hashCode() {
1184 return _passwordPolicy.hashCode();
1185 }
1186
1187 @Override
1188 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1189 return _passwordPolicy.toCacheModel();
1190 }
1191
1192 @Override
1193 public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1194 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1195 }
1196
1197 @Override
1198 public com.liferay.portal.model.PasswordPolicy toUnescapedModel() {
1199 return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1200 }
1201
1202 @Override
1203 public java.lang.String toString() {
1204 return _passwordPolicy.toString();
1205 }
1206
1207 @Override
1208 public java.lang.String toXmlString() {
1209 return _passwordPolicy.toXmlString();
1210 }
1211
1212 @Override
1213 public void persist()
1214 throws com.liferay.portal.kernel.exception.SystemException {
1215 _passwordPolicy.persist();
1216 }
1217
1218 @Override
1219 public boolean equals(Object obj) {
1220 if (this == obj) {
1221 return true;
1222 }
1223
1224 if (!(obj instanceof PasswordPolicyWrapper)) {
1225 return false;
1226 }
1227
1228 PasswordPolicyWrapper passwordPolicyWrapper = (PasswordPolicyWrapper)obj;
1229
1230 if (Validator.equals(_passwordPolicy,
1231 passwordPolicyWrapper._passwordPolicy)) {
1232 return true;
1233 }
1234
1235 return false;
1236 }
1237
1238 @Override
1239 public StagedModelType getStagedModelType() {
1240 return _passwordPolicy.getStagedModelType();
1241 }
1242
1243
1246 public PasswordPolicy getWrappedPasswordPolicy() {
1247 return _passwordPolicy;
1248 }
1249
1250 @Override
1251 public PasswordPolicy getWrappedModel() {
1252 return _passwordPolicy;
1253 }
1254
1255 @Override
1256 public void resetOriginalValues() {
1257 _passwordPolicy.resetOriginalValues();
1258 }
1259
1260 private PasswordPolicy _passwordPolicy;
1261 }