1   /**
2    * Copyright (c) 2000-2007 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   * <a href="MBMessageLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl</code>.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.messageboards.service.MBMessageServiceFactory
48   * @see com.liferay.portlet.messageboards.service.MBMessageServiceUtil
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.model.MBMessage addDiscussionMessage(
69          long userId, java.lang.String subject, java.lang.String body)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portal.PortalException;
72  
73      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
74          long userId, long groupId, java.lang.String className, long classPK,
75          long threadId, long parentMessageId, java.lang.String subject,
76          java.lang.String body,
77          com.liferay.portal.theme.ThemeDisplay themeDisplay)
78          throws com.liferay.portal.SystemException, 
79              com.liferay.portal.PortalException;
80  
81      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
82          long userId, long categoryId, java.lang.String subject,
83          java.lang.String body, java.util.List files, boolean anonymous,
84          double priority, java.lang.String[] tagsEntries,
85          javax.portlet.PortletPreferences prefs,
86          boolean addCommunityPermissions, boolean addGuestPermissions)
87          throws com.liferay.portal.SystemException, 
88              com.liferay.portal.PortalException;
89  
90      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
91          long userId, long categoryId, java.lang.String subject,
92          java.lang.String body, java.util.List files, boolean anonymous,
93          double priority, java.lang.String[] tagsEntries,
94          javax.portlet.PortletPreferences prefs,
95          java.lang.String[] communityPermissions,
96          java.lang.String[] guestPermissions)
97          throws com.liferay.portal.SystemException, 
98              com.liferay.portal.PortalException;
99  
100     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
101         long userId, long categoryId, java.lang.String subject,
102         java.lang.String body, java.util.List files, boolean anonymous,
103         double priority, java.lang.String[] tagsEntries,
104         javax.portlet.PortletPreferences prefs,
105         java.lang.Boolean addCommunityPermissions,
106         java.lang.Boolean addGuestPermissions,
107         java.lang.String[] communityPermissions,
108         java.lang.String[] guestPermissions)
109         throws com.liferay.portal.SystemException, 
110             com.liferay.portal.PortalException;
111 
112     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
113         long userId, long categoryId, long threadId, long parentMessageId,
114         java.lang.String subject, java.lang.String body, java.util.List files,
115         boolean anonymous, double priority, java.lang.String[] tagsEntries,
116         javax.portlet.PortletPreferences prefs,
117         boolean addCommunityPermissions, boolean addGuestPermissions)
118         throws com.liferay.portal.SystemException, 
119             com.liferay.portal.PortalException;
120 
121     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
122         long userId, long categoryId, long threadId, long parentMessageId,
123         java.lang.String subject, java.lang.String body, java.util.List 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         throws com.liferay.portal.SystemException, 
129             com.liferay.portal.PortalException;
130 
131     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
132         long userId, long categoryId, long threadId, long parentMessageId,
133         java.lang.String subject, java.lang.String body, java.util.List files,
134         boolean anonymous, double priority, java.lang.String[] tagsEntries,
135         javax.portlet.PortletPreferences prefs,
136         java.lang.Boolean addCommunityPermissions,
137         java.lang.Boolean addGuestPermissions,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portal.PortalException;
142 
143     public void addMessageResources(long categoryId, long messageId,
144         boolean addCommunityPermissions, boolean addGuestPermissions)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portal.PortalException;
147 
148     public void addMessageResources(long categoryId, java.lang.String topicId,
149         long messageId, boolean addCommunityPermissions,
150         boolean addGuestPermissions)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portal.PortalException;
153 
154     public void addMessageResources(
155         com.liferay.portlet.messageboards.model.MBCategory category,
156         com.liferay.portlet.messageboards.model.MBMessage message,
157         boolean addCommunityPermissions, boolean addGuestPermissions)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portal.PortalException;
160 
161     public void addMessageResources(long categoryId, long messageId,
162         java.lang.String[] communityPermissions,
163         java.lang.String[] guestPermissions)
164         throws com.liferay.portal.SystemException, 
165             com.liferay.portal.PortalException;
166 
167     public void addMessageResources(long categoryId, java.lang.String topicId,
168         long messageId, java.lang.String[] communityPermissions,
169         java.lang.String[] guestPermissions)
170         throws com.liferay.portal.SystemException, 
171             com.liferay.portal.PortalException;
172 
173     public void addMessageResources(
174         com.liferay.portlet.messageboards.model.MBCategory category,
175         com.liferay.portlet.messageboards.model.MBMessage message,
176         java.lang.String[] communityPermissions,
177         java.lang.String[] guestPermissions)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public void deleteDiscussionMessage(long messageId)
182         throws com.liferay.portal.SystemException, 
183             com.liferay.portal.PortalException;
184 
185     public void deleteDiscussionMessages(java.lang.String className,
186         long classPK)
187         throws com.liferay.portal.SystemException, 
188             com.liferay.portal.PortalException;
189 
190     public void deleteMessage(long messageId)
191         throws com.liferay.portal.SystemException, 
192             com.liferay.portal.PortalException;
193 
194     public void deleteMessage(
195         com.liferay.portlet.messageboards.model.MBMessage message)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portal.PortalException;
198 
199     public java.util.List getCategoryMessages(long categoryId, int begin,
200         int end) throws com.liferay.portal.SystemException;
201 
202     public java.util.List getCategoryMessages(long categoryId, int begin,
203         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException;
205 
206     public int getCategoryMessagesCount(long categoryId)
207         throws com.liferay.portal.SystemException;
208 
209     public int getCategoriesMessagesCount(java.util.List categoryIds)
210         throws com.liferay.portal.SystemException;
211 
212     public java.util.List getCompanyMessages(long companyId, int begin, int end)
213         throws com.liferay.portal.SystemException;
214 
215     public java.util.List getCompanyMessages(long companyId, int begin,
216         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException;
218 
219     public int getCompanyMessagesCount(long companyId)
220         throws com.liferay.portal.SystemException;
221 
222     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
223         long userId, java.lang.String className, long classPK)
224         throws com.liferay.portal.SystemException, 
225             com.liferay.portal.PortalException;
226 
227     public int getDiscussionMessagesCount(long classNameId, long classPK)
228         throws com.liferay.portal.SystemException;
229 
230     public java.util.List getGroupMessages(long groupId, int begin, int end)
231         throws com.liferay.portal.SystemException;
232 
233     public java.util.List getGroupMessages(long groupId, int begin, int end,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException;
236 
237     public int getGroupMessagesCount(long groupId)
238         throws com.liferay.portal.SystemException;
239 
240     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
241         long messageId)
242         throws com.liferay.portal.SystemException, 
243             com.liferay.portal.PortalException;
244 
245     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
246         long messageId)
247         throws com.liferay.portal.SystemException, 
248             com.liferay.portal.PortalException;
249 
250     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
251         com.liferay.portlet.messageboards.model.MBMessage message)
252         throws com.liferay.portal.SystemException, 
253             com.liferay.portal.PortalException;
254 
255     public java.util.List getThreadMessages(long threadId)
256         throws com.liferay.portal.SystemException;
257 
258     public java.util.List getThreadMessages(long threadId,
259         java.util.Comparator comparator)
260         throws com.liferay.portal.SystemException;
261 
262     public int getThreadMessagesCount(long threadId)
263         throws com.liferay.portal.SystemException;
264 
265     public void subscribeMessage(long userId, long messageId)
266         throws com.liferay.portal.SystemException, 
267             com.liferay.portal.PortalException;
268 
269     public void unsubscribeMessage(long userId, long messageId)
270         throws com.liferay.portal.SystemException, 
271             com.liferay.portal.PortalException;
272 
273     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
274         long messageId, java.lang.String subject, java.lang.String body)
275         throws com.liferay.portal.SystemException, 
276             com.liferay.portal.PortalException;
277 
278     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
279         long messageId, long categoryId, java.lang.String subject,
280         java.lang.String body, java.util.List files, double priority,
281         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs)
282         throws com.liferay.portal.SystemException, 
283             com.liferay.portal.PortalException;
284 
285     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
286         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
287         throws com.liferay.portal.SystemException, 
288             com.liferay.portal.PortalException;
289 
290     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
291         long messageId, java.lang.String body)
292         throws com.liferay.portal.SystemException, 
293             com.liferay.portal.PortalException;
294 }