1   /**
2    * Copyright (c) 2000-2007 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   * <a href="MBMessageService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl</code>.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a remote service. Methods of this service are expected to have security
41   * checks based on the propagated JAAS credentials because this service can be accessed
42   * 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 com.liferay.portal.SystemException, 
57              com.liferay.portal.PortalException, java.rmi.RemoteException;
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 com.liferay.portal.SystemException, 
65              com.liferay.portal.PortalException, java.rmi.RemoteException;
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, javax.portlet.PortletPreferences prefs,
71          boolean addCommunityPermissions, boolean addGuestPermissions)
72          throws com.liferay.portal.SystemException, 
73              com.liferay.portal.PortalException, java.rmi.RemoteException;
74  
75      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
76          long categoryId, long threadId, long parentMessageId,
77          java.lang.String subject, java.lang.String body, java.util.List files,
78          boolean anonymous, double priority, java.lang.String[] tagsEntries,
79          boolean addCommunityPermissions, boolean addGuestPermissions)
80          throws com.liferay.portal.SystemException, 
81              com.liferay.portal.PortalException, java.rmi.RemoteException;
82  
83      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
84          long categoryId, long threadId, long parentMessageId,
85          java.lang.String subject, java.lang.String body, java.util.List files,
86          boolean anonymous, double priority, java.lang.String[] tagsEntries,
87          javax.portlet.PortletPreferences prefs,
88          boolean addCommunityPermissions, boolean addGuestPermissions)
89          throws com.liferay.portal.SystemException, 
90              com.liferay.portal.PortalException, java.rmi.RemoteException;
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 files, boolean anonymous, double priority,
95          java.lang.String[] tagsEntries,
96          java.lang.String[] communityPermissions,
97          java.lang.String[] guestPermissions)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portal.PortalException, java.rmi.RemoteException;
100 
101     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
102         long categoryId, java.lang.String subject, java.lang.String body,
103         java.util.List files, boolean anonymous, double priority,
104         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
105         java.lang.String[] communityPermissions,
106         java.lang.String[] guestPermissions)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portal.PortalException, java.rmi.RemoteException;
109 
110     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
111         long categoryId, long threadId, long parentMessageId,
112         java.lang.String subject, java.lang.String body, java.util.List files,
113         boolean anonymous, double priority, java.lang.String[] tagsEntries,
114         java.lang.String[] communityPermissions,
115         java.lang.String[] guestPermissions)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portal.PortalException, java.rmi.RemoteException;
118 
119     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
120         long categoryId, long threadId, long parentMessageId,
121         java.lang.String subject, java.lang.String body, java.util.List files,
122         boolean anonymous, double priority, java.lang.String[] tagsEntries,
123         javax.portlet.PortletPreferences prefs,
124         java.lang.String[] communityPermissions,
125         java.lang.String[] guestPermissions)
126         throws com.liferay.portal.SystemException, 
127             com.liferay.portal.PortalException, java.rmi.RemoteException;
128 
129     public void deleteDiscussionMessage(long groupId,
130         java.lang.String className, long classPK, long messageId)
131         throws com.liferay.portal.SystemException, 
132             com.liferay.portal.PortalException, java.rmi.RemoteException;
133 
134     public void deleteMessage(long messageId)
135         throws com.liferay.portal.SystemException, 
136             com.liferay.portal.PortalException, java.rmi.RemoteException;
137 
138     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
139         java.lang.String type, double version, java.lang.String feedURL,
140         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
141         throws com.liferay.portal.SystemException, 
142             com.liferay.portal.PortalException, java.rmi.RemoteException;
143 
144     public java.lang.String getCompanyMessagesRSS(long companyId, int max,
145         java.lang.String type, double version, java.lang.String feedURL,
146         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
147         throws com.liferay.portal.SystemException, 
148             com.liferay.portal.PortalException, java.rmi.RemoteException;
149 
150     public java.lang.String getGroupMessagesRSS(long groupId, int max,
151         java.lang.String type, double version, java.lang.String feedURL,
152         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portal.PortalException, java.rmi.RemoteException;
155 
156     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
157         long messageId)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portal.PortalException, java.rmi.RemoteException;
160 
161     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
162         long messageId)
163         throws com.liferay.portal.SystemException, 
164             com.liferay.portal.PortalException, java.rmi.RemoteException;
165 
166     public java.lang.String getThreadMessagesRSS(long threadId, int max,
167         java.lang.String type, double version, java.lang.String feedURL,
168         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
169         throws com.liferay.portal.SystemException, 
170             com.liferay.portal.PortalException, java.rmi.RemoteException;
171 
172     public void subscribeMessage(long messageId)
173         throws com.liferay.portal.SystemException, 
174             com.liferay.portal.PortalException, java.rmi.RemoteException;
175 
176     public void unsubscribeMessage(long messageId)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portal.PortalException, java.rmi.RemoteException;
179 
180     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
181         long groupId, java.lang.String className, long classPK, long messageId,
182         java.lang.String subject, java.lang.String body)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException, java.rmi.RemoteException;
185 
186     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
187         long messageId, long categoryId, java.lang.String subject,
188         java.lang.String body, java.util.List files, double priority,
189         java.lang.String[] tagsEntries)
190         throws com.liferay.portal.SystemException, 
191             com.liferay.portal.PortalException, java.rmi.RemoteException;
192 
193     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
194         long messageId, long categoryId, java.lang.String subject,
195         java.lang.String body, java.util.List files, double priority,
196         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs)
197         throws com.liferay.portal.SystemException, 
198             com.liferay.portal.PortalException, java.rmi.RemoteException;
199 }