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