1
22
23 package com.liferay.portlet.messageboards.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.Date;
29 import java.util.List;
30
31
49 public class MBMessageSoap implements Serializable {
50 public static MBMessageSoap toSoapModel(MBMessage model) {
51 MBMessageSoap soapModel = new MBMessageSoap();
52
53 soapModel.setUuid(model.getUuid());
54 soapModel.setMessageId(model.getMessageId());
55 soapModel.setCompanyId(model.getCompanyId());
56 soapModel.setUserId(model.getUserId());
57 soapModel.setUserName(model.getUserName());
58 soapModel.setCreateDate(model.getCreateDate());
59 soapModel.setModifiedDate(model.getModifiedDate());
60 soapModel.setCategoryId(model.getCategoryId());
61 soapModel.setThreadId(model.getThreadId());
62 soapModel.setParentMessageId(model.getParentMessageId());
63 soapModel.setSubject(model.getSubject());
64 soapModel.setBody(model.getBody());
65 soapModel.setAttachments(model.getAttachments());
66 soapModel.setAnonymous(model.getAnonymous());
67
68 return soapModel;
69 }
70
71 public static MBMessageSoap[] toSoapModels(List models) {
72 List soapModels = new ArrayList(models.size());
73
74 for (int i = 0; i < models.size(); i++) {
75 MBMessage model = (MBMessage)models.get(i);
76
77 soapModels.add(toSoapModel(model));
78 }
79
80 return (MBMessageSoap[])soapModels.toArray(new MBMessageSoap[0]);
81 }
82
83 public MBMessageSoap() {
84 }
85
86 public long getPrimaryKey() {
87 return _messageId;
88 }
89
90 public void setPrimaryKey(long pk) {
91 setMessageId(pk);
92 }
93
94 public String getUuid() {
95 return _uuid;
96 }
97
98 public void setUuid(String uuid) {
99 _uuid = uuid;
100 }
101
102 public long getMessageId() {
103 return _messageId;
104 }
105
106 public void setMessageId(long messageId) {
107 _messageId = messageId;
108 }
109
110 public long getCompanyId() {
111 return _companyId;
112 }
113
114 public void setCompanyId(long companyId) {
115 _companyId = companyId;
116 }
117
118 public long getUserId() {
119 return _userId;
120 }
121
122 public void setUserId(long userId) {
123 _userId = userId;
124 }
125
126 public String getUserName() {
127 return _userName;
128 }
129
130 public void setUserName(String userName) {
131 _userName = userName;
132 }
133
134 public Date getCreateDate() {
135 return _createDate;
136 }
137
138 public void setCreateDate(Date createDate) {
139 _createDate = createDate;
140 }
141
142 public Date getModifiedDate() {
143 return _modifiedDate;
144 }
145
146 public void setModifiedDate(Date modifiedDate) {
147 _modifiedDate = modifiedDate;
148 }
149
150 public long getCategoryId() {
151 return _categoryId;
152 }
153
154 public void setCategoryId(long categoryId) {
155 _categoryId = categoryId;
156 }
157
158 public long getThreadId() {
159 return _threadId;
160 }
161
162 public void setThreadId(long threadId) {
163 _threadId = threadId;
164 }
165
166 public long getParentMessageId() {
167 return _parentMessageId;
168 }
169
170 public void setParentMessageId(long parentMessageId) {
171 _parentMessageId = parentMessageId;
172 }
173
174 public String getSubject() {
175 return _subject;
176 }
177
178 public void setSubject(String subject) {
179 _subject = subject;
180 }
181
182 public String getBody() {
183 return _body;
184 }
185
186 public void setBody(String body) {
187 _body = body;
188 }
189
190 public boolean getAttachments() {
191 return _attachments;
192 }
193
194 public boolean isAttachments() {
195 return _attachments;
196 }
197
198 public void setAttachments(boolean attachments) {
199 _attachments = attachments;
200 }
201
202 public boolean getAnonymous() {
203 return _anonymous;
204 }
205
206 public boolean isAnonymous() {
207 return _anonymous;
208 }
209
210 public void setAnonymous(boolean anonymous) {
211 _anonymous = anonymous;
212 }
213
214 private String _uuid;
215 private long _messageId;
216 private long _companyId;
217 private long _userId;
218 private String _userName;
219 private Date _createDate;
220 private Date _modifiedDate;
221 private long _categoryId;
222 private long _threadId;
223 private long _parentMessageId;
224 private String _subject;
225 private String _body;
226 private boolean _attachments;
227 private boolean _anonymous;
228 }