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 MBThreadFlagSoap implements Serializable {
030            public static MBThreadFlagSoap toSoapModel(MBThreadFlag model) {
031                    MBThreadFlagSoap soapModel = new MBThreadFlagSoap();
032    
033                    soapModel.setUuid(model.getUuid());
034                    soapModel.setThreadFlagId(model.getThreadFlagId());
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.setThreadId(model.getThreadId());
042    
043                    return soapModel;
044            }
045    
046            public static MBThreadFlagSoap[] toSoapModels(MBThreadFlag[] models) {
047                    MBThreadFlagSoap[] soapModels = new MBThreadFlagSoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static MBThreadFlagSoap[][] toSoapModels(MBThreadFlag[][] models) {
057                    MBThreadFlagSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new MBThreadFlagSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new MBThreadFlagSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static MBThreadFlagSoap[] toSoapModels(List<MBThreadFlag> models) {
074                    List<MBThreadFlagSoap> soapModels = new ArrayList<MBThreadFlagSoap>(models.size());
075    
076                    for (MBThreadFlag model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new MBThreadFlagSoap[soapModels.size()]);
081            }
082    
083            public MBThreadFlagSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _threadFlagId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setThreadFlagId(pk);
092            }
093    
094            public String getUuid() {
095                    return _uuid;
096            }
097    
098            public void setUuid(String uuid) {
099                    _uuid = uuid;
100            }
101    
102            public long getThreadFlagId() {
103                    return _threadFlagId;
104            }
105    
106            public void setThreadFlagId(long threadFlagId) {
107                    _threadFlagId = threadFlagId;
108            }
109    
110            public long getGroupId() {
111                    return _groupId;
112            }
113    
114            public void setGroupId(long groupId) {
115                    _groupId = groupId;
116            }
117    
118            public long getCompanyId() {
119                    return _companyId;
120            }
121    
122            public void setCompanyId(long companyId) {
123                    _companyId = companyId;
124            }
125    
126            public long getUserId() {
127                    return _userId;
128            }
129    
130            public void setUserId(long userId) {
131                    _userId = userId;
132            }
133    
134            public String getUserName() {
135                    return _userName;
136            }
137    
138            public void setUserName(String userName) {
139                    _userName = userName;
140            }
141    
142            public Date getCreateDate() {
143                    return _createDate;
144            }
145    
146            public void setCreateDate(Date createDate) {
147                    _createDate = createDate;
148            }
149    
150            public Date getModifiedDate() {
151                    return _modifiedDate;
152            }
153    
154            public void setModifiedDate(Date modifiedDate) {
155                    _modifiedDate = modifiedDate;
156            }
157    
158            public long getThreadId() {
159                    return _threadId;
160            }
161    
162            public void setThreadId(long threadId) {
163                    _threadId = threadId;
164            }
165    
166            private String _uuid;
167            private long _threadFlagId;
168            private long _groupId;
169            private long _companyId;
170            private long _userId;
171            private String _userName;
172            private Date _createDate;
173            private Date _modifiedDate;
174            private long _threadId;
175    }