001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class PasswordPolicyWrapper implements PasswordPolicy,
033 ModelWrapper<PasswordPolicy> {
034 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
035 _passwordPolicy = passwordPolicy;
036 }
037
038 public Class<?> getModelClass() {
039 return PasswordPolicy.class;
040 }
041
042 public String getModelClassName() {
043 return PasswordPolicy.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("passwordPolicyId", getPasswordPolicyId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("userName", getUserName());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("modifiedDate", getModifiedDate());
055 attributes.put("defaultPolicy", getDefaultPolicy());
056 attributes.put("name", getName());
057 attributes.put("description", getDescription());
058 attributes.put("changeable", getChangeable());
059 attributes.put("changeRequired", getChangeRequired());
060 attributes.put("minAge", getMinAge());
061 attributes.put("checkSyntax", getCheckSyntax());
062 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
063 attributes.put("minAlphanumeric", getMinAlphanumeric());
064 attributes.put("minLength", getMinLength());
065 attributes.put("minLowerCase", getMinLowerCase());
066 attributes.put("minNumbers", getMinNumbers());
067 attributes.put("minSymbols", getMinSymbols());
068 attributes.put("minUpperCase", getMinUpperCase());
069 attributes.put("history", getHistory());
070 attributes.put("historyCount", getHistoryCount());
071 attributes.put("expireable", getExpireable());
072 attributes.put("maxAge", getMaxAge());
073 attributes.put("warningTime", getWarningTime());
074 attributes.put("graceLimit", getGraceLimit());
075 attributes.put("lockout", getLockout());
076 attributes.put("maxFailure", getMaxFailure());
077 attributes.put("lockoutDuration", getLockoutDuration());
078 attributes.put("requireUnlock", getRequireUnlock());
079 attributes.put("resetFailureCount", getResetFailureCount());
080 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
081
082 return attributes;
083 }
084
085 public void setModelAttributes(Map<String, Object> attributes) {
086 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
087
088 if (passwordPolicyId != null) {
089 setPasswordPolicyId(passwordPolicyId);
090 }
091
092 Long companyId = (Long)attributes.get("companyId");
093
094 if (companyId != null) {
095 setCompanyId(companyId);
096 }
097
098 Long userId = (Long)attributes.get("userId");
099
100 if (userId != null) {
101 setUserId(userId);
102 }
103
104 String userName = (String)attributes.get("userName");
105
106 if (userName != null) {
107 setUserName(userName);
108 }
109
110 Date createDate = (Date)attributes.get("createDate");
111
112 if (createDate != null) {
113 setCreateDate(createDate);
114 }
115
116 Date modifiedDate = (Date)attributes.get("modifiedDate");
117
118 if (modifiedDate != null) {
119 setModifiedDate(modifiedDate);
120 }
121
122 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
123
124 if (defaultPolicy != null) {
125 setDefaultPolicy(defaultPolicy);
126 }
127
128 String name = (String)attributes.get("name");
129
130 if (name != null) {
131 setName(name);
132 }
133
134 String description = (String)attributes.get("description");
135
136 if (description != null) {
137 setDescription(description);
138 }
139
140 Boolean changeable = (Boolean)attributes.get("changeable");
141
142 if (changeable != null) {
143 setChangeable(changeable);
144 }
145
146 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
147
148 if (changeRequired != null) {
149 setChangeRequired(changeRequired);
150 }
151
152 Long minAge = (Long)attributes.get("minAge");
153
154 if (minAge != null) {
155 setMinAge(minAge);
156 }
157
158 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
159
160 if (checkSyntax != null) {
161 setCheckSyntax(checkSyntax);
162 }
163
164 Boolean allowDictionaryWords = (Boolean)attributes.get(
165 "allowDictionaryWords");
166
167 if (allowDictionaryWords != null) {
168 setAllowDictionaryWords(allowDictionaryWords);
169 }
170
171 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
172
173 if (minAlphanumeric != null) {
174 setMinAlphanumeric(minAlphanumeric);
175 }
176
177 Integer minLength = (Integer)attributes.get("minLength");
178
179 if (minLength != null) {
180 setMinLength(minLength);
181 }
182
183 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
184
185 if (minLowerCase != null) {
186 setMinLowerCase(minLowerCase);
187 }
188
189 Integer minNumbers = (Integer)attributes.get("minNumbers");
190
191 if (minNumbers != null) {
192 setMinNumbers(minNumbers);
193 }
194
195 Integer minSymbols = (Integer)attributes.get("minSymbols");
196
197 if (minSymbols != null) {
198 setMinSymbols(minSymbols);
199 }
200
201 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
202
203 if (minUpperCase != null) {
204 setMinUpperCase(minUpperCase);
205 }
206
207 Boolean history = (Boolean)attributes.get("history");
208
209 if (history != null) {
210 setHistory(history);
211 }
212
213 Integer historyCount = (Integer)attributes.get("historyCount");
214
215 if (historyCount != null) {
216 setHistoryCount(historyCount);
217 }
218
219 Boolean expireable = (Boolean)attributes.get("expireable");
220
221 if (expireable != null) {
222 setExpireable(expireable);
223 }
224
225 Long maxAge = (Long)attributes.get("maxAge");
226
227 if (maxAge != null) {
228 setMaxAge(maxAge);
229 }
230
231 Long warningTime = (Long)attributes.get("warningTime");
232
233 if (warningTime != null) {
234 setWarningTime(warningTime);
235 }
236
237 Integer graceLimit = (Integer)attributes.get("graceLimit");
238
239 if (graceLimit != null) {
240 setGraceLimit(graceLimit);
241 }
242
243 Boolean lockout = (Boolean)attributes.get("lockout");
244
245 if (lockout != null) {
246 setLockout(lockout);
247 }
248
249 Integer maxFailure = (Integer)attributes.get("maxFailure");
250
251 if (maxFailure != null) {
252 setMaxFailure(maxFailure);
253 }
254
255 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
256
257 if (lockoutDuration != null) {
258 setLockoutDuration(lockoutDuration);
259 }
260
261 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
262
263 if (requireUnlock != null) {
264 setRequireUnlock(requireUnlock);
265 }
266
267 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
268
269 if (resetFailureCount != null) {
270 setResetFailureCount(resetFailureCount);
271 }
272
273 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
274
275 if (resetTicketMaxAge != null) {
276 setResetTicketMaxAge(resetTicketMaxAge);
277 }
278 }
279
280
285 public long getPrimaryKey() {
286 return _passwordPolicy.getPrimaryKey();
287 }
288
289
294 public void setPrimaryKey(long primaryKey) {
295 _passwordPolicy.setPrimaryKey(primaryKey);
296 }
297
298
303 public long getPasswordPolicyId() {
304 return _passwordPolicy.getPasswordPolicyId();
305 }
306
307
312 public void setPasswordPolicyId(long passwordPolicyId) {
313 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
314 }
315
316
321 public long getCompanyId() {
322 return _passwordPolicy.getCompanyId();
323 }
324
325
330 public void setCompanyId(long companyId) {
331 _passwordPolicy.setCompanyId(companyId);
332 }
333
334
339 public long getUserId() {
340 return _passwordPolicy.getUserId();
341 }
342
343
348 public void setUserId(long userId) {
349 _passwordPolicy.setUserId(userId);
350 }
351
352
358 public java.lang.String getUserUuid()
359 throws com.liferay.portal.kernel.exception.SystemException {
360 return _passwordPolicy.getUserUuid();
361 }
362
363
368 public void setUserUuid(java.lang.String userUuid) {
369 _passwordPolicy.setUserUuid(userUuid);
370 }
371
372
377 public java.lang.String getUserName() {
378 return _passwordPolicy.getUserName();
379 }
380
381
386 public void setUserName(java.lang.String userName) {
387 _passwordPolicy.setUserName(userName);
388 }
389
390
395 public java.util.Date getCreateDate() {
396 return _passwordPolicy.getCreateDate();
397 }
398
399
404 public void setCreateDate(java.util.Date createDate) {
405 _passwordPolicy.setCreateDate(createDate);
406 }
407
408
413 public java.util.Date getModifiedDate() {
414 return _passwordPolicy.getModifiedDate();
415 }
416
417
422 public void setModifiedDate(java.util.Date modifiedDate) {
423 _passwordPolicy.setModifiedDate(modifiedDate);
424 }
425
426
431 public boolean getDefaultPolicy() {
432 return _passwordPolicy.getDefaultPolicy();
433 }
434
435
440 public boolean isDefaultPolicy() {
441 return _passwordPolicy.isDefaultPolicy();
442 }
443
444
449 public void setDefaultPolicy(boolean defaultPolicy) {
450 _passwordPolicy.setDefaultPolicy(defaultPolicy);
451 }
452
453
458 public java.lang.String getName() {
459 return _passwordPolicy.getName();
460 }
461
462
467 public void setName(java.lang.String name) {
468 _passwordPolicy.setName(name);
469 }
470
471
476 public java.lang.String getDescription() {
477 return _passwordPolicy.getDescription();
478 }
479
480
485 public void setDescription(java.lang.String description) {
486 _passwordPolicy.setDescription(description);
487 }
488
489
494 public boolean getChangeable() {
495 return _passwordPolicy.getChangeable();
496 }
497
498
503 public boolean isChangeable() {
504 return _passwordPolicy.isChangeable();
505 }
506
507
512 public void setChangeable(boolean changeable) {
513 _passwordPolicy.setChangeable(changeable);
514 }
515
516
521 public boolean getChangeRequired() {
522 return _passwordPolicy.getChangeRequired();
523 }
524
525
530 public boolean isChangeRequired() {
531 return _passwordPolicy.isChangeRequired();
532 }
533
534
539 public void setChangeRequired(boolean changeRequired) {
540 _passwordPolicy.setChangeRequired(changeRequired);
541 }
542
543
548 public long getMinAge() {
549 return _passwordPolicy.getMinAge();
550 }
551
552
557 public void setMinAge(long minAge) {
558 _passwordPolicy.setMinAge(minAge);
559 }
560
561
566 public boolean getCheckSyntax() {
567 return _passwordPolicy.getCheckSyntax();
568 }
569
570
575 public boolean isCheckSyntax() {
576 return _passwordPolicy.isCheckSyntax();
577 }
578
579
584 public void setCheckSyntax(boolean checkSyntax) {
585 _passwordPolicy.setCheckSyntax(checkSyntax);
586 }
587
588
593 public boolean getAllowDictionaryWords() {
594 return _passwordPolicy.getAllowDictionaryWords();
595 }
596
597
602 public boolean isAllowDictionaryWords() {
603 return _passwordPolicy.isAllowDictionaryWords();
604 }
605
606
611 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
612 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
613 }
614
615
620 public int getMinAlphanumeric() {
621 return _passwordPolicy.getMinAlphanumeric();
622 }
623
624
629 public void setMinAlphanumeric(int minAlphanumeric) {
630 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
631 }
632
633
638 public int getMinLength() {
639 return _passwordPolicy.getMinLength();
640 }
641
642
647 public void setMinLength(int minLength) {
648 _passwordPolicy.setMinLength(minLength);
649 }
650
651
656 public int getMinLowerCase() {
657 return _passwordPolicy.getMinLowerCase();
658 }
659
660
665 public void setMinLowerCase(int minLowerCase) {
666 _passwordPolicy.setMinLowerCase(minLowerCase);
667 }
668
669
674 public int getMinNumbers() {
675 return _passwordPolicy.getMinNumbers();
676 }
677
678
683 public void setMinNumbers(int minNumbers) {
684 _passwordPolicy.setMinNumbers(minNumbers);
685 }
686
687
692 public int getMinSymbols() {
693 return _passwordPolicy.getMinSymbols();
694 }
695
696
701 public void setMinSymbols(int minSymbols) {
702 _passwordPolicy.setMinSymbols(minSymbols);
703 }
704
705
710 public int getMinUpperCase() {
711 return _passwordPolicy.getMinUpperCase();
712 }
713
714
719 public void setMinUpperCase(int minUpperCase) {
720 _passwordPolicy.setMinUpperCase(minUpperCase);
721 }
722
723
728 public boolean getHistory() {
729 return _passwordPolicy.getHistory();
730 }
731
732
737 public boolean isHistory() {
738 return _passwordPolicy.isHistory();
739 }
740
741
746 public void setHistory(boolean history) {
747 _passwordPolicy.setHistory(history);
748 }
749
750
755 public int getHistoryCount() {
756 return _passwordPolicy.getHistoryCount();
757 }
758
759
764 public void setHistoryCount(int historyCount) {
765 _passwordPolicy.setHistoryCount(historyCount);
766 }
767
768
773 public boolean getExpireable() {
774 return _passwordPolicy.getExpireable();
775 }
776
777
782 public boolean isExpireable() {
783 return _passwordPolicy.isExpireable();
784 }
785
786
791 public void setExpireable(boolean expireable) {
792 _passwordPolicy.setExpireable(expireable);
793 }
794
795
800 public long getMaxAge() {
801 return _passwordPolicy.getMaxAge();
802 }
803
804
809 public void setMaxAge(long maxAge) {
810 _passwordPolicy.setMaxAge(maxAge);
811 }
812
813
818 public long getWarningTime() {
819 return _passwordPolicy.getWarningTime();
820 }
821
822
827 public void setWarningTime(long warningTime) {
828 _passwordPolicy.setWarningTime(warningTime);
829 }
830
831
836 public int getGraceLimit() {
837 return _passwordPolicy.getGraceLimit();
838 }
839
840
845 public void setGraceLimit(int graceLimit) {
846 _passwordPolicy.setGraceLimit(graceLimit);
847 }
848
849
854 public boolean getLockout() {
855 return _passwordPolicy.getLockout();
856 }
857
858
863 public boolean isLockout() {
864 return _passwordPolicy.isLockout();
865 }
866
867
872 public void setLockout(boolean lockout) {
873 _passwordPolicy.setLockout(lockout);
874 }
875
876
881 public int getMaxFailure() {
882 return _passwordPolicy.getMaxFailure();
883 }
884
885
890 public void setMaxFailure(int maxFailure) {
891 _passwordPolicy.setMaxFailure(maxFailure);
892 }
893
894
899 public long getLockoutDuration() {
900 return _passwordPolicy.getLockoutDuration();
901 }
902
903
908 public void setLockoutDuration(long lockoutDuration) {
909 _passwordPolicy.setLockoutDuration(lockoutDuration);
910 }
911
912
917 public boolean getRequireUnlock() {
918 return _passwordPolicy.getRequireUnlock();
919 }
920
921
926 public boolean isRequireUnlock() {
927 return _passwordPolicy.isRequireUnlock();
928 }
929
930
935 public void setRequireUnlock(boolean requireUnlock) {
936 _passwordPolicy.setRequireUnlock(requireUnlock);
937 }
938
939
944 public long getResetFailureCount() {
945 return _passwordPolicy.getResetFailureCount();
946 }
947
948
953 public void setResetFailureCount(long resetFailureCount) {
954 _passwordPolicy.setResetFailureCount(resetFailureCount);
955 }
956
957
962 public long getResetTicketMaxAge() {
963 return _passwordPolicy.getResetTicketMaxAge();
964 }
965
966
971 public void setResetTicketMaxAge(long resetTicketMaxAge) {
972 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
973 }
974
975 public boolean isNew() {
976 return _passwordPolicy.isNew();
977 }
978
979 public void setNew(boolean n) {
980 _passwordPolicy.setNew(n);
981 }
982
983 public boolean isCachedModel() {
984 return _passwordPolicy.isCachedModel();
985 }
986
987 public void setCachedModel(boolean cachedModel) {
988 _passwordPolicy.setCachedModel(cachedModel);
989 }
990
991 public boolean isEscapedModel() {
992 return _passwordPolicy.isEscapedModel();
993 }
994
995 public java.io.Serializable getPrimaryKeyObj() {
996 return _passwordPolicy.getPrimaryKeyObj();
997 }
998
999 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1000 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
1001 }
1002
1003 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1004 return _passwordPolicy.getExpandoBridge();
1005 }
1006
1007 public void setExpandoBridgeAttributes(
1008 com.liferay.portal.service.ServiceContext serviceContext) {
1009 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
1010 }
1011
1012 @Override
1013 public java.lang.Object clone() {
1014 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
1015 }
1016
1017 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
1018 return _passwordPolicy.compareTo(passwordPolicy);
1019 }
1020
1021 @Override
1022 public int hashCode() {
1023 return _passwordPolicy.hashCode();
1024 }
1025
1026 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1027 return _passwordPolicy.toCacheModel();
1028 }
1029
1030 public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1031 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1032 }
1033
1034 public com.liferay.portal.model.PasswordPolicy toUnescapedModel() {
1035 return new PasswordPolicyWrapper(_passwordPolicy.toUnescapedModel());
1036 }
1037
1038 @Override
1039 public java.lang.String toString() {
1040 return _passwordPolicy.toString();
1041 }
1042
1043 public java.lang.String toXmlString() {
1044 return _passwordPolicy.toXmlString();
1045 }
1046
1047 public void persist()
1048 throws com.liferay.portal.kernel.exception.SystemException {
1049 _passwordPolicy.persist();
1050 }
1051
1052 @Override
1053 public boolean equals(Object obj) {
1054 if (this == obj) {
1055 return true;
1056 }
1057
1058 if (!(obj instanceof PasswordPolicyWrapper)) {
1059 return false;
1060 }
1061
1062 PasswordPolicyWrapper passwordPolicyWrapper = (PasswordPolicyWrapper)obj;
1063
1064 if (Validator.equals(_passwordPolicy,
1065 passwordPolicyWrapper._passwordPolicy)) {
1066 return true;
1067 }
1068
1069 return false;
1070 }
1071
1072
1075 public PasswordPolicy getWrappedPasswordPolicy() {
1076 return _passwordPolicy;
1077 }
1078
1079 public PasswordPolicy getWrappedModel() {
1080 return _passwordPolicy;
1081 }
1082
1083 public void resetOriginalValues() {
1084 _passwordPolicy.resetOriginalValues();
1085 }
1086
1087 private PasswordPolicy _passwordPolicy;
1088 }