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.BookmarksFolderServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.bookmarks.service.http.BookmarksFolderServiceSoap
028     * @generated
029     */
030    public class BookmarksFolderSoap implements Serializable {
031            public static BookmarksFolderSoap toSoapModel(BookmarksFolder model) {
032                    BookmarksFolderSoap soapModel = new BookmarksFolderSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setFolderId(model.getFolderId());
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.setParentFolderId(model.getParentFolderId());
044                    soapModel.setTreePath(model.getTreePath());
045                    soapModel.setName(model.getName());
046                    soapModel.setDescription(model.getDescription());
047                    soapModel.setStatus(model.getStatus());
048                    soapModel.setStatusByUserId(model.getStatusByUserId());
049                    soapModel.setStatusByUserName(model.getStatusByUserName());
050                    soapModel.setStatusDate(model.getStatusDate());
051    
052                    return soapModel;
053            }
054    
055            public static BookmarksFolderSoap[] toSoapModels(BookmarksFolder[] models) {
056                    BookmarksFolderSoap[] soapModels = new BookmarksFolderSoap[models.length];
057    
058                    for (int i = 0; i < models.length; i++) {
059                            soapModels[i] = toSoapModel(models[i]);
060                    }
061    
062                    return soapModels;
063            }
064    
065            public static BookmarksFolderSoap[][] toSoapModels(
066                    BookmarksFolder[][] models) {
067                    BookmarksFolderSoap[][] soapModels = null;
068    
069                    if (models.length > 0) {
070                            soapModels = new BookmarksFolderSoap[models.length][models[0].length];
071                    }
072                    else {
073                            soapModels = new BookmarksFolderSoap[0][0];
074                    }
075    
076                    for (int i = 0; i < models.length; i++) {
077                            soapModels[i] = toSoapModels(models[i]);
078                    }
079    
080                    return soapModels;
081            }
082    
083            public static BookmarksFolderSoap[] toSoapModels(
084                    List<BookmarksFolder> models) {
085                    List<BookmarksFolderSoap> soapModels = new ArrayList<BookmarksFolderSoap>(models.size());
086    
087                    for (BookmarksFolder model : models) {
088                            soapModels.add(toSoapModel(model));
089                    }
090    
091                    return soapModels.toArray(new BookmarksFolderSoap[soapModels.size()]);
092            }
093    
094            public BookmarksFolderSoap() {
095            }
096    
097            public long getPrimaryKey() {
098                    return _folderId;
099            }
100    
101            public void setPrimaryKey(long pk) {
102                    setFolderId(pk);
103            }
104    
105            public String getUuid() {
106                    return _uuid;
107            }
108    
109            public void setUuid(String uuid) {
110                    _uuid = uuid;
111            }
112    
113            public long getFolderId() {
114                    return _folderId;
115            }
116    
117            public void setFolderId(long folderId) {
118                    _folderId = folderId;
119            }
120    
121            public long getGroupId() {
122                    return _groupId;
123            }
124    
125            public void setGroupId(long groupId) {
126                    _groupId = groupId;
127            }
128    
129            public long getCompanyId() {
130                    return _companyId;
131            }
132    
133            public void setCompanyId(long companyId) {
134                    _companyId = companyId;
135            }
136    
137            public long getUserId() {
138                    return _userId;
139            }
140    
141            public void setUserId(long userId) {
142                    _userId = userId;
143            }
144    
145            public String getUserName() {
146                    return _userName;
147            }
148    
149            public void setUserName(String userName) {
150                    _userName = userName;
151            }
152    
153            public Date getCreateDate() {
154                    return _createDate;
155            }
156    
157            public void setCreateDate(Date createDate) {
158                    _createDate = createDate;
159            }
160    
161            public Date getModifiedDate() {
162                    return _modifiedDate;
163            }
164    
165            public void setModifiedDate(Date modifiedDate) {
166                    _modifiedDate = modifiedDate;
167            }
168    
169            public long getResourceBlockId() {
170                    return _resourceBlockId;
171            }
172    
173            public void setResourceBlockId(long resourceBlockId) {
174                    _resourceBlockId = resourceBlockId;
175            }
176    
177            public long getParentFolderId() {
178                    return _parentFolderId;
179            }
180    
181            public void setParentFolderId(long parentFolderId) {
182                    _parentFolderId = parentFolderId;
183            }
184    
185            public String getTreePath() {
186                    return _treePath;
187            }
188    
189            public void setTreePath(String treePath) {
190                    _treePath = treePath;
191            }
192    
193            public String getName() {
194                    return _name;
195            }
196    
197            public void setName(String name) {
198                    _name = name;
199            }
200    
201            public String getDescription() {
202                    return _description;
203            }
204    
205            public void setDescription(String description) {
206                    _description = description;
207            }
208    
209            public int getStatus() {
210                    return _status;
211            }
212    
213            public void setStatus(int status) {
214                    _status = status;
215            }
216    
217            public long getStatusByUserId() {
218                    return _statusByUserId;
219            }
220    
221            public void setStatusByUserId(long statusByUserId) {
222                    _statusByUserId = statusByUserId;
223            }
224    
225            public String getStatusByUserName() {
226                    return _statusByUserName;
227            }
228    
229            public void setStatusByUserName(String statusByUserName) {
230                    _statusByUserName = statusByUserName;
231            }
232    
233            public Date getStatusDate() {
234                    return _statusDate;
235            }
236    
237            public void setStatusDate(Date statusDate) {
238                    _statusDate = statusDate;
239            }
240    
241            private String _uuid;
242            private long _folderId;
243            private long _groupId;
244            private long _companyId;
245            private long _userId;
246            private String _userName;
247            private Date _createDate;
248            private Date _modifiedDate;
249            private long _resourceBlockId;
250            private long _parentFolderId;
251            private String _treePath;
252            private String _name;
253            private String _description;
254            private int _status;
255            private long _statusByUserId;
256            private String _statusByUserName;
257            private Date _statusDate;
258    }