1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="MBMessageService.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.MBMessageServiceImpl}}.
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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       MBMessageServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface MBMessageService {
50      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
51          long groupId, java.lang.String className, long classPK,
52          java.lang.String permissionClassName, long permissionClassPK,
53          long threadId, long parentMessageId, java.lang.String subject,
54          java.lang.String body,
55          com.liferay.portal.service.ServiceContext serviceContext)
56          throws com.liferay.portal.kernel.exception.PortalException,
57              com.liferay.portal.kernel.exception.SystemException;
58  
59      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
60          long groupId, long categoryId, java.lang.String subject,
61          java.lang.String body,
62          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
63          boolean anonymous, double priority, boolean allowPingbacks,
64          com.liferay.portal.service.ServiceContext serviceContext)
65          throws com.liferay.portal.kernel.exception.PortalException,
66              com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
69          long groupId, long categoryId, long threadId, long parentMessageId,
70          java.lang.String subject, java.lang.String body,
71          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
72          boolean anonymous, double priority, boolean allowPingbacks,
73          com.liferay.portal.service.ServiceContext serviceContext)
74          throws com.liferay.portal.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public void deleteDiscussionMessage(long groupId,
78          java.lang.String className, long classPK,
79          java.lang.String permissionClassName, long permissionClassPK,
80          long messageId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public void deleteMessage(long messageId)
85          throws com.liferay.portal.kernel.exception.PortalException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
90          long groupId, long categoryId, int status, int start, int end)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getCategoryMessagesCount(long groupId, long categoryId,
96          int status) throws com.liferay.portal.kernel.exception.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.lang.String getCategoryMessagesRSS(long groupId,
100         long categoryId, int status, int max, java.lang.String type,
101         double version, java.lang.String displayStyle,
102         java.lang.String feedURL, java.lang.String entryURL,
103         com.liferay.portal.theme.ThemeDisplay themeDisplay)
104         throws com.liferay.portal.kernel.exception.PortalException,
105             com.liferay.portal.kernel.exception.SystemException;
106 
107     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108     public java.lang.String getCompanyMessagesRSS(long companyId, int status,
109         int max, java.lang.String type, double version,
110         java.lang.String displayStyle, java.lang.String feedURL,
111         java.lang.String entryURL,
112         com.liferay.portal.theme.ThemeDisplay themeDisplay)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117     public java.lang.String getGroupMessagesRSS(long groupId, int status,
118         int max, java.lang.String type, double version,
119         java.lang.String displayStyle, java.lang.String feedURL,
120         java.lang.String entryURL,
121         com.liferay.portal.theme.ThemeDisplay themeDisplay)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
127         int status, int max, java.lang.String type, double version,
128         java.lang.String displayStyle, java.lang.String feedURL,
129         java.lang.String entryURL,
130         com.liferay.portal.theme.ThemeDisplay themeDisplay)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException;
133 
134     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
136         long messageId)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
142         long messageId, int status, java.lang.String threadView,
143         boolean includePrevAndNext)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
149         long groupId, long categoryId, long threadId, int status, int start,
150         int end) throws com.liferay.portal.kernel.exception.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public int getThreadMessagesCount(long groupId, long categoryId,
154         long threadId, int status)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public java.lang.String getThreadMessagesRSS(long threadId, int status,
159         int max, java.lang.String type, double version,
160         java.lang.String displayStyle, java.lang.String feedURL,
161         java.lang.String entryURL,
162         com.liferay.portal.theme.ThemeDisplay themeDisplay)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public void subscribeMessage(long messageId)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException;
169 
170     public void unsubscribeMessage(long messageId)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException;
173 
174     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
175         java.lang.String className, long classPK,
176         java.lang.String permissionClassName, long permissionClassPK,
177         long messageId, java.lang.String subject, java.lang.String body,
178         com.liferay.portal.service.ServiceContext serviceContext)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException;
181 
182     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
183         long messageId, java.lang.String subject, java.lang.String body,
184         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
185         java.util.List<java.lang.String> existingFiles, double priority,
186         boolean allowPingbacks,
187         com.liferay.portal.service.ServiceContext serviceContext)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException;
190 }