1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="MBMessageLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl}}.
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 based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       MBMessageLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface MBMessageLocalService {
50      public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
51          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
55          long messageId);
56  
57      public void deleteMBMessage(long messageId)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteMBMessage(
62          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
85          long messageId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
91          int start, int end) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getMBMessagesCount() throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
97          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
101         com.liferay.portlet.messageboards.model.MBMessage mbMessage,
102         boolean merge) throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
105         long userId, java.lang.String userName, java.lang.String className,
106         long classPK)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
111         long userId, java.lang.String userName, java.lang.String className,
112         long classPK, long threadId, long parentMessageId,
113         java.lang.String subject, java.lang.String body,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
119         long userId, java.lang.String userName, long categoryId, long threadId,
120         long parentMessageId, java.lang.String subject, java.lang.String body,
121         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
122         boolean anonymous, double priority,
123         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
128         long userId, java.lang.String userName, long categoryId,
129         java.lang.String subject, java.lang.String body,
130         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
131         boolean anonymous, double priority,
132         com.liferay.portal.service.ServiceContext serviceContext)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
137         java.lang.String uuid, long userId, java.lang.String userName,
138         long categoryId, long threadId, long parentMessageId,
139         java.lang.String subject, java.lang.String body,
140         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
141         boolean anonymous, double priority,
142         com.liferay.portal.service.ServiceContext serviceContext)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void addMessageResources(long messageId,
147         boolean addCommunityPermissions, boolean addGuestPermissions)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void addMessageResources(long messageId,
152         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void addMessageResources(
158         com.liferay.portlet.messageboards.model.MBMessage message,
159         boolean addCommunityPermissions, boolean addGuestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void addMessageResources(
164         com.liferay.portlet.messageboards.model.MBMessage message,
165         java.lang.String[] communityPermissions,
166         java.lang.String[] guestPermissions)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public void deleteDiscussionMessage(long messageId)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void deleteDiscussionMessages(java.lang.String className,
175         long classPK)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException;
178 
179     public void deleteMessage(long messageId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public void deleteMessage(
184         com.liferay.portlet.messageboards.model.MBMessage message)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
190         long categoryId, int start, int end)
191         throws com.liferay.portal.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
195         long categoryId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public int getCategoryMessagesCount(long categoryId)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
205         long companyId, int start, int end)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
210         long companyId, int start, int end,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public int getCompanyMessagesCount(long companyId)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
220         long userId, java.lang.String className, long classPK)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
226         long userId, java.lang.String className, long classPK,
227         java.lang.String threadView)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public int getDiscussionMessagesCount(long classNameId, long classPK)
233         throws com.liferay.portal.SystemException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
237         java.lang.String className) throws com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
241         long groupId, int start, int end)
242         throws com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
246         long groupId, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
252         long groupId, long userId, int start, int end)
253         throws com.liferay.portal.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
257         long groupId, long userId, int start, int end,
258         com.liferay.portal.kernel.util.OrderByComparator obc)
259         throws com.liferay.portal.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public int getGroupMessagesCount(long groupId)
263         throws com.liferay.portal.SystemException;
264 
265     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266     public int getGroupMessagesCount(long groupId, long userId)
267         throws com.liferay.portal.SystemException;
268 
269     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
271         long messageId)
272         throws com.liferay.portal.PortalException,
273             com.liferay.portal.SystemException;
274 
275     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
277         long messageId, java.lang.String threadView)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
283         com.liferay.portlet.messageboards.model.MBMessage message,
284         java.lang.String threadView)
285         throws com.liferay.portal.PortalException,
286             com.liferay.portal.SystemException;
287 
288     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
290         java.lang.String className, long classPK)
291         throws com.liferay.portal.SystemException;
292 
293     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
295         throws com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public int getPositionInThread(long messageId)
299         throws com.liferay.portal.PortalException,
300             com.liferay.portal.SystemException;
301 
302     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
304         long threadId) throws com.liferay.portal.SystemException;
305 
306     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
308         long threadId,
309         java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
310         throws com.liferay.portal.SystemException;
311 
312     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
314         long threadId, int start, int end)
315         throws com.liferay.portal.SystemException;
316 
317     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318     public int getThreadMessagesCount(long threadId)
319         throws com.liferay.portal.SystemException;
320 
321     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
323         long threadId, int start, int end)
324         throws com.liferay.portal.SystemException;
325 
326     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327     public void reIndex(long messageId)
328         throws com.liferay.portal.SystemException;
329 
330     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331     public void reIndex(
332         com.liferay.portlet.messageboards.model.MBMessage message)
333         throws com.liferay.portal.SystemException;
334 
335     public void subscribeMessage(long userId, long messageId)
336         throws com.liferay.portal.PortalException,
337             com.liferay.portal.SystemException;
338 
339     public void unsubscribeMessage(long userId, long messageId)
340         throws com.liferay.portal.PortalException,
341             com.liferay.portal.SystemException;
342 
343     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
344         long userId, long messageId, java.lang.String subject,
345         java.lang.String body)
346         throws com.liferay.portal.PortalException,
347             com.liferay.portal.SystemException;
348 
349     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
350         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
351         throws com.liferay.portal.PortalException,
352             com.liferay.portal.SystemException;
353 
354     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
355         long userId, long messageId, java.lang.String subject,
356         java.lang.String body,
357         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
358         java.util.List<String> existingFiles, double priority,
359         com.liferay.portal.service.ServiceContext serviceContext)
360         throws com.liferay.portal.PortalException,
361             com.liferay.portal.SystemException;
362 
363     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
364         long messageId, java.lang.String body)
365         throws com.liferay.portal.PortalException,
366             com.liferay.portal.SystemException;
367 
368     public void updateTagsAsset(long userId,
369         com.liferay.portlet.messageboards.model.MBMessage message,
370         java.lang.String[] tagsEntries)
371         throws com.liferay.portal.PortalException,
372             com.liferay.portal.SystemException;
373 }