1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="PasswordPolicySoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be overwritten
36   * the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by <code>com.liferay.portal.service.http.PasswordPolicyServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portal.service.http.PasswordPolicyServiceSoap
46   *
47   */
48  public class PasswordPolicySoap implements Serializable {
49      public static PasswordPolicySoap toSoapModel(PasswordPolicy model) {
50          PasswordPolicySoap soapModel = new PasswordPolicySoap();
51          soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setUserId(model.getUserId());
54          soapModel.setUserName(model.getUserName());
55          soapModel.setCreateDate(model.getCreateDate());
56          soapModel.setModifiedDate(model.getModifiedDate());
57          soapModel.setDefaultPolicy(model.getDefaultPolicy());
58          soapModel.setName(model.getName());
59          soapModel.setDescription(model.getDescription());
60          soapModel.setChangeable(model.getChangeable());
61          soapModel.setChangeRequired(model.getChangeRequired());
62          soapModel.setMinAge(model.getMinAge());
63          soapModel.setCheckSyntax(model.getCheckSyntax());
64          soapModel.setAllowDictionaryWords(model.getAllowDictionaryWords());
65          soapModel.setMinLength(model.getMinLength());
66          soapModel.setHistory(model.getHistory());
67          soapModel.setHistoryCount(model.getHistoryCount());
68          soapModel.setExpireable(model.getExpireable());
69          soapModel.setMaxAge(model.getMaxAge());
70          soapModel.setWarningTime(model.getWarningTime());
71          soapModel.setGraceLimit(model.getGraceLimit());
72          soapModel.setLockout(model.getLockout());
73          soapModel.setMaxFailure(model.getMaxFailure());
74          soapModel.setLockoutDuration(model.getLockoutDuration());
75          soapModel.setRequireUnlock(model.getRequireUnlock());
76          soapModel.setResetFailureCount(model.getResetFailureCount());
77  
78          return soapModel;
79      }
80  
81      public static PasswordPolicySoap[] toSoapModels(List models) {
82          List soapModels = new ArrayList(models.size());
83  
84          for (int i = 0; i < models.size(); i++) {
85              PasswordPolicy model = (PasswordPolicy)models.get(i);
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return (PasswordPolicySoap[])soapModels.toArray(new PasswordPolicySoap[0]);
90      }
91  
92      public PasswordPolicySoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _passwordPolicyId;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setPasswordPolicyId(pk);
101     }
102 
103     public long getPasswordPolicyId() {
104         return _passwordPolicyId;
105     }
106 
107     public void setPasswordPolicyId(long passwordPolicyId) {
108         _passwordPolicyId = passwordPolicyId;
109     }
110 
111     public long getCompanyId() {
112         return _companyId;
113     }
114 
115     public void setCompanyId(long companyId) {
116         _companyId = companyId;
117     }
118 
119     public long getUserId() {
120         return _userId;
121     }
122 
123     public void setUserId(long userId) {
124         _userId = userId;
125     }
126 
127     public String getUserName() {
128         return _userName;
129     }
130 
131     public void setUserName(String userName) {
132         _userName = userName;
133     }
134 
135     public Date getCreateDate() {
136         return _createDate;
137     }
138 
139     public void setCreateDate(Date createDate) {
140         _createDate = createDate;
141     }
142 
143     public Date getModifiedDate() {
144         return _modifiedDate;
145     }
146 
147     public void setModifiedDate(Date modifiedDate) {
148         _modifiedDate = modifiedDate;
149     }
150 
151     public boolean getDefaultPolicy() {
152         return _defaultPolicy;
153     }
154 
155     public boolean isDefaultPolicy() {
156         return _defaultPolicy;
157     }
158 
159     public void setDefaultPolicy(boolean defaultPolicy) {
160         _defaultPolicy = defaultPolicy;
161     }
162 
163     public String getName() {
164         return _name;
165     }
166 
167     public void setName(String name) {
168         _name = name;
169     }
170 
171     public String getDescription() {
172         return _description;
173     }
174 
175     public void setDescription(String description) {
176         _description = description;
177     }
178 
179     public boolean getChangeable() {
180         return _changeable;
181     }
182 
183     public boolean isChangeable() {
184         return _changeable;
185     }
186 
187     public void setChangeable(boolean changeable) {
188         _changeable = changeable;
189     }
190 
191     public boolean getChangeRequired() {
192         return _changeRequired;
193     }
194 
195     public boolean isChangeRequired() {
196         return _changeRequired;
197     }
198 
199     public void setChangeRequired(boolean changeRequired) {
200         _changeRequired = changeRequired;
201     }
202 
203     public long getMinAge() {
204         return _minAge;
205     }
206 
207     public void setMinAge(long minAge) {
208         _minAge = minAge;
209     }
210 
211     public boolean getCheckSyntax() {
212         return _checkSyntax;
213     }
214 
215     public boolean isCheckSyntax() {
216         return _checkSyntax;
217     }
218 
219     public void setCheckSyntax(boolean checkSyntax) {
220         _checkSyntax = checkSyntax;
221     }
222 
223     public boolean getAllowDictionaryWords() {
224         return _allowDictionaryWords;
225     }
226 
227     public boolean isAllowDictionaryWords() {
228         return _allowDictionaryWords;
229     }
230 
231     public void setAllowDictionaryWords(boolean allowDictionaryWords) {
232         _allowDictionaryWords = allowDictionaryWords;
233     }
234 
235     public int getMinLength() {
236         return _minLength;
237     }
238 
239     public void setMinLength(int minLength) {
240         _minLength = minLength;
241     }
242 
243     public boolean getHistory() {
244         return _history;
245     }
246 
247     public boolean isHistory() {
248         return _history;
249     }
250 
251     public void setHistory(boolean history) {
252         _history = history;
253     }
254 
255     public int getHistoryCount() {
256         return _historyCount;
257     }
258 
259     public void setHistoryCount(int historyCount) {
260         _historyCount = historyCount;
261     }
262 
263     public boolean getExpireable() {
264         return _expireable;
265     }
266 
267     public boolean isExpireable() {
268         return _expireable;
269     }
270 
271     public void setExpireable(boolean expireable) {
272         _expireable = expireable;
273     }
274 
275     public long getMaxAge() {
276         return _maxAge;
277     }
278 
279     public void setMaxAge(long maxAge) {
280         _maxAge = maxAge;
281     }
282 
283     public long getWarningTime() {
284         return _warningTime;
285     }
286 
287     public void setWarningTime(long warningTime) {
288         _warningTime = warningTime;
289     }
290 
291     public int getGraceLimit() {
292         return _graceLimit;
293     }
294 
295     public void setGraceLimit(int graceLimit) {
296         _graceLimit = graceLimit;
297     }
298 
299     public boolean getLockout() {
300         return _lockout;
301     }
302 
303     public boolean isLockout() {
304         return _lockout;
305     }
306 
307     public void setLockout(boolean lockout) {
308         _lockout = lockout;
309     }
310 
311     public int getMaxFailure() {
312         return _maxFailure;
313     }
314 
315     public void setMaxFailure(int maxFailure) {
316         _maxFailure = maxFailure;
317     }
318 
319     public long getLockoutDuration() {
320         return _lockoutDuration;
321     }
322 
323     public void setLockoutDuration(long lockoutDuration) {
324         _lockoutDuration = lockoutDuration;
325     }
326 
327     public boolean getRequireUnlock() {
328         return _requireUnlock;
329     }
330 
331     public boolean isRequireUnlock() {
332         return _requireUnlock;
333     }
334 
335     public void setRequireUnlock(boolean requireUnlock) {
336         _requireUnlock = requireUnlock;
337     }
338 
339     public long getResetFailureCount() {
340         return _resetFailureCount;
341     }
342 
343     public void setResetFailureCount(long resetFailureCount) {
344         _resetFailureCount = resetFailureCount;
345     }
346 
347     private long _passwordPolicyId;
348     private long _companyId;
349     private long _userId;
350     private String _userName;
351     private Date _createDate;
352     private Date _modifiedDate;
353     private boolean _defaultPolicy;
354     private String _name;
355     private String _description;
356     private boolean _changeable;
357     private boolean _changeRequired;
358     private long _minAge;
359     private boolean _checkSyntax;
360     private boolean _allowDictionaryWords;
361     private int _minLength;
362     private boolean _history;
363     private int _historyCount;
364     private boolean _expireable;
365     private long _maxAge;
366     private long _warningTime;
367     private int _graceLimit;
368     private boolean _lockout;
369     private int _maxFailure;
370     private long _lockoutDuration;
371     private boolean _requireUnlock;
372     private long _resetFailureCount;
373 }