001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.tasks.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap
028     * @generated
029     */
030    public class TasksProposalSoap implements Serializable {
031            public static TasksProposalSoap toSoapModel(TasksProposal model) {
032                    TasksProposalSoap soapModel = new TasksProposalSoap();
033    
034                    soapModel.setProposalId(model.getProposalId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setName(model.getName());
044                    soapModel.setDescription(model.getDescription());
045                    soapModel.setPublishDate(model.getPublishDate());
046                    soapModel.setDueDate(model.getDueDate());
047    
048                    return soapModel;
049            }
050    
051            public static TasksProposalSoap[] toSoapModels(TasksProposal[] models) {
052                    TasksProposalSoap[] soapModels = new TasksProposalSoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static TasksProposalSoap[][] toSoapModels(TasksProposal[][] models) {
062                    TasksProposalSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new TasksProposalSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new TasksProposalSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static TasksProposalSoap[] toSoapModels(List<TasksProposal> models) {
079                    List<TasksProposalSoap> soapModels = new ArrayList<TasksProposalSoap>(models.size());
080    
081                    for (TasksProposal model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new TasksProposalSoap[soapModels.size()]);
086            }
087    
088            public TasksProposalSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _proposalId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setProposalId(pk);
097            }
098    
099            public long getProposalId() {
100                    return _proposalId;
101            }
102    
103            public void setProposalId(long proposalId) {
104                    _proposalId = proposalId;
105            }
106    
107            public long getGroupId() {
108                    return _groupId;
109            }
110    
111            public void setGroupId(long groupId) {
112                    _groupId = groupId;
113            }
114    
115            public long getCompanyId() {
116                    return _companyId;
117            }
118    
119            public void setCompanyId(long companyId) {
120                    _companyId = companyId;
121            }
122    
123            public long getUserId() {
124                    return _userId;
125            }
126    
127            public void setUserId(long userId) {
128                    _userId = userId;
129            }
130    
131            public String getUserName() {
132                    return _userName;
133            }
134    
135            public void setUserName(String userName) {
136                    _userName = userName;
137            }
138    
139            public Date getCreateDate() {
140                    return _createDate;
141            }
142    
143            public void setCreateDate(Date createDate) {
144                    _createDate = createDate;
145            }
146    
147            public Date getModifiedDate() {
148                    return _modifiedDate;
149            }
150    
151            public void setModifiedDate(Date modifiedDate) {
152                    _modifiedDate = modifiedDate;
153            }
154    
155            public long getClassNameId() {
156                    return _classNameId;
157            }
158    
159            public void setClassNameId(long classNameId) {
160                    _classNameId = classNameId;
161            }
162    
163            public String getClassPK() {
164                    return _classPK;
165            }
166    
167            public void setClassPK(String classPK) {
168                    _classPK = classPK;
169            }
170    
171            public String getName() {
172                    return _name;
173            }
174    
175            public void setName(String name) {
176                    _name = name;
177            }
178    
179            public String getDescription() {
180                    return _description;
181            }
182    
183            public void setDescription(String description) {
184                    _description = description;
185            }
186    
187            public Date getPublishDate() {
188                    return _publishDate;
189            }
190    
191            public void setPublishDate(Date publishDate) {
192                    _publishDate = publishDate;
193            }
194    
195            public Date getDueDate() {
196                    return _dueDate;
197            }
198    
199            public void setDueDate(Date dueDate) {
200                    _dueDate = dueDate;
201            }
202    
203            private long _proposalId;
204            private long _groupId;
205            private long _companyId;
206            private long _userId;
207            private String _userName;
208            private Date _createDate;
209            private Date _modifiedDate;
210            private long _classNameId;
211            private String _classPK;
212            private String _name;
213            private String _description;
214            private Date _publishDate;
215            private Date _dueDate;
216    }