1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="PasswordPolicySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portal.service.http.PasswordPolicyServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portal.service.http.PasswordPolicyServiceSoap
38   * @generated
39   */
40  public class PasswordPolicySoap implements Serializable {
41      public static PasswordPolicySoap toSoapModel(PasswordPolicy model) {
42          PasswordPolicySoap soapModel = new PasswordPolicySoap();
43  
44          soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setUserId(model.getUserId());
47          soapModel.setUserName(model.getUserName());
48          soapModel.setCreateDate(model.getCreateDate());
49          soapModel.setModifiedDate(model.getModifiedDate());
50          soapModel.setDefaultPolicy(model.getDefaultPolicy());
51          soapModel.setName(model.getName());
52          soapModel.setDescription(model.getDescription());
53          soapModel.setChangeable(model.getChangeable());
54          soapModel.setChangeRequired(model.getChangeRequired());
55          soapModel.setMinAge(model.getMinAge());
56          soapModel.setCheckSyntax(model.getCheckSyntax());
57          soapModel.setAllowDictionaryWords(model.getAllowDictionaryWords());
58          soapModel.setMinAlphanumeric(model.getMinAlphanumeric());
59          soapModel.setMinLength(model.getMinLength());
60          soapModel.setMinLowerCase(model.getMinLowerCase());
61          soapModel.setMinNumbers(model.getMinNumbers());
62          soapModel.setMinSymbols(model.getMinSymbols());
63          soapModel.setMinUpperCase(model.getMinUpperCase());
64          soapModel.setHistory(model.getHistory());
65          soapModel.setHistoryCount(model.getHistoryCount());
66          soapModel.setExpireable(model.getExpireable());
67          soapModel.setMaxAge(model.getMaxAge());
68          soapModel.setWarningTime(model.getWarningTime());
69          soapModel.setGraceLimit(model.getGraceLimit());
70          soapModel.setLockout(model.getLockout());
71          soapModel.setMaxFailure(model.getMaxFailure());
72          soapModel.setLockoutDuration(model.getLockoutDuration());
73          soapModel.setRequireUnlock(model.getRequireUnlock());
74          soapModel.setResetFailureCount(model.getResetFailureCount());
75          soapModel.setResetTicketMaxAge(model.getResetTicketMaxAge());
76  
77          return soapModel;
78      }
79  
80      public static PasswordPolicySoap[] toSoapModels(PasswordPolicy[] models) {
81          PasswordPolicySoap[] soapModels = new PasswordPolicySoap[models.length];
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModel(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static PasswordPolicySoap[][] toSoapModels(PasswordPolicy[][] models) {
91          PasswordPolicySoap[][] soapModels = null;
92  
93          if (models.length > 0) {
94              soapModels = new PasswordPolicySoap[models.length][models[0].length];
95          }
96          else {
97              soapModels = new PasswordPolicySoap[0][0];
98          }
99  
100         for (int i = 0; i < models.length; i++) {
101             soapModels[i] = toSoapModels(models[i]);
102         }
103 
104         return soapModels;
105     }
106 
107     public static PasswordPolicySoap[] toSoapModels(List<PasswordPolicy> models) {
108         List<PasswordPolicySoap> soapModels = new ArrayList<PasswordPolicySoap>(models.size());
109 
110         for (PasswordPolicy model : models) {
111             soapModels.add(toSoapModel(model));
112         }
113 
114         return soapModels.toArray(new PasswordPolicySoap[soapModels.size()]);
115     }
116 
117     public PasswordPolicySoap() {
118     }
119 
120     public long getPrimaryKey() {
121         return _passwordPolicyId;
122     }
123 
124     public void setPrimaryKey(long pk) {
125         setPasswordPolicyId(pk);
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 boolean getHistory() {
309         return _history;
310     }
311 
312     public boolean isHistory() {
313         return _history;
314     }
315 
316     public void setHistory(boolean history) {
317         _history = history;
318     }
319 
320     public int getHistoryCount() {
321         return _historyCount;
322     }
323 
324     public void setHistoryCount(int historyCount) {
325         _historyCount = historyCount;
326     }
327 
328     public boolean getExpireable() {
329         return _expireable;
330     }
331 
332     public boolean isExpireable() {
333         return _expireable;
334     }
335 
336     public void setExpireable(boolean expireable) {
337         _expireable = expireable;
338     }
339 
340     public long getMaxAge() {
341         return _maxAge;
342     }
343 
344     public void setMaxAge(long maxAge) {
345         _maxAge = maxAge;
346     }
347 
348     public long getWarningTime() {
349         return _warningTime;
350     }
351 
352     public void setWarningTime(long warningTime) {
353         _warningTime = warningTime;
354     }
355 
356     public int getGraceLimit() {
357         return _graceLimit;
358     }
359 
360     public void setGraceLimit(int graceLimit) {
361         _graceLimit = graceLimit;
362     }
363 
364     public boolean getLockout() {
365         return _lockout;
366     }
367 
368     public boolean isLockout() {
369         return _lockout;
370     }
371 
372     public void setLockout(boolean lockout) {
373         _lockout = lockout;
374     }
375 
376     public int getMaxFailure() {
377         return _maxFailure;
378     }
379 
380     public void setMaxFailure(int maxFailure) {
381         _maxFailure = maxFailure;
382     }
383 
384     public long getLockoutDuration() {
385         return _lockoutDuration;
386     }
387 
388     public void setLockoutDuration(long lockoutDuration) {
389         _lockoutDuration = lockoutDuration;
390     }
391 
392     public boolean getRequireUnlock() {
393         return _requireUnlock;
394     }
395 
396     public boolean isRequireUnlock() {
397         return _requireUnlock;
398     }
399 
400     public void setRequireUnlock(boolean requireUnlock) {
401         _requireUnlock = requireUnlock;
402     }
403 
404     public long getResetFailureCount() {
405         return _resetFailureCount;
406     }
407 
408     public void setResetFailureCount(long resetFailureCount) {
409         _resetFailureCount = resetFailureCount;
410     }
411 
412     public long getResetTicketMaxAge() {
413         return _resetTicketMaxAge;
414     }
415 
416     public void setResetTicketMaxAge(long resetTicketMaxAge) {
417         _resetTicketMaxAge = resetTicketMaxAge;
418     }
419 
420     private long _passwordPolicyId;
421     private long _companyId;
422     private long _userId;
423     private String _userName;
424     private Date _createDate;
425     private Date _modifiedDate;
426     private boolean _defaultPolicy;
427     private String _name;
428     private String _description;
429     private boolean _changeable;
430     private boolean _changeRequired;
431     private long _minAge;
432     private boolean _checkSyntax;
433     private boolean _allowDictionaryWords;
434     private int _minAlphanumeric;
435     private int _minLength;
436     private int _minLowerCase;
437     private int _minNumbers;
438     private int _minSymbols;
439     private int _minUpperCase;
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 }