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 files, boolean anonymous, double priority,
62          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
63          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 files, boolean anonymous, double priority,
70          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 files, boolean anonymous, double priority,
79          java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
80          boolean addCommunityPermissions, boolean addGuestPermissions,
81          com.liferay.portal.theme.ThemeDisplay themeDisplay)
82          throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
83              com.liferay.portal.PortalException;
84  
85      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
86          long categoryId, java.lang.String subject, java.lang.String body,
87          java.util.List files, boolean anonymous, double priority,
88          java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
89          java.lang.String[] communityPermissions,
90          java.lang.String[] guestPermissions,
91          com.liferay.portal.theme.ThemeDisplay themeDisplay)
92          throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
93              com.liferay.portal.PortalException;
94  
95      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
96          long categoryId, long threadId, long parentMessageId,
97          java.lang.String subject, java.lang.String body, java.util.List files,
98          boolean anonymous, double priority, java.lang.String[] tagsEntries,
99          boolean addCommunityPermissions, boolean addGuestPermissions)
100         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
101             com.liferay.portal.PortalException;
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, java.util.List files,
106         boolean anonymous, double priority, java.lang.String[] tagsEntries,
107         java.lang.String[] communityPermissions,
108         java.lang.String[] guestPermissions)
109         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
110             com.liferay.portal.PortalException;
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, java.util.List files,
115         boolean anonymous, double priority, java.lang.String[] tagsEntries,
116         javax.portlet.PortletPreferences prefs,
117         boolean addCommunityPermissions, boolean addGuestPermissions,
118         com.liferay.portal.theme.ThemeDisplay themeDisplay)
119         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
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, java.util.List files,
125         boolean anonymous, double priority, java.lang.String[] tagsEntries,
126         javax.portlet.PortletPreferences prefs,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions,
129         com.liferay.portal.theme.ThemeDisplay themeDisplay)
130         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
131             com.liferay.portal.PortalException;
132 
133     public void deleteDiscussionMessage(long groupId,
134         java.lang.String className, long classPK, long messageId)
135         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
136             com.liferay.portal.PortalException;
137 
138     public void deleteMessage(long messageId)
139         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
140             com.liferay.portal.PortalException;
141 
142     public java.util.List getCategoryMessages(long categoryId, int begin,
143         int end)
144         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
145             com.liferay.portal.PortalException;
146 
147     public int getCategoryMessagesCount(long categoryId)
148         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
149             com.liferay.portal.PortalException;
150 
151     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
152         java.lang.String type, double version, java.lang.String displayStyle,
153         java.lang.String feedURL, java.lang.String entryURL)
154         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
155             com.liferay.portal.PortalException;
156 
157     public java.lang.String getCompanyMessagesRSS(long companyId, 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 getGroupMessagesRSS(long groupId, 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, long userId,
170         int max, java.lang.String type, double version,
171         java.lang.String displayStyle, java.lang.String feedURL,
172         java.lang.String entryURL)
173         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
174             com.liferay.portal.PortalException;
175 
176     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
177         long messageId)
178         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
182         long messageId)
183         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException;
185 
186     public java.lang.String getThreadMessagesRSS(long threadId, int max,
187         java.lang.String type, double version, java.lang.String displayStyle,
188         java.lang.String feedURL, java.lang.String entryURL)
189         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
190             com.liferay.portal.PortalException;
191 
192     public void subscribeMessage(long messageId)
193         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
194             com.liferay.portal.PortalException;
195 
196     public void unsubscribeMessage(long messageId)
197         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
198             com.liferay.portal.PortalException;
199 
200     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
201         long groupId, java.lang.String className, long classPK, long messageId,
202         java.lang.String subject, java.lang.String body)
203         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
204             com.liferay.portal.PortalException;
205 
206     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
207         long messageId, java.lang.String subject, java.lang.String body,
208         java.util.List files, double priority, java.lang.String[] tagsEntries)
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 files, double priority, java.lang.String[] tagsEntries,
215         javax.portlet.PortletPreferences prefs,
216         com.liferay.portal.theme.ThemeDisplay themeDisplay)
217         throws java.rmi.RemoteException, com.liferay.portal.SystemException, 
218             com.liferay.portal.PortalException;
219 }