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.bookmarks.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="BookmarksFolderSoap.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.bookmarks.service.http.BookmarksFolderServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.bookmarks.service.http.BookmarksFolderServiceSoap
045: *
046: */
047: public class BookmarksFolderSoap implements Serializable {
048: public static BookmarksFolderSoap toSoapModel(BookmarksFolder model) {
049: BookmarksFolderSoap soapModel = new BookmarksFolderSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setFolderId(model.getFolderId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setModifiedDate(model.getModifiedDate());
058: soapModel.setParentFolderId(model.getParentFolderId());
059: soapModel.setName(model.getName());
060: soapModel.setDescription(model.getDescription());
061:
062: return soapModel;
063: }
064:
065: public static BookmarksFolderSoap[] toSoapModels(List models) {
066: List soapModels = new ArrayList(models.size());
067:
068: for (int i = 0; i < models.size(); i++) {
069: BookmarksFolder model = (BookmarksFolder) models.get(i);
070:
071: soapModels.add(toSoapModel(model));
072: }
073:
074: return (BookmarksFolderSoap[]) soapModels
075: .toArray(new BookmarksFolderSoap[0]);
076: }
077:
078: public BookmarksFolderSoap() {
079: }
080:
081: public long getPrimaryKey() {
082: return _folderId;
083: }
084:
085: public void setPrimaryKey(long pk) {
086: setFolderId(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 getFolderId() {
098: return _folderId;
099: }
100:
101: public void setFolderId(long folderId) {
102: _folderId = folderId;
103: }
104:
105: public long getGroupId() {
106: return _groupId;
107: }
108:
109: public void setGroupId(long groupId) {
110: _groupId = groupId;
111: }
112:
113: public long getCompanyId() {
114: return _companyId;
115: }
116:
117: public void setCompanyId(long companyId) {
118: _companyId = companyId;
119: }
120:
121: public long getUserId() {
122: return _userId;
123: }
124:
125: public void setUserId(long userId) {
126: _userId = userId;
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 getParentFolderId() {
146: return _parentFolderId;
147: }
148:
149: public void setParentFolderId(long parentFolderId) {
150: _parentFolderId = parentFolderId;
151: }
152:
153: public String getName() {
154: return _name;
155: }
156:
157: public void setName(String name) {
158: _name = name;
159: }
160:
161: public String getDescription() {
162: return _description;
163: }
164:
165: public void setDescription(String description) {
166: _description = description;
167: }
168:
169: private String _uuid;
170: private long _folderId;
171: private long _groupId;
172: private long _companyId;
173: private long _userId;
174: private Date _createDate;
175: private Date _modifiedDate;
176: private long _parentFolderId;
177: private String _name;
178: private String _description;
179: }
|