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.documentlibrary.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="DLFileEntrySoap.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.documentlibrary.service.http.DLFileEntryServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap
045: *
046: */
047: public class DLFileEntrySoap implements Serializable {
048: public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
049: DLFileEntrySoap soapModel = new DLFileEntrySoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setFileEntryId(model.getFileEntryId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setUserName(model.getUserName());
056: soapModel.setVersionUserId(model.getVersionUserId());
057: soapModel.setVersionUserName(model.getVersionUserName());
058: soapModel.setCreateDate(model.getCreateDate());
059: soapModel.setModifiedDate(model.getModifiedDate());
060: soapModel.setFolderId(model.getFolderId());
061: soapModel.setName(model.getName());
062: soapModel.setTitle(model.getTitle());
063: soapModel.setDescription(model.getDescription());
064: soapModel.setVersion(model.getVersion());
065: soapModel.setSize(model.getSize());
066: soapModel.setReadCount(model.getReadCount());
067: soapModel.setExtraSettings(model.getExtraSettings());
068:
069: return soapModel;
070: }
071:
072: public static DLFileEntrySoap[] toSoapModels(List models) {
073: List soapModels = new ArrayList(models.size());
074:
075: for (int i = 0; i < models.size(); i++) {
076: DLFileEntry model = (DLFileEntry) models.get(i);
077:
078: soapModels.add(toSoapModel(model));
079: }
080:
081: return (DLFileEntrySoap[]) soapModels
082: .toArray(new DLFileEntrySoap[0]);
083: }
084:
085: public DLFileEntrySoap() {
086: }
087:
088: public long getPrimaryKey() {
089: return _fileEntryId;
090: }
091:
092: public void setPrimaryKey(long pk) {
093: setFileEntryId(pk);
094: }
095:
096: public String getUuid() {
097: return _uuid;
098: }
099:
100: public void setUuid(String uuid) {
101: _uuid = uuid;
102: }
103:
104: public long getFileEntryId() {
105: return _fileEntryId;
106: }
107:
108: public void setFileEntryId(long fileEntryId) {
109: _fileEntryId = fileEntryId;
110: }
111:
112: public long getCompanyId() {
113: return _companyId;
114: }
115:
116: public void setCompanyId(long companyId) {
117: _companyId = companyId;
118: }
119:
120: public long getUserId() {
121: return _userId;
122: }
123:
124: public void setUserId(long userId) {
125: _userId = userId;
126: }
127:
128: public String getUserName() {
129: return _userName;
130: }
131:
132: public void setUserName(String userName) {
133: _userName = userName;
134: }
135:
136: public long getVersionUserId() {
137: return _versionUserId;
138: }
139:
140: public void setVersionUserId(long versionUserId) {
141: _versionUserId = versionUserId;
142: }
143:
144: public String getVersionUserName() {
145: return _versionUserName;
146: }
147:
148: public void setVersionUserName(String versionUserName) {
149: _versionUserName = versionUserName;
150: }
151:
152: public Date getCreateDate() {
153: return _createDate;
154: }
155:
156: public void setCreateDate(Date createDate) {
157: _createDate = createDate;
158: }
159:
160: public Date getModifiedDate() {
161: return _modifiedDate;
162: }
163:
164: public void setModifiedDate(Date modifiedDate) {
165: _modifiedDate = modifiedDate;
166: }
167:
168: public long getFolderId() {
169: return _folderId;
170: }
171:
172: public void setFolderId(long folderId) {
173: _folderId = folderId;
174: }
175:
176: public String getName() {
177: return _name;
178: }
179:
180: public void setName(String name) {
181: _name = name;
182: }
183:
184: public String getTitle() {
185: return _title;
186: }
187:
188: public void setTitle(String title) {
189: _title = title;
190: }
191:
192: public String getDescription() {
193: return _description;
194: }
195:
196: public void setDescription(String description) {
197: _description = description;
198: }
199:
200: public double getVersion() {
201: return _version;
202: }
203:
204: public void setVersion(double version) {
205: _version = version;
206: }
207:
208: public int getSize() {
209: return _size;
210: }
211:
212: public void setSize(int size) {
213: _size = size;
214: }
215:
216: public int getReadCount() {
217: return _readCount;
218: }
219:
220: public void setReadCount(int readCount) {
221: _readCount = readCount;
222: }
223:
224: public String getExtraSettings() {
225: return _extraSettings;
226: }
227:
228: public void setExtraSettings(String extraSettings) {
229: _extraSettings = extraSettings;
230: }
231:
232: private String _uuid;
233: private long _fileEntryId;
234: private long _companyId;
235: private long _userId;
236: private String _userName;
237: private long _versionUserId;
238: private String _versionUserName;
239: private Date _createDate;
240: private Date _modifiedDate;
241: private long _folderId;
242: private String _name;
243: private String _title;
244: private String _description;
245: private double _version;
246: private int _size;
247: private int _readCount;
248: private String _extraSettings;
249: }
|