1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service;
24  
25  
26  /**
27   * <a href="MBMessageLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory
48   * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil
49   *
50   */
51  public interface MBMessageLocalService {
52      public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
53          com.liferay.portlet.messageboards.model.MBMessage model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
65          com.liferay.portlet.messageboards.model.MBMessage model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence();
69  
70      public void setMBBanPersistence(
71          com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence);
72  
73      public com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence();
74  
75      public void setMBCategoryPersistence(
76          com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence);
77  
78      public com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder();
79  
80      public void setMBCategoryFinder(
81          com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder);
82  
83      public com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence();
84  
85      public void setMBDiscussionPersistence(
86          com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence);
87  
88      public com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence();
89  
90      public void setMBMessagePersistence(
91          com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence);
92  
93      public com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder();
94  
95      public void setMBMessageFinder(
96          com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder);
97  
98      public com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence();
99  
100     public void setMBMessageFlagPersistence(
101         com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence);
102 
103     public com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder();
104 
105     public void setMBMessageFlagFinder(
106         com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder);
107 
108     public com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence();
109 
110     public void setMBStatsUserPersistence(
111         com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence);
112 
113     public com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence();
114 
115     public void setMBThreadPersistence(
116         com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence);
117 
118     public com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder();
119 
120     public void setMBThreadFinder(
121         com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder);
122 
123     public com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence();
124 
125     public void setActivityTrackerPersistence(
126         com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence);
127 
128     public com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder();
129 
130     public void setActivityTrackerFinder(
131         com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder);
132 
133     public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
134 
135     public void setCompanyPersistence(
136         com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
137 
138     public com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence();
139 
140     public void setGroupPersistence(
141         com.liferay.portal.service.persistence.GroupPersistence groupPersistence);
142 
143     public com.liferay.portal.service.persistence.GroupFinder getGroupFinder();
144 
145     public void setGroupFinder(
146         com.liferay.portal.service.persistence.GroupFinder groupFinder);
147 
148     public com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence();
149 
150     public void setPortletPreferencesPersistence(
151         com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence);
152 
153     public com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder();
154 
155     public void setPortletPreferencesFinder(
156         com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder);
157 
158     public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
159 
160     public void setResourcePersistence(
161         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
162 
163     public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
164 
165     public void setResourceFinder(
166         com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
167 
168     public com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence();
169 
170     public void setSubscriptionPersistence(
171         com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence);
172 
173     public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
174 
175     public void setUserPersistence(
176         com.liferay.portal.service.persistence.UserPersistence userPersistence);
177 
178     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
179 
180     public void setUserFinder(
181         com.liferay.portal.service.persistence.UserFinder userFinder);
182 
183     public com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence();
184 
185     public void setBlogsEntryPersistence(
186         com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence);
187 
188     public com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder();
189 
190     public void setBlogsEntryFinder(
191         com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder);
192 
193     public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
194 
195     public void setTagsAssetPersistence(
196         com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
197 
198     public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
199 
200     public void setTagsAssetFinder(
201         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
202 
203     public com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence();
204 
205     public void setTagsEntryPersistence(
206         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence);
207 
208     public com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder();
209 
210     public void setTagsEntryFinder(
211         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder);
212 
213     public void afterPropertiesSet();
214 
215     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
216         long userId, java.lang.String subject, java.lang.String body)
217         throws com.liferay.portal.SystemException, 
218             com.liferay.portal.PortalException;
219 
220     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
221         long userId, long groupId, java.lang.String className, long classPK,
222         long threadId, long parentMessageId, java.lang.String subject,
223         java.lang.String body)
224         throws com.liferay.portal.SystemException, 
225             com.liferay.portal.PortalException;
226 
227     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
228         long userId, long groupId, java.lang.String className, long classPK,
229         long threadId, long parentMessageId, java.lang.String subject,
230         java.lang.String body,
231         com.liferay.portal.theme.ThemeDisplay themeDisplay)
232         throws com.liferay.portal.SystemException, 
233             com.liferay.portal.PortalException;
234 
235     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
236         long userId, long categoryId, java.lang.String subject,
237         java.lang.String body, java.util.List files, boolean anonymous,
238         double priority, java.lang.String[] tagsEntries,
239         javax.portlet.PortletPreferences prefs,
240         boolean addCommunityPermissions, boolean addGuestPermissions,
241         com.liferay.portal.theme.ThemeDisplay themeDisplay)
242         throws com.liferay.portal.SystemException, 
243             com.liferay.portal.PortalException;
244 
245     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
246         long userId, long categoryId, java.lang.String subject,
247         java.lang.String body, java.util.List files, boolean anonymous,
248         double priority, java.lang.String[] tagsEntries,
249         javax.portlet.PortletPreferences prefs,
250         java.lang.String[] communityPermissions,
251         java.lang.String[] guestPermissions,
252         com.liferay.portal.theme.ThemeDisplay themeDisplay)
253         throws com.liferay.portal.SystemException, 
254             com.liferay.portal.PortalException;
255 
256     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
257         long userId, long categoryId, java.lang.String subject,
258         java.lang.String body, java.util.List files, boolean anonymous,
259         double priority, java.lang.String[] tagsEntries,
260         javax.portlet.PortletPreferences prefs,
261         java.lang.Boolean addCommunityPermissions,
262         java.lang.Boolean addGuestPermissions,
263         java.lang.String[] communityPermissions,
264         java.lang.String[] guestPermissions,
265         com.liferay.portal.theme.ThemeDisplay themeDisplay)
266         throws com.liferay.portal.SystemException, 
267             com.liferay.portal.PortalException;
268 
269     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
270         long userId, long categoryId, long threadId, long parentMessageId,
271         java.lang.String subject, java.lang.String body, java.util.List files,
272         boolean anonymous, double priority, java.lang.String[] tagsEntries,
273         javax.portlet.PortletPreferences prefs,
274         boolean addCommunityPermissions, boolean addGuestPermissions,
275         com.liferay.portal.theme.ThemeDisplay themeDisplay)
276         throws com.liferay.portal.SystemException, 
277             com.liferay.portal.PortalException;
278 
279     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
280         long userId, long categoryId, long threadId, long parentMessageId,
281         java.lang.String subject, java.lang.String body, java.util.List files,
282         boolean anonymous, double priority, java.lang.String[] tagsEntries,
283         javax.portlet.PortletPreferences prefs,
284         java.lang.String[] communityPermissions,
285         java.lang.String[] guestPermissions,
286         com.liferay.portal.theme.ThemeDisplay themeDisplay)
287         throws com.liferay.portal.SystemException, 
288             com.liferay.portal.PortalException;
289 
290     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
291         java.lang.String uuid, long userId, long categoryId, long threadId,
292         long parentMessageId, java.lang.String subject, java.lang.String body,
293         java.util.List files, boolean anonymous, double priority,
294         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
295         boolean addCommunityPermissions, boolean addGuestPermissions,
296         com.liferay.portal.theme.ThemeDisplay themeDisplay)
297         throws com.liferay.portal.SystemException, 
298             com.liferay.portal.PortalException;
299 
300     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
301         java.lang.String uuid, long userId, long categoryId, long threadId,
302         long parentMessageId, java.lang.String subject, java.lang.String body,
303         java.util.List files, boolean anonymous, double priority,
304         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
305         java.lang.Boolean addCommunityPermissions,
306         java.lang.Boolean addGuestPermissions,
307         java.lang.String[] communityPermissions,
308         java.lang.String[] guestPermissions,
309         com.liferay.portal.theme.ThemeDisplay themeDisplay)
310         throws com.liferay.portal.SystemException, 
311             com.liferay.portal.PortalException;
312 
313     public void addMessageResources(long categoryId, long messageId,
314         boolean addCommunityPermissions, boolean addGuestPermissions)
315         throws com.liferay.portal.SystemException, 
316             com.liferay.portal.PortalException;
317 
318     public void addMessageResources(long categoryId, java.lang.String topicId,
319         long messageId, boolean addCommunityPermissions,
320         boolean addGuestPermissions)
321         throws com.liferay.portal.SystemException, 
322             com.liferay.portal.PortalException;
323 
324     public void addMessageResources(
325         com.liferay.portlet.messageboards.model.MBCategory category,
326         com.liferay.portlet.messageboards.model.MBMessage message,
327         boolean addCommunityPermissions, boolean addGuestPermissions)
328         throws com.liferay.portal.SystemException, 
329             com.liferay.portal.PortalException;
330 
331     public void addMessageResources(long categoryId, long messageId,
332         java.lang.String[] communityPermissions,
333         java.lang.String[] guestPermissions)
334         throws com.liferay.portal.SystemException, 
335             com.liferay.portal.PortalException;
336 
337     public void addMessageResources(long categoryId, java.lang.String topicId,
338         long messageId, java.lang.String[] communityPermissions,
339         java.lang.String[] guestPermissions)
340         throws com.liferay.portal.SystemException, 
341             com.liferay.portal.PortalException;
342 
343     public void addMessageResources(
344         com.liferay.portlet.messageboards.model.MBCategory category,
345         com.liferay.portlet.messageboards.model.MBMessage message,
346         java.lang.String[] communityPermissions,
347         java.lang.String[] guestPermissions)
348         throws com.liferay.portal.SystemException, 
349             com.liferay.portal.PortalException;
350 
351     public void deleteDiscussionMessage(long messageId)
352         throws com.liferay.portal.SystemException, 
353             com.liferay.portal.PortalException;
354 
355     public void deleteDiscussionMessages(java.lang.String className,
356         long classPK)
357         throws com.liferay.portal.SystemException, 
358             com.liferay.portal.PortalException;
359 
360     public void deleteMessage(long messageId)
361         throws com.liferay.portal.SystemException, 
362             com.liferay.portal.PortalException;
363 
364     public void deleteMessage(
365         com.liferay.portlet.messageboards.model.MBMessage message)
366         throws com.liferay.portal.SystemException, 
367             com.liferay.portal.PortalException;
368 
369     public java.util.List getCategoryMessages(long categoryId, int begin,
370         int end) throws com.liferay.portal.SystemException;
371 
372     public java.util.List getCategoryMessages(long categoryId, int begin,
373         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
374         throws com.liferay.portal.SystemException;
375 
376     public int getCategoryMessagesCount(long categoryId)
377         throws com.liferay.portal.SystemException;
378 
379     public int getCategoriesMessagesCount(java.util.List categoryIds)
380         throws com.liferay.portal.SystemException;
381 
382     public java.util.List getCompanyMessages(long companyId, int begin, int end)
383         throws com.liferay.portal.SystemException;
384 
385     public java.util.List getCompanyMessages(long companyId, int begin,
386         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
387         throws com.liferay.portal.SystemException;
388 
389     public int getCompanyMessagesCount(long companyId)
390         throws com.liferay.portal.SystemException;
391 
392     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
393         long userId, java.lang.String className, long classPK)
394         throws com.liferay.portal.SystemException, 
395             com.liferay.portal.PortalException;
396 
397     public int getDiscussionMessagesCount(long classNameId, long classPK)
398         throws com.liferay.portal.SystemException;
399 
400     public java.util.List getGroupMessages(long groupId, int begin, int end)
401         throws com.liferay.portal.SystemException;
402 
403     public java.util.List getGroupMessages(long groupId, int begin, int end,
404         com.liferay.portal.kernel.util.OrderByComparator obc)
405         throws com.liferay.portal.SystemException;
406 
407     public java.util.List getGroupMessages(long groupId, long userId,
408         int begin, int end) throws com.liferay.portal.SystemException;
409 
410     public java.util.List getGroupMessages(long groupId, long userId,
411         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
412         throws com.liferay.portal.SystemException;
413 
414     public int getGroupMessagesCount(long groupId)
415         throws com.liferay.portal.SystemException;
416 
417     public int getGroupMessagesCount(long groupId, long userId)
418         throws com.liferay.portal.SystemException;
419 
420     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
421         long messageId)
422         throws com.liferay.portal.SystemException, 
423             com.liferay.portal.PortalException;
424 
425     public java.util.List getMessages(java.lang.String className, long classPK)
426         throws com.liferay.portal.SystemException, 
427             com.liferay.portal.PortalException;
428 
429     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
430         long messageId)
431         throws com.liferay.portal.SystemException, 
432             com.liferay.portal.PortalException;
433 
434     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
435         com.liferay.portlet.messageboards.model.MBMessage message)
436         throws com.liferay.portal.SystemException, 
437             com.liferay.portal.PortalException;
438 
439     public java.util.List getNoAssetMessages()
440         throws com.liferay.portal.SystemException;
441 
442     public java.util.List getThreadMessages(long threadId)
443         throws com.liferay.portal.SystemException;
444 
445     public java.util.List getThreadMessages(long threadId,
446         java.util.Comparator comparator)
447         throws com.liferay.portal.SystemException;
448 
449     public int getThreadMessagesCount(long threadId)
450         throws com.liferay.portal.SystemException;
451 
452     public void subscribeMessage(long userId, long messageId)
453         throws com.liferay.portal.SystemException, 
454             com.liferay.portal.PortalException;
455 
456     public void unsubscribeMessage(long userId, long messageId)
457         throws com.liferay.portal.SystemException, 
458             com.liferay.portal.PortalException;
459 
460     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
461         long userId, long messageId, java.lang.String subject,
462         java.lang.String body)
463         throws com.liferay.portal.SystemException, 
464             com.liferay.portal.PortalException;
465 
466     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
467         long userId, long messageId, java.lang.String subject,
468         java.lang.String body, java.util.List files, double priority,
469         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
470         com.liferay.portal.theme.ThemeDisplay themeDisplay)
471         throws com.liferay.portal.SystemException, 
472             com.liferay.portal.PortalException;
473 
474     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
475         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
476         throws com.liferay.portal.SystemException, 
477             com.liferay.portal.PortalException;
478 
479     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
480         long messageId, java.lang.String body)
481         throws com.liferay.portal.SystemException, 
482             com.liferay.portal.PortalException;
483 
484     public void updateTagsAsset(long userId,
485         com.liferay.portlet.messageboards.model.MBMessage message,
486         java.lang.String[] tagsEntries)
487         throws com.liferay.portal.SystemException, 
488             com.liferay.portal.PortalException;
489 }