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