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