001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.bookmarks.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.bookmarks.service.http.BookmarksEntryServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.bookmarks.service.http.BookmarksEntryServiceSoap
028     * @generated
029     */
030    public class BookmarksEntrySoap implements Serializable {
031            public static BookmarksEntrySoap toSoapModel(BookmarksEntry model) {
032                    BookmarksEntrySoap soapModel = new BookmarksEntrySoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setEntryId(model.getEntryId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setResourceBlockId(model.getResourceBlockId());
043                    soapModel.setFolderId(model.getFolderId());
044                    soapModel.setTreePath(model.getTreePath());
045                    soapModel.setName(model.getName());
046                    soapModel.setUrl(model.getUrl());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setVisits(model.getVisits());
049                    soapModel.setPriority(model.getPriority());
050                    soapModel.setStatus(model.getStatus());
051                    soapModel.setStatusByUserId(model.getStatusByUserId());
052                    soapModel.setStatusByUserName(model.getStatusByUserName());
053                    soapModel.setStatusDate(model.getStatusDate());
054    
055                    return soapModel;
056            }
057    
058            public static BookmarksEntrySoap[] toSoapModels(BookmarksEntry[] models) {
059                    BookmarksEntrySoap[] soapModels = new BookmarksEntrySoap[models.length];
060    
061                    for (int i = 0; i < models.length; i++) {
062                            soapModels[i] = toSoapModel(models[i]);
063                    }
064    
065                    return soapModels;
066            }
067    
068            public static BookmarksEntrySoap[][] toSoapModels(BookmarksEntry[][] models) {
069                    BookmarksEntrySoap[][] soapModels = null;
070    
071                    if (models.length > 0) {
072                            soapModels = new BookmarksEntrySoap[models.length][models[0].length];
073                    }
074                    else {
075                            soapModels = new BookmarksEntrySoap[0][0];
076                    }
077    
078                    for (int i = 0; i < models.length; i++) {
079                            soapModels[i] = toSoapModels(models[i]);
080                    }
081    
082                    return soapModels;
083            }
084    
085            public static BookmarksEntrySoap[] toSoapModels(List<BookmarksEntry> models) {
086                    List<BookmarksEntrySoap> soapModels = new ArrayList<BookmarksEntrySoap>(models.size());
087    
088                    for (BookmarksEntry model : models) {
089                            soapModels.add(toSoapModel(model));
090                    }
091    
092                    return soapModels.toArray(new BookmarksEntrySoap[soapModels.size()]);
093            }
094    
095            public BookmarksEntrySoap() {
096            }
097    
098            public long getPrimaryKey() {
099                    return _entryId;
100            }
101    
102            public void setPrimaryKey(long pk) {
103                    setEntryId(pk);
104            }
105    
106            public String getUuid() {
107                    return _uuid;
108            }
109    
110            public void setUuid(String uuid) {
111                    _uuid = uuid;
112            }
113    
114            public long getEntryId() {
115                    return _entryId;
116            }
117    
118            public void setEntryId(long entryId) {
119                    _entryId = entryId;
120            }
121    
122            public long getGroupId() {
123                    return _groupId;
124            }
125    
126            public void setGroupId(long groupId) {
127                    _groupId = groupId;
128            }
129    
130            public long getCompanyId() {
131                    return _companyId;
132            }
133    
134            public void setCompanyId(long companyId) {
135                    _companyId = companyId;
136            }
137    
138            public long getUserId() {
139                    return _userId;
140            }
141    
142            public void setUserId(long userId) {
143                    _userId = userId;
144            }
145    
146            public String getUserName() {
147                    return _userName;
148            }
149    
150            public void setUserName(String userName) {
151                    _userName = userName;
152            }
153    
154            public Date getCreateDate() {
155                    return _createDate;
156            }
157    
158            public void setCreateDate(Date createDate) {
159                    _createDate = createDate;
160            }
161    
162            public Date getModifiedDate() {
163                    return _modifiedDate;
164            }
165    
166            public void setModifiedDate(Date modifiedDate) {
167                    _modifiedDate = modifiedDate;
168            }
169    
170            public long getResourceBlockId() {
171                    return _resourceBlockId;
172            }
173    
174            public void setResourceBlockId(long resourceBlockId) {
175                    _resourceBlockId = resourceBlockId;
176            }
177    
178            public long getFolderId() {
179                    return _folderId;
180            }
181    
182            public void setFolderId(long folderId) {
183                    _folderId = folderId;
184            }
185    
186            public String getTreePath() {
187                    return _treePath;
188            }
189    
190            public void setTreePath(String treePath) {
191                    _treePath = treePath;
192            }
193    
194            public String getName() {
195                    return _name;
196            }
197    
198            public void setName(String name) {
199                    _name = name;
200            }
201    
202            public String getUrl() {
203                    return _url;
204            }
205    
206            public void setUrl(String url) {
207                    _url = url;
208            }
209    
210            public String getDescription() {
211                    return _description;
212            }
213    
214            public void setDescription(String description) {
215                    _description = description;
216            }
217    
218            public int getVisits() {
219                    return _visits;
220            }
221    
222            public void setVisits(int visits) {
223                    _visits = visits;
224            }
225    
226            public int getPriority() {
227                    return _priority;
228            }
229    
230            public void setPriority(int priority) {
231                    _priority = priority;
232            }
233    
234            public int getStatus() {
235                    return _status;
236            }
237    
238            public void setStatus(int status) {
239                    _status = status;
240            }
241    
242            public long getStatusByUserId() {
243                    return _statusByUserId;
244            }
245    
246            public void setStatusByUserId(long statusByUserId) {
247                    _statusByUserId = statusByUserId;
248            }
249    
250            public String getStatusByUserName() {
251                    return _statusByUserName;
252            }
253    
254            public void setStatusByUserName(String statusByUserName) {
255                    _statusByUserName = statusByUserName;
256            }
257    
258            public Date getStatusDate() {
259                    return _statusDate;
260            }
261    
262            public void setStatusDate(Date statusDate) {
263                    _statusDate = statusDate;
264            }
265    
266            private String _uuid;
267            private long _entryId;
268            private long _groupId;
269            private long _companyId;
270            private long _userId;
271            private String _userName;
272            private Date _createDate;
273            private Date _modifiedDate;
274            private long _resourceBlockId;
275            private long _folderId;
276            private String _treePath;
277            private String _name;
278            private String _url;
279            private String _description;
280            private int _visits;
281            private int _priority;
282            private int _status;
283            private long _statusByUserId;
284            private String _statusByUserName;
285            private Date _statusDate;
286    }