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="BookmarksEntrySoap.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.BookmarksEntryServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.bookmarks.service.http.BookmarksEntryServiceSoap
045: *
046: */
047: public class BookmarksEntrySoap implements Serializable {
048: public static BookmarksEntrySoap toSoapModel(BookmarksEntry model) {
049: BookmarksEntrySoap soapModel = new BookmarksEntrySoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setEntryId(model.getEntryId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setFolderId(model.getFolderId());
058: soapModel.setName(model.getName());
059: soapModel.setUrl(model.getUrl());
060: soapModel.setComments(model.getComments());
061: soapModel.setVisits(model.getVisits());
062: soapModel.setPriority(model.getPriority());
063:
064: return soapModel;
065: }
066:
067: public static BookmarksEntrySoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: BookmarksEntry model = (BookmarksEntry) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (BookmarksEntrySoap[]) soapModels
077: .toArray(new BookmarksEntrySoap[0]);
078: }
079:
080: public BookmarksEntrySoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _entryId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setEntryId(pk);
089: }
090:
091: public String getUuid() {
092: return _uuid;
093: }
094:
095: public void setUuid(String uuid) {
096: _uuid = uuid;
097: }
098:
099: public long getEntryId() {
100: return _entryId;
101: }
102:
103: public void setEntryId(long entryId) {
104: _entryId = entryId;
105: }
106:
107: public long getCompanyId() {
108: return _companyId;
109: }
110:
111: public void setCompanyId(long companyId) {
112: _companyId = companyId;
113: }
114:
115: public long getUserId() {
116: return _userId;
117: }
118:
119: public void setUserId(long userId) {
120: _userId = userId;
121: }
122:
123: public Date getCreateDate() {
124: return _createDate;
125: }
126:
127: public void setCreateDate(Date createDate) {
128: _createDate = createDate;
129: }
130:
131: public Date getModifiedDate() {
132: return _modifiedDate;
133: }
134:
135: public void setModifiedDate(Date modifiedDate) {
136: _modifiedDate = modifiedDate;
137: }
138:
139: public long getFolderId() {
140: return _folderId;
141: }
142:
143: public void setFolderId(long folderId) {
144: _folderId = folderId;
145: }
146:
147: public String getName() {
148: return _name;
149: }
150:
151: public void setName(String name) {
152: _name = name;
153: }
154:
155: public String getUrl() {
156: return _url;
157: }
158:
159: public void setUrl(String url) {
160: _url = url;
161: }
162:
163: public String getComments() {
164: return _comments;
165: }
166:
167: public void setComments(String comments) {
168: _comments = comments;
169: }
170:
171: public int getVisits() {
172: return _visits;
173: }
174:
175: public void setVisits(int visits) {
176: _visits = visits;
177: }
178:
179: public int getPriority() {
180: return _priority;
181: }
182:
183: public void setPriority(int priority) {
184: _priority = priority;
185: }
186:
187: private String _uuid;
188: private long _entryId;
189: private long _companyId;
190: private long _userId;
191: private Date _createDate;
192: private Date _modifiedDate;
193: private long _folderId;
194: private String _name;
195: private String _url;
196: private String _comments;
197: private int _visits;
198: private int _priority;
199: }
|