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.messageboards.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.
025     *
026     * @author Brian Wing Shun Chan
027     * @generated
028     */
029    public class MBDiscussionSoap implements Serializable {
030            public static MBDiscussionSoap toSoapModel(MBDiscussion model) {
031                    MBDiscussionSoap soapModel = new MBDiscussionSoap();
032    
033                    soapModel.setUuid(model.getUuid());
034                    soapModel.setDiscussionId(model.getDiscussionId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setThreadId(model.getThreadId());
044    
045                    return soapModel;
046            }
047    
048            public static MBDiscussionSoap[] toSoapModels(MBDiscussion[] models) {
049                    MBDiscussionSoap[] soapModels = new MBDiscussionSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static MBDiscussionSoap[][] toSoapModels(MBDiscussion[][] models) {
059                    MBDiscussionSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new MBDiscussionSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new MBDiscussionSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static MBDiscussionSoap[] toSoapModels(List<MBDiscussion> models) {
076                    List<MBDiscussionSoap> soapModels = new ArrayList<MBDiscussionSoap>(models.size());
077    
078                    for (MBDiscussion model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new MBDiscussionSoap[soapModels.size()]);
083            }
084    
085            public MBDiscussionSoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _discussionId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setDiscussionId(pk);
094            }
095    
096            public String getUuid() {
097                    return _uuid;
098            }
099    
100            public void setUuid(String uuid) {
101                    _uuid = uuid;
102            }
103    
104            public long getDiscussionId() {
105                    return _discussionId;
106            }
107    
108            public void setDiscussionId(long discussionId) {
109                    _discussionId = discussionId;
110            }
111    
112            public long getGroupId() {
113                    return _groupId;
114            }
115    
116            public void setGroupId(long groupId) {
117                    _groupId = groupId;
118            }
119    
120            public long getCompanyId() {
121                    return _companyId;
122            }
123    
124            public void setCompanyId(long companyId) {
125                    _companyId = companyId;
126            }
127    
128            public long getUserId() {
129                    return _userId;
130            }
131    
132            public void setUserId(long userId) {
133                    _userId = userId;
134            }
135    
136            public String getUserName() {
137                    return _userName;
138            }
139    
140            public void setUserName(String userName) {
141                    _userName = userName;
142            }
143    
144            public Date getCreateDate() {
145                    return _createDate;
146            }
147    
148            public void setCreateDate(Date createDate) {
149                    _createDate = createDate;
150            }
151    
152            public Date getModifiedDate() {
153                    return _modifiedDate;
154            }
155    
156            public void setModifiedDate(Date modifiedDate) {
157                    _modifiedDate = modifiedDate;
158            }
159    
160            public long getClassNameId() {
161                    return _classNameId;
162            }
163    
164            public void setClassNameId(long classNameId) {
165                    _classNameId = classNameId;
166            }
167    
168            public long getClassPK() {
169                    return _classPK;
170            }
171    
172            public void setClassPK(long classPK) {
173                    _classPK = classPK;
174            }
175    
176            public long getThreadId() {
177                    return _threadId;
178            }
179    
180            public void setThreadId(long threadId) {
181                    _threadId = threadId;
182            }
183    
184            private String _uuid;
185            private long _discussionId;
186            private long _groupId;
187            private long _companyId;
188            private long _userId;
189            private String _userName;
190            private Date _createDate;
191            private Date _modifiedDate;
192            private long _classNameId;
193            private long _classPK;
194            private long _threadId;
195    }