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