1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="MBMessageService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       MBMessageServiceUtil
53   * @generated
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface MBMessageService {
58      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
59          long groupId, java.lang.String className, long classPK, long threadId,
60          long parentMessageId, java.lang.String subject, java.lang.String body,
61          com.liferay.portal.theme.ThemeDisplay themeDisplay)
62          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException;
64  
65      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
66          long categoryId, java.lang.String subject, java.lang.String body,
67          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
68          boolean anonymous, double priority, java.lang.String[] tagsEntries,
69          boolean addCommunityPermissions, boolean addGuestPermissions)
70          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
74          long categoryId, java.lang.String subject, java.lang.String body,
75          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
76          boolean anonymous, double priority, java.lang.String[] tagsEntries,
77          java.lang.String[] communityPermissions,
78          java.lang.String[] guestPermissions)
79          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
83          long categoryId, java.lang.String subject, java.lang.String body,
84          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
85          boolean anonymous, double priority, java.lang.String[] tagsEntries,
86          javax.portlet.PortletPreferences prefs,
87          boolean addCommunityPermissions, boolean addGuestPermissions,
88          com.liferay.portal.theme.ThemeDisplay themeDisplay)
89          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
93          long categoryId, java.lang.String subject, java.lang.String body,
94          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
95          boolean anonymous, double priority, java.lang.String[] tagsEntries,
96          javax.portlet.PortletPreferences prefs,
97          java.lang.String[] communityPermissions,
98          java.lang.String[] guestPermissions,
99          com.liferay.portal.theme.ThemeDisplay themeDisplay)
100         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
104         long categoryId, long threadId, long parentMessageId,
105         java.lang.String subject, java.lang.String body,
106         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
107         boolean anonymous, double priority, java.lang.String[] tagsEntries,
108         boolean addCommunityPermissions, boolean addGuestPermissions)
109         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
113         long categoryId, long threadId, long parentMessageId,
114         java.lang.String subject, java.lang.String body,
115         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
116         boolean anonymous, double priority, java.lang.String[] tagsEntries,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
123         long categoryId, long threadId, long parentMessageId,
124         java.lang.String subject, java.lang.String body,
125         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
126         boolean anonymous, double priority, java.lang.String[] tagsEntries,
127         javax.portlet.PortletPreferences prefs,
128         boolean addCommunityPermissions, boolean addGuestPermissions,
129         com.liferay.portal.theme.ThemeDisplay themeDisplay)
130         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
134         long categoryId, long threadId, long parentMessageId,
135         java.lang.String subject, java.lang.String body,
136         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
137         boolean anonymous, double priority, java.lang.String[] tagsEntries,
138         javax.portlet.PortletPreferences prefs,
139         java.lang.String[] communityPermissions,
140         java.lang.String[] guestPermissions,
141         com.liferay.portal.theme.ThemeDisplay themeDisplay)
142         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public void deleteDiscussionMessage(long groupId,
146         java.lang.String className, long classPK, long messageId)
147         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteMessage(long messageId)
151         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException;
153 
154     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
156         long categoryId, int start, int end)
157         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161     public int getCategoryMessagesCount(long categoryId)
162         throws java.rmi.RemoteException, com.liferay.portal.SystemException;
163 
164     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
166         java.lang.String type, double version, java.lang.String displayStyle,
167         java.lang.String feedURL, java.lang.String entryURL,
168         com.liferay.portal.theme.ThemeDisplay themeDisplay)
169         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.lang.String getCompanyMessagesRSS(long companyId, int max,
174         java.lang.String type, double version, java.lang.String displayStyle,
175         java.lang.String feedURL, java.lang.String entryURL,
176         com.liferay.portal.theme.ThemeDisplay themeDisplay)
177         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public java.lang.String getGroupMessagesRSS(long groupId, int max,
182         java.lang.String type, double version, java.lang.String displayStyle,
183         java.lang.String feedURL, java.lang.String entryURL,
184         com.liferay.portal.theme.ThemeDisplay themeDisplay)
185         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
190         int max, java.lang.String type, double version,
191         java.lang.String displayStyle, java.lang.String feedURL,
192         java.lang.String entryURL,
193         com.liferay.portal.theme.ThemeDisplay themeDisplay)
194         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
199         long messageId)
200         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
205         long messageId)
206         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
211         long messageId, java.lang.String threadView)
212         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public java.lang.String getThreadMessagesRSS(long threadId, int max,
217         java.lang.String type, double version, java.lang.String displayStyle,
218         java.lang.String feedURL, java.lang.String entryURL,
219         com.liferay.portal.theme.ThemeDisplay themeDisplay)
220         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
221             com.liferay.portal.SystemException;
222 
223     public void subscribeMessage(long messageId)
224         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException;
226 
227     public void unsubscribeMessage(long messageId)
228         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException;
230 
231     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
232         long groupId, java.lang.String className, long classPK, long messageId,
233         java.lang.String subject, java.lang.String body)
234         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException;
236 
237     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
238         long messageId, java.lang.String subject, java.lang.String body,
239         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
240         java.util.List<String> existingFiles, double priority,
241         java.lang.String[] tagsEntries)
242         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException;
244 
245     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
246         long messageId, java.lang.String subject, java.lang.String body,
247         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
248         java.util.List<String> existingFiles, double priority,
249         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
250         com.liferay.portal.theme.ThemeDisplay themeDisplay)
251         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
252             com.liferay.portal.SystemException;
253 }