001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="PasswordPolicySoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.PasswordPolicyServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.PasswordPolicyServiceSoap
045: *
046: */
047: public class PasswordPolicySoap implements Serializable {
048: public static PasswordPolicySoap toSoapModel(PasswordPolicy model) {
049: PasswordPolicySoap soapModel = new PasswordPolicySoap();
050:
051: soapModel.setPasswordPolicyId(model.getPasswordPolicyId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setUserName(model.getUserName());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setDefaultPolicy(model.getDefaultPolicy());
058: soapModel.setName(model.getName());
059: soapModel.setDescription(model.getDescription());
060: soapModel.setChangeable(model.getChangeable());
061: soapModel.setChangeRequired(model.getChangeRequired());
062: soapModel.setMinAge(model.getMinAge());
063: soapModel.setCheckSyntax(model.getCheckSyntax());
064: soapModel.setAllowDictionaryWords(model
065: .getAllowDictionaryWords());
066: soapModel.setMinLength(model.getMinLength());
067: soapModel.setHistory(model.getHistory());
068: soapModel.setHistoryCount(model.getHistoryCount());
069: soapModel.setExpireable(model.getExpireable());
070: soapModel.setMaxAge(model.getMaxAge());
071: soapModel.setWarningTime(model.getWarningTime());
072: soapModel.setGraceLimit(model.getGraceLimit());
073: soapModel.setLockout(model.getLockout());
074: soapModel.setMaxFailure(model.getMaxFailure());
075: soapModel.setLockoutDuration(model.getLockoutDuration());
076: soapModel.setRequireUnlock(model.getRequireUnlock());
077: soapModel.setResetFailureCount(model.getResetFailureCount());
078:
079: return soapModel;
080: }
081:
082: public static PasswordPolicySoap[] toSoapModels(List models) {
083: List soapModels = new ArrayList(models.size());
084:
085: for (int i = 0; i < models.size(); i++) {
086: PasswordPolicy model = (PasswordPolicy) models.get(i);
087:
088: soapModels.add(toSoapModel(model));
089: }
090:
091: return (PasswordPolicySoap[]) soapModels
092: .toArray(new PasswordPolicySoap[0]);
093: }
094:
095: public PasswordPolicySoap() {
096: }
097:
098: public long getPrimaryKey() {
099: 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: }
|