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