001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.PasswordPolicyServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portal.service.http.PasswordPolicyServiceSoap
028     * @generated
029     */
030    public class PasswordPolicySoap implements Serializable {
031            public static PasswordPolicySoap toSoapModel(PasswordPolicy model) {
032                    PasswordPolicySoap soapModel = new PasswordPolicySoap();
033    
034                    soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setUserName(model.getUserName());
038                    soapModel.setCreateDate(model.getCreateDate());
039                    soapModel.setModifiedDate(model.getModifiedDate());
040                    soapModel.setDefaultPolicy(model.getDefaultPolicy());
041                    soapModel.setName(model.getName());
042                    soapModel.setDescription(model.getDescription());
043                    soapModel.setChangeable(model.getChangeable());
044                    soapModel.setChangeRequired(model.getChangeRequired());
045                    soapModel.setMinAge(model.getMinAge());
046                    soapModel.setCheckSyntax(model.getCheckSyntax());
047                    soapModel.setAllowDictionaryWords(model.getAllowDictionaryWords());
048                    soapModel.setMinAlphanumeric(model.getMinAlphanumeric());
049                    soapModel.setMinLength(model.getMinLength());
050                    soapModel.setMinLowerCase(model.getMinLowerCase());
051                    soapModel.setMinNumbers(model.getMinNumbers());
052                    soapModel.setMinSymbols(model.getMinSymbols());
053                    soapModel.setMinUpperCase(model.getMinUpperCase());
054                    soapModel.setHistory(model.getHistory());
055                    soapModel.setHistoryCount(model.getHistoryCount());
056                    soapModel.setExpireable(model.getExpireable());
057                    soapModel.setMaxAge(model.getMaxAge());
058                    soapModel.setWarningTime(model.getWarningTime());
059                    soapModel.setGraceLimit(model.getGraceLimit());
060                    soapModel.setLockout(model.getLockout());
061                    soapModel.setMaxFailure(model.getMaxFailure());
062                    soapModel.setLockoutDuration(model.getLockoutDuration());
063                    soapModel.setRequireUnlock(model.getRequireUnlock());
064                    soapModel.setResetFailureCount(model.getResetFailureCount());
065                    soapModel.setResetTicketMaxAge(model.getResetTicketMaxAge());
066    
067                    return soapModel;
068            }
069    
070            public static PasswordPolicySoap[] toSoapModels(PasswordPolicy[] models) {
071                    PasswordPolicySoap[] soapModels = new PasswordPolicySoap[models.length];
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModel(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static PasswordPolicySoap[][] toSoapModels(PasswordPolicy[][] models) {
081                    PasswordPolicySoap[][] soapModels = null;
082    
083                    if (models.length > 0) {
084                            soapModels = new PasswordPolicySoap[models.length][models[0].length];
085                    }
086                    else {
087                            soapModels = new PasswordPolicySoap[0][0];
088                    }
089    
090                    for (int i = 0; i < models.length; i++) {
091                            soapModels[i] = toSoapModels(models[i]);
092                    }
093    
094                    return soapModels;
095            }
096    
097            public static PasswordPolicySoap[] toSoapModels(List<PasswordPolicy> models) {
098                    List<PasswordPolicySoap> soapModels = new ArrayList<PasswordPolicySoap>(models.size());
099    
100                    for (PasswordPolicy model : models) {
101                            soapModels.add(toSoapModel(model));
102                    }
103    
104                    return soapModels.toArray(new PasswordPolicySoap[soapModels.size()]);
105            }
106    
107            public PasswordPolicySoap() {
108            }
109    
110            public long getPrimaryKey() {
111                    return _passwordPolicyId;
112            }
113    
114            public void setPrimaryKey(long pk) {
115                    setPasswordPolicyId(pk);
116            }
117    
118            public long getPasswordPolicyId() {
119                    return _passwordPolicyId;
120            }
121    
122            public void setPasswordPolicyId(long passwordPolicyId) {
123                    _passwordPolicyId = passwordPolicyId;
124            }
125    
126            public long getCompanyId() {
127                    return _companyId;
128            }
129    
130            public void setCompanyId(long companyId) {
131                    _companyId = companyId;
132            }
133    
134            public long getUserId() {
135                    return _userId;
136            }
137    
138            public void setUserId(long userId) {
139                    _userId = userId;
140            }
141    
142            public String getUserName() {
143                    return _userName;
144            }
145    
146            public void setUserName(String userName) {
147                    _userName = userName;
148            }
149    
150            public Date getCreateDate() {
151                    return _createDate;
152            }
153    
154            public void setCreateDate(Date createDate) {
155                    _createDate = createDate;
156            }
157    
158            public Date getModifiedDate() {
159                    return _modifiedDate;
160            }
161    
162            public void setModifiedDate(Date modifiedDate) {
163                    _modifiedDate = modifiedDate;
164            }
165    
166            public boolean getDefaultPolicy() {
167                    return _defaultPolicy;
168            }
169    
170            public boolean isDefaultPolicy() {
171                    return _defaultPolicy;
172            }
173    
174            public void setDefaultPolicy(boolean defaultPolicy) {
175                    _defaultPolicy = defaultPolicy;
176            }
177    
178            public String getName() {
179                    return _name;
180            }
181    
182            public void setName(String name) {
183                    _name = name;
184            }
185    
186            public String getDescription() {
187                    return _description;
188            }
189    
190            public void setDescription(String description) {
191                    _description = description;
192            }
193    
194            public boolean getChangeable() {
195                    return _changeable;
196            }
197    
198            public boolean isChangeable() {
199                    return _changeable;
200            }
201    
202            public void setChangeable(boolean changeable) {
203                    _changeable = changeable;
204            }
205    
206            public boolean getChangeRequired() {
207                    return _changeRequired;
208            }
209    
210            public boolean isChangeRequired() {
211                    return _changeRequired;
212            }
213    
214            public void setChangeRequired(boolean changeRequired) {
215                    _changeRequired = changeRequired;
216            }
217    
218            public long getMinAge() {
219                    return _minAge;
220            }
221    
222            public void setMinAge(long minAge) {
223                    _minAge = minAge;
224            }
225    
226            public boolean getCheckSyntax() {
227                    return _checkSyntax;
228            }
229    
230            public boolean isCheckSyntax() {
231                    return _checkSyntax;
232            }
233    
234            public void setCheckSyntax(boolean checkSyntax) {
235                    _checkSyntax = checkSyntax;
236            }
237    
238            public boolean getAllowDictionaryWords() {
239                    return _allowDictionaryWords;
240            }
241    
242            public boolean isAllowDictionaryWords() {
243                    return _allowDictionaryWords;
244            }
245    
246            public void setAllowDictionaryWords(boolean allowDictionaryWords) {
247                    _allowDictionaryWords = allowDictionaryWords;
248            }
249    
250            public int getMinAlphanumeric() {
251                    return _minAlphanumeric;
252            }
253    
254            public void setMinAlphanumeric(int minAlphanumeric) {
255                    _minAlphanumeric = minAlphanumeric;
256            }
257    
258            public int getMinLength() {
259                    return _minLength;
260            }
261    
262            public void setMinLength(int minLength) {
263                    _minLength = minLength;
264            }
265    
266            public int getMinLowerCase() {
267                    return _minLowerCase;
268            }
269    
270            public void setMinLowerCase(int minLowerCase) {
271                    _minLowerCase = minLowerCase;
272            }
273    
274            public int getMinNumbers() {
275                    return _minNumbers;
276            }
277    
278            public void setMinNumbers(int minNumbers) {
279                    _minNumbers = minNumbers;
280            }
281    
282            public int getMinSymbols() {
283                    return _minSymbols;
284            }
285    
286            public void setMinSymbols(int minSymbols) {
287                    _minSymbols = minSymbols;
288            }
289    
290            public int getMinUpperCase() {
291                    return _minUpperCase;
292            }
293    
294            public void setMinUpperCase(int minUpperCase) {
295                    _minUpperCase = minUpperCase;
296            }
297    
298            public boolean getHistory() {
299                    return _history;
300            }
301    
302            public boolean isHistory() {
303                    return _history;
304            }
305    
306            public void setHistory(boolean history) {
307                    _history = history;
308            }
309    
310            public int getHistoryCount() {
311                    return _historyCount;
312            }
313    
314            public void setHistoryCount(int historyCount) {
315                    _historyCount = historyCount;
316            }
317    
318            public boolean getExpireable() {
319                    return _expireable;
320            }
321    
322            public boolean isExpireable() {
323                    return _expireable;
324            }
325    
326            public void setExpireable(boolean expireable) {
327                    _expireable = expireable;
328            }
329    
330            public long getMaxAge() {
331                    return _maxAge;
332            }
333    
334            public void setMaxAge(long maxAge) {
335                    _maxAge = maxAge;
336            }
337    
338            public long getWarningTime() {
339                    return _warningTime;
340            }
341    
342            public void setWarningTime(long warningTime) {
343                    _warningTime = warningTime;
344            }
345    
346            public int getGraceLimit() {
347                    return _graceLimit;
348            }
349    
350            public void setGraceLimit(int graceLimit) {
351                    _graceLimit = graceLimit;
352            }
353    
354            public boolean getLockout() {
355                    return _lockout;
356            }
357    
358            public boolean isLockout() {
359                    return _lockout;
360            }
361    
362            public void setLockout(boolean lockout) {
363                    _lockout = lockout;
364            }
365    
366            public int getMaxFailure() {
367                    return _maxFailure;
368            }
369    
370            public void setMaxFailure(int maxFailure) {
371                    _maxFailure = maxFailure;
372            }
373    
374            public long getLockoutDuration() {
375                    return _lockoutDuration;
376            }
377    
378            public void setLockoutDuration(long lockoutDuration) {
379                    _lockoutDuration = lockoutDuration;
380            }
381    
382            public boolean getRequireUnlock() {
383                    return _requireUnlock;
384            }
385    
386            public boolean isRequireUnlock() {
387                    return _requireUnlock;
388            }
389    
390            public void setRequireUnlock(boolean requireUnlock) {
391                    _requireUnlock = requireUnlock;
392            }
393    
394            public long getResetFailureCount() {
395                    return _resetFailureCount;
396            }
397    
398            public void setResetFailureCount(long resetFailureCount) {
399                    _resetFailureCount = resetFailureCount;
400            }
401    
402            public long getResetTicketMaxAge() {
403                    return _resetTicketMaxAge;
404            }
405    
406            public void setResetTicketMaxAge(long resetTicketMaxAge) {
407                    _resetTicketMaxAge = resetTicketMaxAge;
408            }
409    
410            private long _passwordPolicyId;
411            private long _companyId;
412            private long _userId;
413            private String _userName;
414            private Date _createDate;
415            private Date _modifiedDate;
416            private boolean _defaultPolicy;
417            private String _name;
418            private String _description;
419            private boolean _changeable;
420            private boolean _changeRequired;
421            private long _minAge;
422            private boolean _checkSyntax;
423            private boolean _allowDictionaryWords;
424            private int _minAlphanumeric;
425            private int _minLength;
426            private int _minLowerCase;
427            private int _minNumbers;
428            private int _minSymbols;
429            private int _minUpperCase;
430            private boolean _history;
431            private int _historyCount;
432            private boolean _expireable;
433            private long _maxAge;
434            private long _warningTime;
435            private int _graceLimit;
436            private boolean _lockout;
437            private int _maxFailure;
438            private long _lockoutDuration;
439            private boolean _requireUnlock;
440            private long _resetFailureCount;
441            private long _resetTicketMaxAge;
442    }