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