1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="PasswordTrackerSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portal.service.http.PasswordTrackerServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portal.service.http.PasswordTrackerServiceSoap
38   * @generated
39   */
40  public class PasswordTrackerSoap implements Serializable {
41      public static PasswordTrackerSoap toSoapModel(PasswordTracker model) {
42          PasswordTrackerSoap soapModel = new PasswordTrackerSoap();
43  
44          soapModel.setPasswordTrackerId(model.getPasswordTrackerId());
45          soapModel.setUserId(model.getUserId());
46          soapModel.setCreateDate(model.getCreateDate());
47          soapModel.setPassword(model.getPassword());
48  
49          return soapModel;
50      }
51  
52      public static PasswordTrackerSoap[] toSoapModels(PasswordTracker[] models) {
53          PasswordTrackerSoap[] soapModels = new PasswordTrackerSoap[models.length];
54  
55          for (int i = 0; i < models.length; i++) {
56              soapModels[i] = toSoapModel(models[i]);
57          }
58  
59          return soapModels;
60      }
61  
62      public static PasswordTrackerSoap[][] toSoapModels(
63          PasswordTracker[][] models) {
64          PasswordTrackerSoap[][] soapModels = null;
65  
66          if (models.length > 0) {
67              soapModels = new PasswordTrackerSoap[models.length][models[0].length];
68          }
69          else {
70              soapModels = new PasswordTrackerSoap[0][0];
71          }
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModels(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static PasswordTrackerSoap[] toSoapModels(
81          List<PasswordTracker> models) {
82          List<PasswordTrackerSoap> soapModels = new ArrayList<PasswordTrackerSoap>(models.size());
83  
84          for (PasswordTracker model : models) {
85              soapModels.add(toSoapModel(model));
86          }
87  
88          return soapModels.toArray(new PasswordTrackerSoap[soapModels.size()]);
89      }
90  
91      public PasswordTrackerSoap() {
92      }
93  
94      public long getPrimaryKey() {
95          return _passwordTrackerId;
96      }
97  
98      public void setPrimaryKey(long pk) {
99          setPasswordTrackerId(pk);
100     }
101 
102     public long getPasswordTrackerId() {
103         return _passwordTrackerId;
104     }
105 
106     public void setPasswordTrackerId(long passwordTrackerId) {
107         _passwordTrackerId = passwordTrackerId;
108     }
109 
110     public long getUserId() {
111         return _userId;
112     }
113 
114     public void setUserId(long userId) {
115         _userId = userId;
116     }
117 
118     public Date getCreateDate() {
119         return _createDate;
120     }
121 
122     public void setCreateDate(Date createDate) {
123         _createDate = createDate;
124     }
125 
126     public String getPassword() {
127         return _password;
128     }
129 
130     public void setPassword(String password) {
131         _password = password;
132     }
133 
134     private long _passwordTrackerId;
135     private long _userId;
136     private Date _createDate;
137     private String _password;
138 }