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