1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface MBMessageLocalService {
50 public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
51 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
55 long messageId);
56
57 public void deleteMBMessage(long messageId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteMBMessage(
62 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
88 long messageId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getMBMessagesCount() throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
106 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
110 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
111 boolean merge) throws com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
114 long userId, java.lang.String userName, java.lang.String className,
115 long classPK)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
120 long userId, java.lang.String userName, java.lang.String className,
121 long classPK, long threadId, long parentMessageId,
122 java.lang.String subject, java.lang.String body,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
128 long userId, java.lang.String userName, long categoryId, long threadId,
129 long parentMessageId, java.lang.String subject, java.lang.String body,
130 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
131 boolean anonymous, double priority,
132 com.liferay.portal.service.ServiceContext serviceContext)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
137 long userId, java.lang.String userName, long categoryId,
138 java.lang.String subject, java.lang.String body,
139 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
140 boolean anonymous, double priority,
141 com.liferay.portal.service.ServiceContext serviceContext)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException;
144
145 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
146 java.lang.String uuid, long userId, java.lang.String userName,
147 long categoryId, long threadId, long parentMessageId,
148 java.lang.String subject, java.lang.String body,
149 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
150 boolean anonymous, double priority,
151 com.liferay.portal.service.ServiceContext serviceContext)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void addMessageResources(long messageId,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void addMessageResources(long messageId,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void addMessageResources(
167 com.liferay.portlet.messageboards.model.MBMessage message,
168 boolean addCommunityPermissions, boolean addGuestPermissions)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 public void addMessageResources(
173 com.liferay.portlet.messageboards.model.MBMessage message,
174 java.lang.String[] communityPermissions,
175 java.lang.String[] guestPermissions)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException;
178
179 public void deleteDiscussionMessage(long messageId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException;
182
183 public void deleteDiscussionMessages(java.lang.String className,
184 long classPK)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException;
187
188 public void deleteMessage(long messageId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 public void deleteMessage(
193 com.liferay.portlet.messageboards.model.MBMessage message)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
199 long categoryId, int start, int end)
200 throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
204 long categoryId, int start, int end,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getCategoryMessagesCount(long categoryId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
214 long companyId, int start, int end)
215 throws com.liferay.portal.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
219 long companyId, int start, int end,
220 com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public int getCompanyMessagesCount(long companyId)
225 throws com.liferay.portal.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
229 long userId, java.lang.String className, long classPK)
230 throws com.liferay.portal.PortalException,
231 com.liferay.portal.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
235 long userId, java.lang.String className, long classPK,
236 java.lang.String threadView)
237 throws com.liferay.portal.PortalException,
238 com.liferay.portal.SystemException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public int getDiscussionMessagesCount(long classNameId, long classPK)
242 throws com.liferay.portal.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public int getDiscussionMessagesCount(java.lang.String className,
246 long classPK) throws com.liferay.portal.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
250 java.lang.String className) throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
254 long groupId, int start, int end)
255 throws com.liferay.portal.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
259 long groupId, int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
265 long groupId, long userId, int start, int end)
266 throws com.liferay.portal.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
270 long groupId, long userId, int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public int getGroupMessagesCount(long groupId)
276 throws com.liferay.portal.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public int getGroupMessagesCount(long groupId, long userId)
280 throws com.liferay.portal.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
284 long messageId)
285 throws com.liferay.portal.PortalException,
286 com.liferay.portal.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
290 long messageId, java.lang.String threadView)
291 throws com.liferay.portal.PortalException,
292 com.liferay.portal.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
296 long messageId, java.lang.String threadView, boolean includePrevAndNext)
297 throws com.liferay.portal.PortalException,
298 com.liferay.portal.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
302 com.liferay.portlet.messageboards.model.MBMessage message,
303 java.lang.String threadView)
304 throws com.liferay.portal.PortalException,
305 com.liferay.portal.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
309 com.liferay.portlet.messageboards.model.MBMessage message,
310 java.lang.String threadView, boolean includePrevAndNext)
311 throws com.liferay.portal.PortalException,
312 com.liferay.portal.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
316 java.lang.String className, long classPK)
317 throws com.liferay.portal.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
321 throws com.liferay.portal.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public int getPositionInThread(long messageId)
325 throws com.liferay.portal.PortalException,
326 com.liferay.portal.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
330 long threadId) throws com.liferay.portal.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
334 long threadId,
335 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
336 throws com.liferay.portal.SystemException;
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
340 long threadId, int start, int end)
341 throws com.liferay.portal.SystemException;
342
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public int getThreadMessagesCount(long threadId)
345 throws com.liferay.portal.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
349 long threadId, int start, int end)
350 throws com.liferay.portal.SystemException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public void reIndex(long messageId)
354 throws com.liferay.portal.SystemException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public void reIndex(
358 com.liferay.portlet.messageboards.model.MBMessage message)
359 throws com.liferay.portal.SystemException;
360
361 public void subscribeMessage(long userId, long messageId)
362 throws com.liferay.portal.PortalException,
363 com.liferay.portal.SystemException;
364
365 public void unsubscribeMessage(long userId, long messageId)
366 throws com.liferay.portal.PortalException,
367 com.liferay.portal.SystemException;
368
369 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
370 long userId, long messageId, java.lang.String subject,
371 java.lang.String body)
372 throws com.liferay.portal.PortalException,
373 com.liferay.portal.SystemException;
374
375 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
376 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
377 throws com.liferay.portal.PortalException,
378 com.liferay.portal.SystemException;
379
380 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
381 long userId, long messageId, java.lang.String subject,
382 java.lang.String body,
383 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
384 java.util.List<java.lang.String> existingFiles, double priority,
385 com.liferay.portal.service.ServiceContext serviceContext)
386 throws com.liferay.portal.PortalException,
387 com.liferay.portal.SystemException;
388
389 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
390 long messageId, java.lang.String body)
391 throws com.liferay.portal.PortalException,
392 com.liferay.portal.SystemException;
393
394 public void updateTagsAsset(long userId,
395 com.liferay.portlet.messageboards.model.MBMessage message,
396 java.lang.String[] tagsEntries)
397 throws com.liferay.portal.PortalException,
398 com.liferay.portal.SystemException;
399 }