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.setMinLength(model.getMinLength());
59          soapModel.setHistory(model.getHistory());
60          soapModel.setHistoryCount(model.getHistoryCount());
61          soapModel.setExpireable(model.getExpireable());
62          soapModel.setMaxAge(model.getMaxAge());
63          soapModel.setWarningTime(model.getWarningTime());
64          soapModel.setGraceLimit(model.getGraceLimit());
65          soapModel.setLockout(model.getLockout());
66          soapModel.setMaxFailure(model.getMaxFailure());
67          soapModel.setLockoutDuration(model.getLockoutDuration());
68          soapModel.setRequireUnlock(model.getRequireUnlock());
69          soapModel.setResetFailureCount(model.getResetFailureCount());
70  
71          return soapModel;
72      }
73  
74      public static PasswordPolicySoap[] toSoapModels(PasswordPolicy[] models) {
75          PasswordPolicySoap[] soapModels = new PasswordPolicySoap[models.length];
76  
77          for (int i = 0; i < models.length; i++) {
78              soapModels[i] = toSoapModel(models[i]);
79          }
80  
81          return soapModels;
82      }
83  
84      public static PasswordPolicySoap[][] toSoapModels(PasswordPolicy[][] models) {
85          PasswordPolicySoap[][] soapModels = null;
86  
87          if (models.length > 0) {
88              soapModels = new PasswordPolicySoap[models.length][models[0].length];
89          }
90          else {
91              soapModels = new PasswordPolicySoap[0][0];
92          }
93  
94          for (int i = 0; i < models.length; i++) {
95              soapModels[i] = toSoapModels(models[i]);
96          }
97  
98          return soapModels;
99      }
100 
101     public static PasswordPolicySoap[] toSoapModels(List<PasswordPolicy> models) {
102         List<PasswordPolicySoap> soapModels = new ArrayList<PasswordPolicySoap>(models.size());
103 
104         for (PasswordPolicy model : models) {
105             soapModels.add(toSoapModel(model));
106         }
107 
108         return soapModels.toArray(new PasswordPolicySoap[soapModels.size()]);
109     }
110 
111     public PasswordPolicySoap() {
112     }
113 
114     public long getPrimaryKey() {
115         return _passwordPolicyId;
116     }
117 
118     public void setPrimaryKey(long pk) {
119         setPasswordPolicyId(pk);
120     }
121 
122     public long getPasswordPolicyId() {
123         return _passwordPolicyId;
124     }
125 
126     public void setPasswordPolicyId(long passwordPolicyId) {
127         _passwordPolicyId = passwordPolicyId;
128     }
129 
130     public long getCompanyId() {
131         return _companyId;
132     }
133 
134     public void setCompanyId(long companyId) {
135         _companyId = companyId;
136     }
137 
138     public long getUserId() {
139         return _userId;
140     }
141 
142     public void setUserId(long userId) {
143         _userId = userId;
144     }
145 
146     public String getUserName() {
147         return _userName;
148     }
149 
150     public void setUserName(String userName) {
151         _userName = userName;
152     }
153 
154     public Date getCreateDate() {
155         return _createDate;
156     }
157 
158     public void setCreateDate(Date createDate) {
159         _createDate = createDate;
160     }
161 
162     public Date getModifiedDate() {
163         return _modifiedDate;
164     }
165 
166     public void setModifiedDate(Date modifiedDate) {
167         _modifiedDate = modifiedDate;
168     }
169 
170     public boolean getDefaultPolicy() {
171         return _defaultPolicy;
172     }
173 
174     public boolean isDefaultPolicy() {
175         return _defaultPolicy;
176     }
177 
178     public void setDefaultPolicy(boolean defaultPolicy) {
179         _defaultPolicy = defaultPolicy;
180     }
181 
182     public String getName() {
183         return _name;
184     }
185 
186     public void setName(String name) {
187         _name = name;
188     }
189 
190     public String getDescription() {
191         return _description;
192     }
193 
194     public void setDescription(String description) {
195         _description = description;
196     }
197 
198     public boolean getChangeable() {
199         return _changeable;
200     }
201 
202     public boolean isChangeable() {
203         return _changeable;
204     }
205 
206     public void setChangeable(boolean changeable) {
207         _changeable = changeable;
208     }
209 
210     public boolean getChangeRequired() {
211         return _changeRequired;
212     }
213 
214     public boolean isChangeRequired() {
215         return _changeRequired;
216     }
217 
218     public void setChangeRequired(boolean changeRequired) {
219         _changeRequired = changeRequired;
220     }
221 
222     public long getMinAge() {
223         return _minAge;
224     }
225 
226     public void setMinAge(long minAge) {
227         _minAge = minAge;
228     }
229 
230     public boolean getCheckSyntax() {
231         return _checkSyntax;
232     }
233 
234     public boolean isCheckSyntax() {
235         return _checkSyntax;
236     }
237 
238     public void setCheckSyntax(boolean checkSyntax) {
239         _checkSyntax = checkSyntax;
240     }
241 
242     public boolean getAllowDictionaryWords() {
243         return _allowDictionaryWords;
244     }
245 
246     public boolean isAllowDictionaryWords() {
247         return _allowDictionaryWords;
248     }
249 
250     public void setAllowDictionaryWords(boolean allowDictionaryWords) {
251         _allowDictionaryWords = allowDictionaryWords;
252     }
253 
254     public int getMinLength() {
255         return _minLength;
256     }
257 
258     public void setMinLength(int minLength) {
259         _minLength = minLength;
260     }
261 
262     public boolean getHistory() {
263         return _history;
264     }
265 
266     public boolean isHistory() {
267         return _history;
268     }
269 
270     public void setHistory(boolean history) {
271         _history = history;
272     }
273 
274     public int getHistoryCount() {
275         return _historyCount;
276     }
277 
278     public void setHistoryCount(int historyCount) {
279         _historyCount = historyCount;
280     }
281 
282     public boolean getExpireable() {
283         return _expireable;
284     }
285 
286     public boolean isExpireable() {
287         return _expireable;
288     }
289 
290     public void setExpireable(boolean expireable) {
291         _expireable = expireable;
292     }
293 
294     public long getMaxAge() {
295         return _maxAge;
296     }
297 
298     public void setMaxAge(long maxAge) {
299         _maxAge = maxAge;
300     }
301 
302     public long getWarningTime() {
303         return _warningTime;
304     }
305 
306     public void setWarningTime(long warningTime) {
307         _warningTime = warningTime;
308     }
309 
310     public int getGraceLimit() {
311         return _graceLimit;
312     }
313 
314     public void setGraceLimit(int graceLimit) {
315         _graceLimit = graceLimit;
316     }
317 
318     public boolean getLockout() {
319         return _lockout;
320     }
321 
322     public boolean isLockout() {
323         return _lockout;
324     }
325 
326     public void setLockout(boolean lockout) {
327         _lockout = lockout;
328     }
329 
330     public int getMaxFailure() {
331         return _maxFailure;
332     }
333 
334     public void setMaxFailure(int maxFailure) {
335         _maxFailure = maxFailure;
336     }
337 
338     public long getLockoutDuration() {
339         return _lockoutDuration;
340     }
341 
342     public void setLockoutDuration(long lockoutDuration) {
343         _lockoutDuration = lockoutDuration;
344     }
345 
346     public boolean getRequireUnlock() {
347         return _requireUnlock;
348     }
349 
350     public boolean isRequireUnlock() {
351         return _requireUnlock;
352     }
353 
354     public void setRequireUnlock(boolean requireUnlock) {
355         _requireUnlock = requireUnlock;
356     }
357 
358     public long getResetFailureCount() {
359         return _resetFailureCount;
360     }
361 
362     public void setResetFailureCount(long resetFailureCount) {
363         _resetFailureCount = resetFailureCount;
364     }
365 
366     private long _passwordPolicyId;
367     private long _companyId;
368     private long _userId;
369     private String _userName;
370     private Date _createDate;
371     private Date _modifiedDate;
372     private boolean _defaultPolicy;
373     private String _name;
374     private String _description;
375     private boolean _changeable;
376     private boolean _changeRequired;
377     private long _minAge;
378     private boolean _checkSyntax;
379     private boolean _allowDictionaryWords;
380     private int _minLength;
381     private boolean _history;
382     private int _historyCount;
383     private boolean _expireable;
384     private long _maxAge;
385     private long _warningTime;
386     private int _graceLimit;
387     private boolean _lockout;
388     private int _maxFailure;
389     private long _lockoutDuration;
390     private boolean _requireUnlock;
391     private long _resetFailureCount;
392 }