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