001    /**
002     * Copyright (c) 2000-2013 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.softwarecatalog.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.softwarecatalog.service.http.SCProductEntryServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap
028     * @generated
029     */
030    public class SCProductEntrySoap implements Serializable {
031            public static SCProductEntrySoap toSoapModel(SCProductEntry model) {
032                    SCProductEntrySoap soapModel = new SCProductEntrySoap();
033    
034                    soapModel.setProductEntryId(model.getProductEntryId());
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.setName(model.getName());
042                    soapModel.setType(model.getType());
043                    soapModel.setTags(model.getTags());
044                    soapModel.setShortDescription(model.getShortDescription());
045                    soapModel.setLongDescription(model.getLongDescription());
046                    soapModel.setPageURL(model.getPageURL());
047                    soapModel.setAuthor(model.getAuthor());
048                    soapModel.setRepoGroupId(model.getRepoGroupId());
049                    soapModel.setRepoArtifactId(model.getRepoArtifactId());
050    
051                    return soapModel;
052            }
053    
054            public static SCProductEntrySoap[] toSoapModels(SCProductEntry[] models) {
055                    SCProductEntrySoap[] soapModels = new SCProductEntrySoap[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 SCProductEntrySoap[][] toSoapModels(SCProductEntry[][] models) {
065                    SCProductEntrySoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new SCProductEntrySoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new SCProductEntrySoap[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 SCProductEntrySoap[] toSoapModels(List<SCProductEntry> models) {
082                    List<SCProductEntrySoap> soapModels = new ArrayList<SCProductEntrySoap>(models.size());
083    
084                    for (SCProductEntry model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new SCProductEntrySoap[soapModels.size()]);
089            }
090    
091            public SCProductEntrySoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _productEntryId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setProductEntryId(pk);
100            }
101    
102            public long getProductEntryId() {
103                    return _productEntryId;
104            }
105    
106            public void setProductEntryId(long productEntryId) {
107                    _productEntryId = productEntryId;
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 String getName() {
159                    return _name;
160            }
161    
162            public void setName(String name) {
163                    _name = name;
164            }
165    
166            public String getType() {
167                    return _type;
168            }
169    
170            public void setType(String type) {
171                    _type = type;
172            }
173    
174            public String getTags() {
175                    return _tags;
176            }
177    
178            public void setTags(String tags) {
179                    _tags = tags;
180            }
181    
182            public String getShortDescription() {
183                    return _shortDescription;
184            }
185    
186            public void setShortDescription(String shortDescription) {
187                    _shortDescription = shortDescription;
188            }
189    
190            public String getLongDescription() {
191                    return _longDescription;
192            }
193    
194            public void setLongDescription(String longDescription) {
195                    _longDescription = longDescription;
196            }
197    
198            public String getPageURL() {
199                    return _pageURL;
200            }
201    
202            public void setPageURL(String pageURL) {
203                    _pageURL = pageURL;
204            }
205    
206            public String getAuthor() {
207                    return _author;
208            }
209    
210            public void setAuthor(String author) {
211                    _author = author;
212            }
213    
214            public String getRepoGroupId() {
215                    return _repoGroupId;
216            }
217    
218            public void setRepoGroupId(String repoGroupId) {
219                    _repoGroupId = repoGroupId;
220            }
221    
222            public String getRepoArtifactId() {
223                    return _repoArtifactId;
224            }
225    
226            public void setRepoArtifactId(String repoArtifactId) {
227                    _repoArtifactId = repoArtifactId;
228            }
229    
230            private long _productEntryId;
231            private long _groupId;
232            private long _companyId;
233            private long _userId;
234            private String _userName;
235            private Date _createDate;
236            private Date _modifiedDate;
237            private String _name;
238            private String _type;
239            private String _tags;
240            private String _shortDescription;
241            private String _longDescription;
242            private String _pageURL;
243            private String _author;
244            private String _repoGroupId;
245            private String _repoArtifactId;
246    }