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.SystemException,
57              com.liferay.portal.PortalException;
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.SystemException,
65              com.liferay.portal.PortalException;
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.SystemException,
74              com.liferay.portal.PortalException;
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.SystemException,
84              com.liferay.portal.PortalException;
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.SystemException,
95              com.liferay.portal.PortalException;
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.SystemException,
104             com.liferay.portal.PortalException;
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.SystemException,
114             com.liferay.portal.PortalException;
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.SystemException,
125             com.liferay.portal.PortalException;
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.SystemException,
137             com.liferay.portal.PortalException;
138 
139     public void deleteDiscussionMessage(long groupId,
140         java.lang.String className, long classPK, long messageId)
141         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
142             com.liferay.portal.PortalException;
143 
144     public void deleteMessage(long messageId)
145         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
146             com.liferay.portal.PortalException;
147 
148     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
149         long categoryId, int begin, int end)
150         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
151             com.liferay.portal.PortalException;
152 
153     public int getCategoryMessagesCount(long categoryId)
154         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
155             com.liferay.portal.PortalException;
156 
157     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
158         java.lang.String type, double version, java.lang.String displayStyle,
159         java.lang.String feedURL, java.lang.String entryURL)
160         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
161             com.liferay.portal.PortalException;
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         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
167             com.liferay.portal.PortalException;
168 
169     public java.lang.String getGroupMessagesRSS(long groupId, int max,
170         java.lang.String type, double version, java.lang.String displayStyle,
171         java.lang.String feedURL, java.lang.String entryURL)
172         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
173             com.liferay.portal.PortalException;
174 
175     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
176         int max, java.lang.String type, double version,
177         java.lang.String displayStyle, java.lang.String feedURL,
178         java.lang.String entryURL)
179         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
180             com.liferay.portal.PortalException;
181 
182     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
183         long messageId)
184         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
185             com.liferay.portal.PortalException;
186 
187     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
188         long messageId)
189         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
190             com.liferay.portal.PortalException;
191 
192     public java.lang.String getThreadMessagesRSS(long threadId, int max,
193         java.lang.String type, double version, java.lang.String displayStyle,
194         java.lang.String feedURL, java.lang.String entryURL)
195         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
196             com.liferay.portal.PortalException;
197 
198     public void subscribeMessage(long messageId)
199         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
200             com.liferay.portal.PortalException;
201 
202     public void unsubscribeMessage(long messageId)
203         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
204             com.liferay.portal.PortalException;
205 
206     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
207         long groupId, java.lang.String className, long classPK, long messageId,
208         java.lang.String subject, java.lang.String body)
209         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
210             com.liferay.portal.PortalException;
211 
212     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
213         long messageId, java.lang.String subject, java.lang.String body,
214         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
215         java.util.List<String> existingFiles, double priority,
216         java.lang.String[] tagsEntries)
217         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
218             com.liferay.portal.PortalException;
219 
220     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
221         long messageId, java.lang.String subject, java.lang.String body,
222         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
223         java.util.List<String> existingFiles, double priority,
224         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
225         com.liferay.portal.theme.ThemeDisplay themeDisplay)
226         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
227             com.liferay.portal.PortalException;
228 }