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