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