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.SystemException,
67 com.liferay.portal.PortalException;
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.SystemException,
85 com.liferay.portal.PortalException;
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,
118 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, long threadId,
127 long parentMessageId, 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(
150 com.liferay.portlet.messageboards.model.MBMessage message,
151 boolean addCommunityPermissions, boolean addGuestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void addMessageResources(long messageId,
156 java.lang.String[] communityPermissions,
157 java.lang.String[] guestPermissions)
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 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
275 java.lang.String className, long classPK)
276 throws com.liferay.portal.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
280 long messageId, java.lang.String threadView)
281 throws com.liferay.portal.PortalException,
282 com.liferay.portal.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
286 com.liferay.portlet.messageboards.model.MBMessage message,
287 java.lang.String threadView)
288 throws com.liferay.portal.PortalException,
289 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 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
297 long threadId) throws com.liferay.portal.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
301 long threadId,
302 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
303 throws com.liferay.portal.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
307 long threadId, int start, int end)
308 throws com.liferay.portal.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public int getThreadMessagesCount(long threadId)
312 throws com.liferay.portal.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
316 long threadId, int start, int end)
317 throws com.liferay.portal.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public void reIndex(long messageId)
321 throws com.liferay.portal.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public void reIndex(
325 com.liferay.portlet.messageboards.model.MBMessage message)
326 throws com.liferay.portal.SystemException;
327
328 public void subscribeMessage(long userId, long messageId)
329 throws com.liferay.portal.PortalException,
330 com.liferay.portal.SystemException;
331
332 public void unsubscribeMessage(long userId, long messageId)
333 throws com.liferay.portal.PortalException,
334 com.liferay.portal.SystemException;
335
336 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
337 long userId, long messageId, java.lang.String subject,
338 java.lang.String body)
339 throws com.liferay.portal.PortalException,
340 com.liferay.portal.SystemException;
341
342 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
343 long userId, long messageId, java.lang.String subject,
344 java.lang.String body,
345 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
346 java.util.List<String> existingFiles, double priority,
347 com.liferay.portal.service.ServiceContext serviceContext)
348 throws com.liferay.portal.PortalException,
349 com.liferay.portal.SystemException;
350
351 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
352 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
353 throws com.liferay.portal.PortalException,
354 com.liferay.portal.SystemException;
355
356 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
357 long messageId, java.lang.String body)
358 throws com.liferay.portal.PortalException,
359 com.liferay.portal.SystemException;
360
361 public void updateTagsAsset(long userId,
362 com.liferay.portlet.messageboards.model.MBMessage message,
363 java.lang.String[] tagsEntries)
364 throws com.liferay.portal.PortalException,
365 com.liferay.portal.SystemException;
366 }