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