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