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="SCProductVersionSoap.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.SCProductVersionServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap
045: *
046: */
047: public class SCProductVersionSoap implements Serializable {
048: public static SCProductVersionSoap toSoapModel(
049: SCProductVersion model) {
050: SCProductVersionSoap soapModel = new SCProductVersionSoap();
051:
052: soapModel.setProductVersionId(model.getProductVersionId());
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.setProductEntryId(model.getProductEntryId());
059: soapModel.setVersion(model.getVersion());
060: soapModel.setChangeLog(model.getChangeLog());
061: soapModel.setDownloadPageURL(model.getDownloadPageURL());
062: soapModel.setDirectDownloadURL(model.getDirectDownloadURL());
063: soapModel.setRepoStoreArtifact(model.getRepoStoreArtifact());
064:
065: return soapModel;
066: }
067:
068: public static SCProductVersionSoap[] toSoapModels(List models) {
069: List soapModels = new ArrayList(models.size());
070:
071: for (int i = 0; i < models.size(); i++) {
072: SCProductVersion model = (SCProductVersion) models.get(i);
073:
074: soapModels.add(toSoapModel(model));
075: }
076:
077: return (SCProductVersionSoap[]) soapModels
078: .toArray(new SCProductVersionSoap[0]);
079: }
080:
081: public SCProductVersionSoap() {
082: }
083:
084: public long getPrimaryKey() {
085: return _productVersionId;
086: }
087:
088: public void setPrimaryKey(long pk) {
089: setProductVersionId(pk);
090: }
091:
092: public long getProductVersionId() {
093: return _productVersionId;
094: }
095:
096: public void setProductVersionId(long productVersionId) {
097: _productVersionId = productVersionId;
098: }
099:
100: public long getCompanyId() {
101: return _companyId;
102: }
103:
104: public void setCompanyId(long companyId) {
105: _companyId = companyId;
106: }
107:
108: public long getUserId() {
109: return _userId;
110: }
111:
112: public void setUserId(long userId) {
113: _userId = userId;
114: }
115:
116: public String getUserName() {
117: return _userName;
118: }
119:
120: public void setUserName(String userName) {
121: _userName = userName;
122: }
123:
124: public Date getCreateDate() {
125: return _createDate;
126: }
127:
128: public void setCreateDate(Date createDate) {
129: _createDate = createDate;
130: }
131:
132: public Date getModifiedDate() {
133: return _modifiedDate;
134: }
135:
136: public void setModifiedDate(Date modifiedDate) {
137: _modifiedDate = modifiedDate;
138: }
139:
140: public long getProductEntryId() {
141: return _productEntryId;
142: }
143:
144: public void setProductEntryId(long productEntryId) {
145: _productEntryId = productEntryId;
146: }
147:
148: public String getVersion() {
149: return _version;
150: }
151:
152: public void setVersion(String version) {
153: _version = version;
154: }
155:
156: public String getChangeLog() {
157: return _changeLog;
158: }
159:
160: public void setChangeLog(String changeLog) {
161: _changeLog = changeLog;
162: }
163:
164: public String getDownloadPageURL() {
165: return _downloadPageURL;
166: }
167:
168: public void setDownloadPageURL(String downloadPageURL) {
169: _downloadPageURL = downloadPageURL;
170: }
171:
172: public String getDirectDownloadURL() {
173: return _directDownloadURL;
174: }
175:
176: public void setDirectDownloadURL(String directDownloadURL) {
177: _directDownloadURL = directDownloadURL;
178: }
179:
180: public boolean getRepoStoreArtifact() {
181: return _repoStoreArtifact;
182: }
183:
184: public boolean isRepoStoreArtifact() {
185: return _repoStoreArtifact;
186: }
187:
188: public void setRepoStoreArtifact(boolean repoStoreArtifact) {
189: _repoStoreArtifact = repoStoreArtifact;
190: }
191:
192: private long _productVersionId;
193: private long _companyId;
194: private long _userId;
195: private String _userName;
196: private Date _createDate;
197: private Date _modifiedDate;
198: private long _productEntryId;
199: private String _version;
200: private String _changeLog;
201: private String _downloadPageURL;
202: private String _directDownloadURL;
203: private boolean _repoStoreArtifact;
204: }
|