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