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="DLFileShortcutSoap.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.DLFileShortcutServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap
045: *
046: */
047: public class DLFileShortcutSoap implements Serializable {
048: public static DLFileShortcutSoap toSoapModel(DLFileShortcut model) {
049: DLFileShortcutSoap soapModel = new DLFileShortcutSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setFileShortcutId(model.getFileShortcutId());
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.setFolderId(model.getFolderId());
059: soapModel.setToFolderId(model.getToFolderId());
060: soapModel.setToName(model.getToName());
061:
062: return soapModel;
063: }
064:
065: public static DLFileShortcutSoap[] toSoapModels(List models) {
066: List soapModels = new ArrayList(models.size());
067:
068: for (int i = 0; i < models.size(); i++) {
069: DLFileShortcut model = (DLFileShortcut) models.get(i);
070:
071: soapModels.add(toSoapModel(model));
072: }
073:
074: return (DLFileShortcutSoap[]) soapModels
075: .toArray(new DLFileShortcutSoap[0]);
076: }
077:
078: public DLFileShortcutSoap() {
079: }
080:
081: public long getPrimaryKey() {
082: return _fileShortcutId;
083: }
084:
085: public void setPrimaryKey(long pk) {
086: setFileShortcutId(pk);
087: }
088:
089: public String getUuid() {
090: return _uuid;
091: }
092:
093: public void setUuid(String uuid) {
094: _uuid = uuid;
095: }
096:
097: public long getFileShortcutId() {
098: return _fileShortcutId;
099: }
100:
101: public void setFileShortcutId(long fileShortcutId) {
102: _fileShortcutId = fileShortcutId;
103: }
104:
105: public long getCompanyId() {
106: return _companyId;
107: }
108:
109: public void setCompanyId(long companyId) {
110: _companyId = companyId;
111: }
112:
113: public long getUserId() {
114: return _userId;
115: }
116:
117: public void setUserId(long userId) {
118: _userId = userId;
119: }
120:
121: public String getUserName() {
122: return _userName;
123: }
124:
125: public void setUserName(String userName) {
126: _userName = userName;
127: }
128:
129: public Date getCreateDate() {
130: return _createDate;
131: }
132:
133: public void setCreateDate(Date createDate) {
134: _createDate = createDate;
135: }
136:
137: public Date getModifiedDate() {
138: return _modifiedDate;
139: }
140:
141: public void setModifiedDate(Date modifiedDate) {
142: _modifiedDate = modifiedDate;
143: }
144:
145: public long getFolderId() {
146: return _folderId;
147: }
148:
149: public void setFolderId(long folderId) {
150: _folderId = folderId;
151: }
152:
153: public long getToFolderId() {
154: return _toFolderId;
155: }
156:
157: public void setToFolderId(long toFolderId) {
158: _toFolderId = toFolderId;
159: }
160:
161: public String getToName() {
162: return _toName;
163: }
164:
165: public void setToName(String toName) {
166: _toName = toName;
167: }
168:
169: private String _uuid;
170: private long _fileShortcutId;
171: private long _companyId;
172: private long _userId;
173: private String _userName;
174: private Date _createDate;
175: private Date _modifiedDate;
176: private long _folderId;
177: private long _toFolderId;
178: private String _toName;
179: }
|