001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="SCProductEntrySoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap
045: *
046: */
047: public class SCProductEntrySoap implements Serializable {
048: public static SCProductEntrySoap toSoapModel(SCProductEntry model) {
049: SCProductEntrySoap soapModel = new SCProductEntrySoap();
050:
051: soapModel.setProductEntryId(model.getProductEntryId());
052: soapModel.setGroupId(model.getGroupId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setUserName(model.getUserName());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setModifiedDate(model.getModifiedDate());
058: soapModel.setName(model.getName());
059: soapModel.setType(model.getType());
060: soapModel.setTags(model.getTags());
061: soapModel.setShortDescription(model.getShortDescription());
062: soapModel.setLongDescription(model.getLongDescription());
063: soapModel.setPageURL(model.getPageURL());
064: soapModel.setAuthor(model.getAuthor());
065: soapModel.setRepoGroupId(model.getRepoGroupId());
066: soapModel.setRepoArtifactId(model.getRepoArtifactId());
067:
068: return soapModel;
069: }
070:
071: public static SCProductEntrySoap[] toSoapModels(List models) {
072: List soapModels = new ArrayList(models.size());
073:
074: for (int i = 0; i < models.size(); i++) {
075: SCProductEntry model = (SCProductEntry) models.get(i);
076:
077: soapModels.add(toSoapModel(model));
078: }
079:
080: return (SCProductEntrySoap[]) soapModels
081: .toArray(new SCProductEntrySoap[0]);
082: }
083:
084: public SCProductEntrySoap() {
085: }
086:
087: public long getPrimaryKey() {
088: return _productEntryId;
089: }
090:
091: public void setPrimaryKey(long pk) {
092: setProductEntryId(pk);
093: }
094:
095: public long getProductEntryId() {
096: return _productEntryId;
097: }
098:
099: public void setProductEntryId(long productEntryId) {
100: _productEntryId = productEntryId;
101: }
102:
103: public long getGroupId() {
104: return _groupId;
105: }
106:
107: public void setGroupId(long groupId) {
108: _groupId = groupId;
109: }
110:
111: public long getCompanyId() {
112: return _companyId;
113: }
114:
115: public void setCompanyId(long companyId) {
116: _companyId = companyId;
117: }
118:
119: public long getUserId() {
120: return _userId;
121: }
122:
123: public void setUserId(long userId) {
124: _userId = userId;
125: }
126:
127: public String getUserName() {
128: return _userName;
129: }
130:
131: public void setUserName(String userName) {
132: _userName = userName;
133: }
134:
135: public Date getCreateDate() {
136: return _createDate;
137: }
138:
139: public void setCreateDate(Date createDate) {
140: _createDate = createDate;
141: }
142:
143: public Date getModifiedDate() {
144: return _modifiedDate;
145: }
146:
147: public void setModifiedDate(Date modifiedDate) {
148: _modifiedDate = modifiedDate;
149: }
150:
151: public String getName() {
152: return _name;
153: }
154:
155: public void setName(String name) {
156: _name = name;
157: }
158:
159: public String getType() {
160: return _type;
161: }
162:
163: public void setType(String type) {
164: _type = type;
165: }
166:
167: public String getTags() {
168: return _tags;
169: }
170:
171: public void setTags(String tags) {
172: _tags = tags;
173: }
174:
175: public String getShortDescription() {
176: return _shortDescription;
177: }
178:
179: public void setShortDescription(String shortDescription) {
180: _shortDescription = shortDescription;
181: }
182:
183: public String getLongDescription() {
184: return _longDescription;
185: }
186:
187: public void setLongDescription(String longDescription) {
188: _longDescription = longDescription;
189: }
190:
191: public String getPageURL() {
192: return _pageURL;
193: }
194:
195: public void setPageURL(String pageURL) {
196: _pageURL = pageURL;
197: }
198:
199: public String getAuthor() {
200: return _author;
201: }
202:
203: public void setAuthor(String author) {
204: _author = author;
205: }
206:
207: public String getRepoGroupId() {
208: return _repoGroupId;
209: }
210:
211: public void setRepoGroupId(String repoGroupId) {
212: _repoGroupId = repoGroupId;
213: }
214:
215: public String getRepoArtifactId() {
216: return _repoArtifactId;
217: }
218:
219: public void setRepoArtifactId(String repoArtifactId) {
220: _repoArtifactId = repoArtifactId;
221: }
222:
223: private long _productEntryId;
224: private long _groupId;
225: private long _companyId;
226: private long _userId;
227: private String _userName;
228: private Date _createDate;
229: private Date _modifiedDate;
230: private String _name;
231: private String _type;
232: private String _tags;
233: private String _shortDescription;
234: private String _longDescription;
235: private String _pageURL;
236: private String _author;
237: private String _repoGroupId;
238: private String _repoArtifactId;
239: }
|