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