1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.portlet.tasks.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="TasksProposalSoap.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   * <code>com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap
47   *
48   */
49  public class TasksProposalSoap implements Serializable {
50      public static TasksProposalSoap toSoapModel(TasksProposal model) {
51          TasksProposalSoap soapModel = new TasksProposalSoap();
52  
53          soapModel.setProposalId(model.getProposalId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setClassNameId(model.getClassNameId());
61          soapModel.setClassPK(model.getClassPK());
62          soapModel.setName(model.getName());
63          soapModel.setDescription(model.getDescription());
64          soapModel.setPublishDate(model.getPublishDate());
65          soapModel.setDueDate(model.getDueDate());
66  
67          return soapModel;
68      }
69  
70      public static TasksProposalSoap[] toSoapModels(List<TasksProposal> models) {
71          List<TasksProposalSoap> soapModels = new ArrayList<TasksProposalSoap>(models.size());
72  
73          for (TasksProposal model : models) {
74              soapModels.add(toSoapModel(model));
75          }
76  
77          return soapModels.toArray(new TasksProposalSoap[soapModels.size()]);
78      }
79  
80      public TasksProposalSoap() {
81      }
82  
83      public long getPrimaryKey() {
84          return _proposalId;
85      }
86  
87      public void setPrimaryKey(long pk) {
88          setProposalId(pk);
89      }
90  
91      public long getProposalId() {
92          return _proposalId;
93      }
94  
95      public void setProposalId(long proposalId) {
96          _proposalId = proposalId;
97      }
98  
99      public long getGroupId() {
100         return _groupId;
101     }
102 
103     public void setGroupId(long groupId) {
104         _groupId = groupId;
105     }
106 
107     public long getCompanyId() {
108         return _companyId;
109     }
110 
111     public void setCompanyId(long companyId) {
112         _companyId = companyId;
113     }
114 
115     public long getUserId() {
116         return _userId;
117     }
118 
119     public void setUserId(long userId) {
120         _userId = userId;
121     }
122 
123     public String getUserName() {
124         return _userName;
125     }
126 
127     public void setUserName(String userName) {
128         _userName = userName;
129     }
130 
131     public Date getCreateDate() {
132         return _createDate;
133     }
134 
135     public void setCreateDate(Date createDate) {
136         _createDate = createDate;
137     }
138 
139     public Date getModifiedDate() {
140         return _modifiedDate;
141     }
142 
143     public void setModifiedDate(Date modifiedDate) {
144         _modifiedDate = modifiedDate;
145     }
146 
147     public long getClassNameId() {
148         return _classNameId;
149     }
150 
151     public void setClassNameId(long classNameId) {
152         _classNameId = classNameId;
153     }
154 
155     public String getClassPK() {
156         return _classPK;
157     }
158 
159     public void setClassPK(String classPK) {
160         _classPK = classPK;
161     }
162 
163     public String getName() {
164         return _name;
165     }
166 
167     public void setName(String name) {
168         _name = name;
169     }
170 
171     public String getDescription() {
172         return _description;
173     }
174 
175     public void setDescription(String description) {
176         _description = description;
177     }
178 
179     public Date getPublishDate() {
180         return _publishDate;
181     }
182 
183     public void setPublishDate(Date publishDate) {
184         _publishDate = publishDate;
185     }
186 
187     public Date getDueDate() {
188         return _dueDate;
189     }
190 
191     public void setDueDate(Date dueDate) {
192         _dueDate = dueDate;
193     }
194 
195     private long _proposalId;
196     private long _groupId;
197     private long _companyId;
198     private long _userId;
199     private String _userName;
200     private Date _createDate;
201     private Date _modifiedDate;
202     private long _classNameId;
203     private String _classPK;
204     private String _name;
205     private String _description;
206     private Date _publishDate;
207     private Date _dueDate;
208 }