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