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="DLFileRankSoap.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.DLFileRankServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.documentlibrary.service.http.DLFileRankServiceSoap
045: *
046: */
047: public class DLFileRankSoap implements Serializable {
048: public static DLFileRankSoap toSoapModel(DLFileRank model) {
049: DLFileRankSoap soapModel = new DLFileRankSoap();
050:
051: soapModel.setFileRankId(model.getFileRankId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setCreateDate(model.getCreateDate());
055: soapModel.setFolderId(model.getFolderId());
056: soapModel.setName(model.getName());
057:
058: return soapModel;
059: }
060:
061: public static DLFileRankSoap[] toSoapModels(List models) {
062: List soapModels = new ArrayList(models.size());
063:
064: for (int i = 0; i < models.size(); i++) {
065: DLFileRank model = (DLFileRank) models.get(i);
066:
067: soapModels.add(toSoapModel(model));
068: }
069:
070: return (DLFileRankSoap[]) soapModels
071: .toArray(new DLFileRankSoap[0]);
072: }
073:
074: public DLFileRankSoap() {
075: }
076:
077: public long getPrimaryKey() {
078: return _fileRankId;
079: }
080:
081: public void setPrimaryKey(long pk) {
082: setFileRankId(pk);
083: }
084:
085: public long getFileRankId() {
086: return _fileRankId;
087: }
088:
089: public void setFileRankId(long fileRankId) {
090: _fileRankId = fileRankId;
091: }
092:
093: public long getCompanyId() {
094: return _companyId;
095: }
096:
097: public void setCompanyId(long companyId) {
098: _companyId = companyId;
099: }
100:
101: public long getUserId() {
102: return _userId;
103: }
104:
105: public void setUserId(long userId) {
106: _userId = userId;
107: }
108:
109: public Date getCreateDate() {
110: return _createDate;
111: }
112:
113: public void setCreateDate(Date createDate) {
114: _createDate = createDate;
115: }
116:
117: public long getFolderId() {
118: return _folderId;
119: }
120:
121: public void setFolderId(long folderId) {
122: _folderId = folderId;
123: }
124:
125: public String getName() {
126: return _name;
127: }
128:
129: public void setName(String name) {
130: _name = name;
131: }
132:
133: private long _fileRankId;
134: private long _companyId;
135: private long _userId;
136: private Date _createDate;
137: private long _folderId;
138: private String _name;
139: }
|