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