001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.security.ac.AccessControlled;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for MBMessage. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see MBMessageServiceUtil
035     * @see com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
036     * @see com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @AccessControlled
041    @JSONWebService
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface MBMessageService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link MBMessageServiceUtil} to access the message-boards message remote service. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050    
051            /**
052            * Returns the Spring bean ID for this bean.
053            *
054            * @return the Spring bean ID for this bean
055            */
056            public java.lang.String getBeanIdentifier();
057    
058            /**
059            * Sets the Spring bean ID for this bean.
060            *
061            * @param beanIdentifier the Spring bean ID for this bean
062            */
063            public void setBeanIdentifier(java.lang.String beanIdentifier);
064    
065            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
066                    long groupId, java.lang.String className, long classPK,
067                    java.lang.String permissionClassName, long permissionClassPK,
068                    long permissionOwnerId, long threadId, long parentMessageId,
069                    java.lang.String subject, java.lang.String body,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            /**
075            * @deprecated As of 6.2.0, replaced by {@link #addMessage(long, String,
076            String, String, java.util.List, boolean, double, boolean,
077            com.liferay.portal.service.ServiceContext)}
078            */
079            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
080                    long groupId, long categoryId, long threadId, long parentMessageId,
081                    java.lang.String subject, java.lang.String body,
082                    java.lang.String format,
083                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
084                    boolean anonymous, double priority, boolean allowPingbacks,
085                    com.liferay.portal.service.ServiceContext serviceContext)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
090                    long groupId, long categoryId, java.lang.String subject,
091                    java.lang.String body, java.lang.String fileName, java.io.File file,
092                    com.liferay.portal.service.ServiceContext serviceContext)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException,
095                            java.io.FileNotFoundException;
096    
097            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
098                    long groupId, long categoryId, java.lang.String subject,
099                    java.lang.String body, java.lang.String format,
100                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
101                    boolean anonymous, double priority, boolean allowPingbacks,
102                    com.liferay.portal.service.ServiceContext serviceContext)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
107                    long groupId, long categoryId, java.lang.String subject,
108                    java.lang.String body, java.lang.String format,
109                    java.lang.String fileName, java.io.File file, boolean anonymous,
110                    double priority, boolean allowPingbacks,
111                    com.liferay.portal.service.ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException,
114                            java.io.FileNotFoundException;
115    
116            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
117                    long categoryId, java.lang.String subject, java.lang.String body,
118                    com.liferay.portal.service.ServiceContext serviceContext)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
123                    long parentMessageId, java.lang.String subject, java.lang.String body,
124                    java.lang.String format,
125                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
126                    boolean anonymous, double priority, boolean allowPingbacks,
127                    com.liferay.portal.service.ServiceContext serviceContext)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            public void deleteDiscussionMessage(long groupId,
132                    java.lang.String className, long classPK,
133                    java.lang.String permissionClassName, long permissionClassPK,
134                    long permissionOwnerId, long messageId)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            public void deleteMessage(long messageId)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException;
141    
142            public void deleteMessageAttachments(long messageId)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException;
145    
146            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
148                    long groupId, long categoryId, int status, int start, int end)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public int getCategoryMessagesCount(long groupId, long categoryId,
154                    int status) throws com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public java.lang.String getCategoryMessagesRSS(long groupId,
158                    long categoryId, int status, int max, java.lang.String type,
159                    double version, java.lang.String displayStyle,
160                    java.lang.String feedURL, java.lang.String entryURL,
161                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
167                    int max, java.lang.String type, double version,
168                    java.lang.String displayStyle, java.lang.String feedURL,
169                    java.lang.String entryURL,
170                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException;
173    
174            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175            public int getGroupMessagesCount(long groupId, int status)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179            public java.lang.String getGroupMessagesRSS(long groupId, int status,
180                    int max, java.lang.String type, double version,
181                    java.lang.String displayStyle, java.lang.String feedURL,
182                    java.lang.String entryURL,
183                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException;
186    
187            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
189                    int status, int max, java.lang.String type, double version,
190                    java.lang.String displayStyle, java.lang.String feedURL,
191                    java.lang.String entryURL,
192                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
198                    long messageId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException;
201    
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
204                    long messageId, int status, java.lang.String threadView,
205                    boolean includePrevAndNext)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210            public int getThreadAnswersCount(long groupId, long categoryId,
211                    long threadId)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
216                    long groupId, long categoryId, long threadId, int status, int start,
217                    int end) throws com.liferay.portal.kernel.exception.SystemException;
218    
219            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220            public int getThreadMessagesCount(long groupId, long categoryId,
221                    long threadId, int status)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225            public java.lang.String getThreadMessagesRSS(long threadId, int status,
226                    int max, java.lang.String type, double version,
227                    java.lang.String displayStyle, java.lang.String feedURL,
228                    java.lang.String entryURL,
229                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException;
232    
233            public void restoreMessageAttachmentFromTrash(long messageId,
234                    java.lang.String fileName)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException;
237    
238            public void subscribeMessage(long messageId)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            public void unsubscribeMessage(long messageId)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException;
245    
246            public void updateAnswer(long messageId, boolean answer, boolean cascade)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException;
249    
250            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
251                    java.lang.String className, long classPK,
252                    java.lang.String permissionClassName, long permissionClassPK,
253                    long permissionOwnerId, long messageId, java.lang.String subject,
254                    java.lang.String body,
255                    com.liferay.portal.service.ServiceContext serviceContext)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException;
258    
259            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
260                    long messageId, java.lang.String subject, java.lang.String body,
261                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
262                    java.util.List<java.lang.String> existingFiles, double priority,
263                    boolean allowPingbacks,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    }