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