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="MBMessageService.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.MBMessageServiceImpl</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 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.
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 MBMessageService {
52      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
53          long groupId, java.lang.String className, long classPK, long threadId,
54          long parentMessageId, java.lang.String subject, java.lang.String body,
55          com.liferay.portal.theme.ThemeDisplay themeDisplay)
56          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
60          long categoryId, java.lang.String subject, java.lang.String body,
61          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
62          boolean anonymous, double priority, java.lang.String[] tagsEntries,
63          boolean addCommunityPermissions, boolean addGuestPermissions)
64          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException;
66  
67      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
68          long categoryId, java.lang.String subject, java.lang.String body,
69          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
70          boolean anonymous, double priority, java.lang.String[] tagsEntries,
71          java.lang.String[] communityPermissions,
72          java.lang.String[] guestPermissions)
73          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException;
75  
76      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
77          long categoryId, java.lang.String subject, java.lang.String body,
78          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
79          boolean anonymous, double priority, java.lang.String[] tagsEntries,
80          javax.portlet.PortletPreferences prefs,
81          boolean addCommunityPermissions, boolean addGuestPermissions,
82          com.liferay.portal.theme.ThemeDisplay themeDisplay)
83          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
87          long categoryId, java.lang.String subject, java.lang.String body,
88          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
89          boolean anonymous, double priority, java.lang.String[] tagsEntries,
90          javax.portlet.PortletPreferences prefs,
91          java.lang.String[] communityPermissions,
92          java.lang.String[] guestPermissions,
93          com.liferay.portal.theme.ThemeDisplay themeDisplay)
94          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
98          long categoryId, long threadId, long parentMessageId,
99          java.lang.String subject, 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         boolean addCommunityPermissions, boolean addGuestPermissions)
103         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
107         long categoryId, long threadId, long parentMessageId,
108         java.lang.String subject, java.lang.String body,
109         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
110         boolean anonymous, double priority, java.lang.String[] tagsEntries,
111         java.lang.String[] communityPermissions,
112         java.lang.String[] guestPermissions)
113         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
117         long categoryId, long threadId, long parentMessageId,
118         java.lang.String subject, java.lang.String body,
119         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
120         boolean anonymous, double priority, java.lang.String[] tagsEntries,
121         javax.portlet.PortletPreferences prefs,
122         boolean addCommunityPermissions, boolean addGuestPermissions,
123         com.liferay.portal.theme.ThemeDisplay themeDisplay)
124         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
128         long categoryId, long threadId, long parentMessageId,
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, java.lang.String[] tagsEntries,
132         javax.portlet.PortletPreferences prefs,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions,
135         com.liferay.portal.theme.ThemeDisplay themeDisplay)
136         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void deleteDiscussionMessage(long groupId,
140         java.lang.String className, long classPK, long messageId)
141         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void deleteMessage(long messageId)
145         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
149         long categoryId, int start, int end)
150         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public int getCategoryMessagesCount(long categoryId)
154         throws java.rmi.RemoteException, com.liferay.portal.SystemException;
155 
156     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
157         java.lang.String type, double version, java.lang.String displayStyle,
158         java.lang.String feedURL, java.lang.String entryURL,
159         com.liferay.portal.theme.ThemeDisplay themeDisplay)
160         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public java.lang.String getCompanyMessagesRSS(long companyId, int max,
164         java.lang.String type, double version, java.lang.String displayStyle,
165         java.lang.String feedURL, java.lang.String entryURL,
166         com.liferay.portal.theme.ThemeDisplay themeDisplay)
167         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public java.lang.String getGroupMessagesRSS(long groupId, int max,
171         java.lang.String type, double version, java.lang.String displayStyle,
172         java.lang.String feedURL, java.lang.String entryURL,
173         com.liferay.portal.theme.ThemeDisplay themeDisplay)
174         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException;
176 
177     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
178         int max, java.lang.String type, double version,
179         java.lang.String displayStyle, java.lang.String feedURL,
180         java.lang.String entryURL,
181         com.liferay.portal.theme.ThemeDisplay themeDisplay)
182         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
186         long messageId)
187         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 
190     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
191         long messageId)
192         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     public java.lang.String getThreadMessagesRSS(long threadId, int max,
196         java.lang.String type, double version, java.lang.String displayStyle,
197         java.lang.String feedURL, java.lang.String entryURL,
198         com.liferay.portal.theme.ThemeDisplay themeDisplay)
199         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     public void subscribeMessage(long messageId)
203         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException;
205 
206     public void unsubscribeMessage(long messageId)
207         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
211         long groupId, java.lang.String className, long classPK, long messageId,
212         java.lang.String subject, java.lang.String body)
213         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException;
215 
216     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
217         long messageId, java.lang.String subject, java.lang.String body,
218         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
219         java.util.List<String> existingFiles, double priority,
220         java.lang.String[] tagsEntries)
221         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException;
223 
224     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
225         long messageId, java.lang.String subject, java.lang.String body,
226         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
227         java.util.List<String> existingFiles, double priority,
228         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
229         com.liferay.portal.theme.ThemeDisplay themeDisplay)
230         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException;
232 }