001
014
015 package com.liferay.portal.model;
016
017 import java.util.Date;
018 import java.util.HashMap;
019 import java.util.Map;
020
021
030 public class PasswordPolicyWrapper implements PasswordPolicy,
031 ModelWrapper<PasswordPolicy> {
032 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) {
033 _passwordPolicy = passwordPolicy;
034 }
035
036 public Class<?> getModelClass() {
037 return PasswordPolicy.class;
038 }
039
040 public String getModelClassName() {
041 return PasswordPolicy.class.getName();
042 }
043
044 public Map<String, Object> getModelAttributes() {
045 Map<String, Object> attributes = new HashMap<String, Object>();
046
047 attributes.put("passwordPolicyId", getPasswordPolicyId());
048 attributes.put("companyId", getCompanyId());
049 attributes.put("userId", getUserId());
050 attributes.put("userName", getUserName());
051 attributes.put("createDate", getCreateDate());
052 attributes.put("modifiedDate", getModifiedDate());
053 attributes.put("defaultPolicy", getDefaultPolicy());
054 attributes.put("name", getName());
055 attributes.put("description", getDescription());
056 attributes.put("changeable", getChangeable());
057 attributes.put("changeRequired", getChangeRequired());
058 attributes.put("minAge", getMinAge());
059 attributes.put("checkSyntax", getCheckSyntax());
060 attributes.put("allowDictionaryWords", getAllowDictionaryWords());
061 attributes.put("minAlphanumeric", getMinAlphanumeric());
062 attributes.put("minLength", getMinLength());
063 attributes.put("minLowerCase", getMinLowerCase());
064 attributes.put("minNumbers", getMinNumbers());
065 attributes.put("minSymbols", getMinSymbols());
066 attributes.put("minUpperCase", getMinUpperCase());
067 attributes.put("history", getHistory());
068 attributes.put("historyCount", getHistoryCount());
069 attributes.put("expireable", getExpireable());
070 attributes.put("maxAge", getMaxAge());
071 attributes.put("warningTime", getWarningTime());
072 attributes.put("graceLimit", getGraceLimit());
073 attributes.put("lockout", getLockout());
074 attributes.put("maxFailure", getMaxFailure());
075 attributes.put("lockoutDuration", getLockoutDuration());
076 attributes.put("requireUnlock", getRequireUnlock());
077 attributes.put("resetFailureCount", getResetFailureCount());
078 attributes.put("resetTicketMaxAge", getResetTicketMaxAge());
079
080 return attributes;
081 }
082
083 public void setModelAttributes(Map<String, Object> attributes) {
084 Long passwordPolicyId = (Long)attributes.get("passwordPolicyId");
085
086 if (passwordPolicyId != null) {
087 setPasswordPolicyId(passwordPolicyId);
088 }
089
090 Long companyId = (Long)attributes.get("companyId");
091
092 if (companyId != null) {
093 setCompanyId(companyId);
094 }
095
096 Long userId = (Long)attributes.get("userId");
097
098 if (userId != null) {
099 setUserId(userId);
100 }
101
102 String userName = (String)attributes.get("userName");
103
104 if (userName != null) {
105 setUserName(userName);
106 }
107
108 Date createDate = (Date)attributes.get("createDate");
109
110 if (createDate != null) {
111 setCreateDate(createDate);
112 }
113
114 Date modifiedDate = (Date)attributes.get("modifiedDate");
115
116 if (modifiedDate != null) {
117 setModifiedDate(modifiedDate);
118 }
119
120 Boolean defaultPolicy = (Boolean)attributes.get("defaultPolicy");
121
122 if (defaultPolicy != null) {
123 setDefaultPolicy(defaultPolicy);
124 }
125
126 String name = (String)attributes.get("name");
127
128 if (name != null) {
129 setName(name);
130 }
131
132 String description = (String)attributes.get("description");
133
134 if (description != null) {
135 setDescription(description);
136 }
137
138 Boolean changeable = (Boolean)attributes.get("changeable");
139
140 if (changeable != null) {
141 setChangeable(changeable);
142 }
143
144 Boolean changeRequired = (Boolean)attributes.get("changeRequired");
145
146 if (changeRequired != null) {
147 setChangeRequired(changeRequired);
148 }
149
150 Long minAge = (Long)attributes.get("minAge");
151
152 if (minAge != null) {
153 setMinAge(minAge);
154 }
155
156 Boolean checkSyntax = (Boolean)attributes.get("checkSyntax");
157
158 if (checkSyntax != null) {
159 setCheckSyntax(checkSyntax);
160 }
161
162 Boolean allowDictionaryWords = (Boolean)attributes.get(
163 "allowDictionaryWords");
164
165 if (allowDictionaryWords != null) {
166 setAllowDictionaryWords(allowDictionaryWords);
167 }
168
169 Integer minAlphanumeric = (Integer)attributes.get("minAlphanumeric");
170
171 if (minAlphanumeric != null) {
172 setMinAlphanumeric(minAlphanumeric);
173 }
174
175 Integer minLength = (Integer)attributes.get("minLength");
176
177 if (minLength != null) {
178 setMinLength(minLength);
179 }
180
181 Integer minLowerCase = (Integer)attributes.get("minLowerCase");
182
183 if (minLowerCase != null) {
184 setMinLowerCase(minLowerCase);
185 }
186
187 Integer minNumbers = (Integer)attributes.get("minNumbers");
188
189 if (minNumbers != null) {
190 setMinNumbers(minNumbers);
191 }
192
193 Integer minSymbols = (Integer)attributes.get("minSymbols");
194
195 if (minSymbols != null) {
196 setMinSymbols(minSymbols);
197 }
198
199 Integer minUpperCase = (Integer)attributes.get("minUpperCase");
200
201 if (minUpperCase != null) {
202 setMinUpperCase(minUpperCase);
203 }
204
205 Boolean history = (Boolean)attributes.get("history");
206
207 if (history != null) {
208 setHistory(history);
209 }
210
211 Integer historyCount = (Integer)attributes.get("historyCount");
212
213 if (historyCount != null) {
214 setHistoryCount(historyCount);
215 }
216
217 Boolean expireable = (Boolean)attributes.get("expireable");
218
219 if (expireable != null) {
220 setExpireable(expireable);
221 }
222
223 Long maxAge = (Long)attributes.get("maxAge");
224
225 if (maxAge != null) {
226 setMaxAge(maxAge);
227 }
228
229 Long warningTime = (Long)attributes.get("warningTime");
230
231 if (warningTime != null) {
232 setWarningTime(warningTime);
233 }
234
235 Integer graceLimit = (Integer)attributes.get("graceLimit");
236
237 if (graceLimit != null) {
238 setGraceLimit(graceLimit);
239 }
240
241 Boolean lockout = (Boolean)attributes.get("lockout");
242
243 if (lockout != null) {
244 setLockout(lockout);
245 }
246
247 Integer maxFailure = (Integer)attributes.get("maxFailure");
248
249 if (maxFailure != null) {
250 setMaxFailure(maxFailure);
251 }
252
253 Long lockoutDuration = (Long)attributes.get("lockoutDuration");
254
255 if (lockoutDuration != null) {
256 setLockoutDuration(lockoutDuration);
257 }
258
259 Boolean requireUnlock = (Boolean)attributes.get("requireUnlock");
260
261 if (requireUnlock != null) {
262 setRequireUnlock(requireUnlock);
263 }
264
265 Long resetFailureCount = (Long)attributes.get("resetFailureCount");
266
267 if (resetFailureCount != null) {
268 setResetFailureCount(resetFailureCount);
269 }
270
271 Long resetTicketMaxAge = (Long)attributes.get("resetTicketMaxAge");
272
273 if (resetTicketMaxAge != null) {
274 setResetTicketMaxAge(resetTicketMaxAge);
275 }
276 }
277
278
283 public long getPrimaryKey() {
284 return _passwordPolicy.getPrimaryKey();
285 }
286
287
292 public void setPrimaryKey(long primaryKey) {
293 _passwordPolicy.setPrimaryKey(primaryKey);
294 }
295
296
301 public long getPasswordPolicyId() {
302 return _passwordPolicy.getPasswordPolicyId();
303 }
304
305
310 public void setPasswordPolicyId(long passwordPolicyId) {
311 _passwordPolicy.setPasswordPolicyId(passwordPolicyId);
312 }
313
314
319 public long getCompanyId() {
320 return _passwordPolicy.getCompanyId();
321 }
322
323
328 public void setCompanyId(long companyId) {
329 _passwordPolicy.setCompanyId(companyId);
330 }
331
332
337 public long getUserId() {
338 return _passwordPolicy.getUserId();
339 }
340
341
346 public void setUserId(long userId) {
347 _passwordPolicy.setUserId(userId);
348 }
349
350
356 public java.lang.String getUserUuid()
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return _passwordPolicy.getUserUuid();
359 }
360
361
366 public void setUserUuid(java.lang.String userUuid) {
367 _passwordPolicy.setUserUuid(userUuid);
368 }
369
370
375 public java.lang.String getUserName() {
376 return _passwordPolicy.getUserName();
377 }
378
379
384 public void setUserName(java.lang.String userName) {
385 _passwordPolicy.setUserName(userName);
386 }
387
388
393 public java.util.Date getCreateDate() {
394 return _passwordPolicy.getCreateDate();
395 }
396
397
402 public void setCreateDate(java.util.Date createDate) {
403 _passwordPolicy.setCreateDate(createDate);
404 }
405
406
411 public java.util.Date getModifiedDate() {
412 return _passwordPolicy.getModifiedDate();
413 }
414
415
420 public void setModifiedDate(java.util.Date modifiedDate) {
421 _passwordPolicy.setModifiedDate(modifiedDate);
422 }
423
424
429 public boolean getDefaultPolicy() {
430 return _passwordPolicy.getDefaultPolicy();
431 }
432
433
438 public boolean isDefaultPolicy() {
439 return _passwordPolicy.isDefaultPolicy();
440 }
441
442
447 public void setDefaultPolicy(boolean defaultPolicy) {
448 _passwordPolicy.setDefaultPolicy(defaultPolicy);
449 }
450
451
456 public java.lang.String getName() {
457 return _passwordPolicy.getName();
458 }
459
460
465 public void setName(java.lang.String name) {
466 _passwordPolicy.setName(name);
467 }
468
469
474 public java.lang.String getDescription() {
475 return _passwordPolicy.getDescription();
476 }
477
478
483 public void setDescription(java.lang.String description) {
484 _passwordPolicy.setDescription(description);
485 }
486
487
492 public boolean getChangeable() {
493 return _passwordPolicy.getChangeable();
494 }
495
496
501 public boolean isChangeable() {
502 return _passwordPolicy.isChangeable();
503 }
504
505
510 public void setChangeable(boolean changeable) {
511 _passwordPolicy.setChangeable(changeable);
512 }
513
514
519 public boolean getChangeRequired() {
520 return _passwordPolicy.getChangeRequired();
521 }
522
523
528 public boolean isChangeRequired() {
529 return _passwordPolicy.isChangeRequired();
530 }
531
532
537 public void setChangeRequired(boolean changeRequired) {
538 _passwordPolicy.setChangeRequired(changeRequired);
539 }
540
541
546 public long getMinAge() {
547 return _passwordPolicy.getMinAge();
548 }
549
550
555 public void setMinAge(long minAge) {
556 _passwordPolicy.setMinAge(minAge);
557 }
558
559
564 public boolean getCheckSyntax() {
565 return _passwordPolicy.getCheckSyntax();
566 }
567
568
573 public boolean isCheckSyntax() {
574 return _passwordPolicy.isCheckSyntax();
575 }
576
577
582 public void setCheckSyntax(boolean checkSyntax) {
583 _passwordPolicy.setCheckSyntax(checkSyntax);
584 }
585
586
591 public boolean getAllowDictionaryWords() {
592 return _passwordPolicy.getAllowDictionaryWords();
593 }
594
595
600 public boolean isAllowDictionaryWords() {
601 return _passwordPolicy.isAllowDictionaryWords();
602 }
603
604
609 public void setAllowDictionaryWords(boolean allowDictionaryWords) {
610 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords);
611 }
612
613
618 public int getMinAlphanumeric() {
619 return _passwordPolicy.getMinAlphanumeric();
620 }
621
622
627 public void setMinAlphanumeric(int minAlphanumeric) {
628 _passwordPolicy.setMinAlphanumeric(minAlphanumeric);
629 }
630
631
636 public int getMinLength() {
637 return _passwordPolicy.getMinLength();
638 }
639
640
645 public void setMinLength(int minLength) {
646 _passwordPolicy.setMinLength(minLength);
647 }
648
649
654 public int getMinLowerCase() {
655 return _passwordPolicy.getMinLowerCase();
656 }
657
658
663 public void setMinLowerCase(int minLowerCase) {
664 _passwordPolicy.setMinLowerCase(minLowerCase);
665 }
666
667
672 public int getMinNumbers() {
673 return _passwordPolicy.getMinNumbers();
674 }
675
676
681 public void setMinNumbers(int minNumbers) {
682 _passwordPolicy.setMinNumbers(minNumbers);
683 }
684
685
690 public int getMinSymbols() {
691 return _passwordPolicy.getMinSymbols();
692 }
693
694
699 public void setMinSymbols(int minSymbols) {
700 _passwordPolicy.setMinSymbols(minSymbols);
701 }
702
703
708 public int getMinUpperCase() {
709 return _passwordPolicy.getMinUpperCase();
710 }
711
712
717 public void setMinUpperCase(int minUpperCase) {
718 _passwordPolicy.setMinUpperCase(minUpperCase);
719 }
720
721
726 public boolean getHistory() {
727 return _passwordPolicy.getHistory();
728 }
729
730
735 public boolean isHistory() {
736 return _passwordPolicy.isHistory();
737 }
738
739
744 public void setHistory(boolean history) {
745 _passwordPolicy.setHistory(history);
746 }
747
748
753 public int getHistoryCount() {
754 return _passwordPolicy.getHistoryCount();
755 }
756
757
762 public void setHistoryCount(int historyCount) {
763 _passwordPolicy.setHistoryCount(historyCount);
764 }
765
766
771 public boolean getExpireable() {
772 return _passwordPolicy.getExpireable();
773 }
774
775
780 public boolean isExpireable() {
781 return _passwordPolicy.isExpireable();
782 }
783
784
789 public void setExpireable(boolean expireable) {
790 _passwordPolicy.setExpireable(expireable);
791 }
792
793
798 public long getMaxAge() {
799 return _passwordPolicy.getMaxAge();
800 }
801
802
807 public void setMaxAge(long maxAge) {
808 _passwordPolicy.setMaxAge(maxAge);
809 }
810
811
816 public long getWarningTime() {
817 return _passwordPolicy.getWarningTime();
818 }
819
820
825 public void setWarningTime(long warningTime) {
826 _passwordPolicy.setWarningTime(warningTime);
827 }
828
829
834 public int getGraceLimit() {
835 return _passwordPolicy.getGraceLimit();
836 }
837
838
843 public void setGraceLimit(int graceLimit) {
844 _passwordPolicy.setGraceLimit(graceLimit);
845 }
846
847
852 public boolean getLockout() {
853 return _passwordPolicy.getLockout();
854 }
855
856
861 public boolean isLockout() {
862 return _passwordPolicy.isLockout();
863 }
864
865
870 public void setLockout(boolean lockout) {
871 _passwordPolicy.setLockout(lockout);
872 }
873
874
879 public int getMaxFailure() {
880 return _passwordPolicy.getMaxFailure();
881 }
882
883
888 public void setMaxFailure(int maxFailure) {
889 _passwordPolicy.setMaxFailure(maxFailure);
890 }
891
892
897 public long getLockoutDuration() {
898 return _passwordPolicy.getLockoutDuration();
899 }
900
901
906 public void setLockoutDuration(long lockoutDuration) {
907 _passwordPolicy.setLockoutDuration(lockoutDuration);
908 }
909
910
915 public boolean getRequireUnlock() {
916 return _passwordPolicy.getRequireUnlock();
917 }
918
919
924 public boolean isRequireUnlock() {
925 return _passwordPolicy.isRequireUnlock();
926 }
927
928
933 public void setRequireUnlock(boolean requireUnlock) {
934 _passwordPolicy.setRequireUnlock(requireUnlock);
935 }
936
937
942 public long getResetFailureCount() {
943 return _passwordPolicy.getResetFailureCount();
944 }
945
946
951 public void setResetFailureCount(long resetFailureCount) {
952 _passwordPolicy.setResetFailureCount(resetFailureCount);
953 }
954
955
960 public long getResetTicketMaxAge() {
961 return _passwordPolicy.getResetTicketMaxAge();
962 }
963
964
969 public void setResetTicketMaxAge(long resetTicketMaxAge) {
970 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge);
971 }
972
973 public boolean isNew() {
974 return _passwordPolicy.isNew();
975 }
976
977 public void setNew(boolean n) {
978 _passwordPolicy.setNew(n);
979 }
980
981 public boolean isCachedModel() {
982 return _passwordPolicy.isCachedModel();
983 }
984
985 public void setCachedModel(boolean cachedModel) {
986 _passwordPolicy.setCachedModel(cachedModel);
987 }
988
989 public boolean isEscapedModel() {
990 return _passwordPolicy.isEscapedModel();
991 }
992
993 public java.io.Serializable getPrimaryKeyObj() {
994 return _passwordPolicy.getPrimaryKeyObj();
995 }
996
997 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
998 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj);
999 }
1000
1001 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1002 return _passwordPolicy.getExpandoBridge();
1003 }
1004
1005 public void setExpandoBridgeAttributes(
1006 com.liferay.portal.service.ServiceContext serviceContext) {
1007 _passwordPolicy.setExpandoBridgeAttributes(serviceContext);
1008 }
1009
1010 @Override
1011 public java.lang.Object clone() {
1012 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone());
1013 }
1014
1015 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) {
1016 return _passwordPolicy.compareTo(passwordPolicy);
1017 }
1018
1019 @Override
1020 public int hashCode() {
1021 return _passwordPolicy.hashCode();
1022 }
1023
1024 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() {
1025 return _passwordPolicy.toCacheModel();
1026 }
1027
1028 public com.liferay.portal.model.PasswordPolicy toEscapedModel() {
1029 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel());
1030 }
1031
1032 @Override
1033 public java.lang.String toString() {
1034 return _passwordPolicy.toString();
1035 }
1036
1037 public java.lang.String toXmlString() {
1038 return _passwordPolicy.toXmlString();
1039 }
1040
1041 public void persist()
1042 throws com.liferay.portal.kernel.exception.SystemException {
1043 _passwordPolicy.persist();
1044 }
1045
1046
1049 public PasswordPolicy getWrappedPasswordPolicy() {
1050 return _passwordPolicy;
1051 }
1052
1053 public PasswordPolicy getWrappedModel() {
1054 return _passwordPolicy;
1055 }
1056
1057 public void resetOriginalValues() {
1058 _passwordPolicy.resetOriginalValues();
1059 }
1060
1061 private PasswordPolicy _passwordPolicy;
1062 }