001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.tasks.service.http.TasksReviewServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.tasks.service.http.TasksReviewServiceSoap
031     * @generated
032     */
033    public class TasksReviewSoap implements Serializable {
034            public static TasksReviewSoap toSoapModel(TasksReview model) {
035                    TasksReviewSoap soapModel = new TasksReviewSoap();
036    
037                    soapModel.setReviewId(model.getReviewId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setProposalId(model.getProposalId());
045                    soapModel.setAssignedByUserId(model.getAssignedByUserId());
046                    soapModel.setAssignedByUserName(model.getAssignedByUserName());
047                    soapModel.setStage(model.getStage());
048                    soapModel.setCompleted(model.getCompleted());
049                    soapModel.setRejected(model.getRejected());
050    
051                    return soapModel;
052            }
053    
054            public static TasksReviewSoap[] toSoapModels(TasksReview[] models) {
055                    TasksReviewSoap[] soapModels = new TasksReviewSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static TasksReviewSoap[][] toSoapModels(TasksReview[][] models) {
065                    TasksReviewSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new TasksReviewSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new TasksReviewSoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static TasksReviewSoap[] toSoapModels(List<TasksReview> models) {
082                    List<TasksReviewSoap> soapModels = new ArrayList<TasksReviewSoap>(models.size());
083    
084                    for (TasksReview model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new TasksReviewSoap[soapModels.size()]);
089            }
090    
091            public TasksReviewSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _reviewId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setReviewId(pk);
100            }
101    
102            public long getReviewId() {
103                    return _reviewId;
104            }
105    
106            public void setReviewId(long reviewId) {
107                    _reviewId = reviewId;
108            }
109    
110            public long getGroupId() {
111                    return _groupId;
112            }
113    
114            public void setGroupId(long groupId) {
115                    _groupId = groupId;
116            }
117    
118            public long getCompanyId() {
119                    return _companyId;
120            }
121    
122            public void setCompanyId(long companyId) {
123                    _companyId = companyId;
124            }
125    
126            public long getUserId() {
127                    return _userId;
128            }
129    
130            public void setUserId(long userId) {
131                    _userId = userId;
132            }
133    
134            public String getUserName() {
135                    return _userName;
136            }
137    
138            public void setUserName(String userName) {
139                    _userName = userName;
140            }
141    
142            public Date getCreateDate() {
143                    return _createDate;
144            }
145    
146            public void setCreateDate(Date createDate) {
147                    _createDate = createDate;
148            }
149    
150            public Date getModifiedDate() {
151                    return _modifiedDate;
152            }
153    
154            public void setModifiedDate(Date modifiedDate) {
155                    _modifiedDate = modifiedDate;
156            }
157    
158            public long getProposalId() {
159                    return _proposalId;
160            }
161    
162            public void setProposalId(long proposalId) {
163                    _proposalId = proposalId;
164            }
165    
166            public long getAssignedByUserId() {
167                    return _assignedByUserId;
168            }
169    
170            public void setAssignedByUserId(long assignedByUserId) {
171                    _assignedByUserId = assignedByUserId;
172            }
173    
174            public String getAssignedByUserName() {
175                    return _assignedByUserName;
176            }
177    
178            public void setAssignedByUserName(String assignedByUserName) {
179                    _assignedByUserName = assignedByUserName;
180            }
181    
182            public int getStage() {
183                    return _stage;
184            }
185    
186            public void setStage(int stage) {
187                    _stage = stage;
188            }
189    
190            public boolean getCompleted() {
191                    return _completed;
192            }
193    
194            public boolean isCompleted() {
195                    return _completed;
196            }
197    
198            public void setCompleted(boolean completed) {
199                    _completed = completed;
200            }
201    
202            public boolean getRejected() {
203                    return _rejected;
204            }
205    
206            public boolean isRejected() {
207                    return _rejected;
208            }
209    
210            public void setRejected(boolean rejected) {
211                    _rejected = rejected;
212            }
213    
214            private long _reviewId;
215            private long _groupId;
216            private long _companyId;
217            private long _userId;
218            private String _userName;
219            private Date _createDate;
220            private Date _modifiedDate;
221            private long _proposalId;
222            private long _assignedByUserId;
223            private String _assignedByUserName;
224            private int _stage;
225            private boolean _completed;
226            private boolean _rejected;
227    }