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="PasswordTrackerSoap.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.PasswordTrackerServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portal.service.http.PasswordTrackerServiceSoap
46   * @generated
47   */
48  public class PasswordTrackerSoap implements Serializable {
49      public static PasswordTrackerSoap toSoapModel(PasswordTracker model) {
50          PasswordTrackerSoap soapModel = new PasswordTrackerSoap();
51  
52          soapModel.setPasswordTrackerId(model.getPasswordTrackerId());
53          soapModel.setUserId(model.getUserId());
54          soapModel.setCreateDate(model.getCreateDate());
55          soapModel.setPassword(model.getPassword());
56  
57          return soapModel;
58      }
59  
60      public static PasswordTrackerSoap[] toSoapModels(PasswordTracker[] models) {
61          PasswordTrackerSoap[] soapModels = new PasswordTrackerSoap[models.length];
62  
63          for (int i = 0; i < models.length; i++) {
64              soapModels[i] = toSoapModel(models[i]);
65          }
66  
67          return soapModels;
68      }
69  
70      public static PasswordTrackerSoap[][] toSoapModels(
71          PasswordTracker[][] models) {
72          PasswordTrackerSoap[][] soapModels = null;
73  
74          if (models.length > 0) {
75              soapModels = new PasswordTrackerSoap[models.length][models[0].length];
76          }
77          else {
78              soapModels = new PasswordTrackerSoap[0][0];
79          }
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModels(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static PasswordTrackerSoap[] toSoapModels(
89          List<PasswordTracker> models) {
90          List<PasswordTrackerSoap> soapModels = new ArrayList<PasswordTrackerSoap>(models.size());
91  
92          for (PasswordTracker model : models) {
93              soapModels.add(toSoapModel(model));
94          }
95  
96          return soapModels.toArray(new PasswordTrackerSoap[soapModels.size()]);
97      }
98  
99      public PasswordTrackerSoap() {
100     }
101 
102     public long getPrimaryKey() {
103         return _passwordTrackerId;
104     }
105 
106     public void setPrimaryKey(long pk) {
107         setPasswordTrackerId(pk);
108     }
109 
110     public long getPasswordTrackerId() {
111         return _passwordTrackerId;
112     }
113 
114     public void setPasswordTrackerId(long passwordTrackerId) {
115         _passwordTrackerId = passwordTrackerId;
116     }
117 
118     public long getUserId() {
119         return _userId;
120     }
121 
122     public void setUserId(long userId) {
123         _userId = userId;
124     }
125 
126     public Date getCreateDate() {
127         return _createDate;
128     }
129 
130     public void setCreateDate(Date createDate) {
131         _createDate = createDate;
132     }
133 
134     public String getPassword() {
135         return _password;
136     }
137 
138     public void setPassword(String password) {
139         _password = password;
140     }
141 
142     private long _passwordTrackerId;
143     private long _userId;
144     private Date _createDate;
145     private String _password;
146 }