001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    import com.liferay.portal.security.ac.AccessControlled;
024    import com.liferay.portal.service.BaseService;
025    
026    /**
027     * Provides the remote service interface for MBMessage. Methods of this
028     * service are expected to have security checks based on the propagated JAAS
029     * credentials because this service can be accessed remotely.
030     *
031     * @author Brian Wing Shun Chan
032     * @see MBMessageServiceUtil
033     * @see com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
034     * @see com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl
035     * @generated
036     */
037    @AccessControlled
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface MBMessageService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * 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.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
063                    long groupId, java.lang.String className, long classPK,
064                    java.lang.String permissionClassName, long permissionClassPK,
065                    long permissionOwnerId, long threadId, long parentMessageId,
066                    java.lang.String subject, java.lang.String body,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * @deprecated As of 6.2.0, replaced by {@link #addMessage(long, String,
073            String, String, java.util.List, boolean, double, boolean,
074            com.liferay.portal.service.ServiceContext)}
075            */
076            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
077                    long groupId, long categoryId, long threadId, long parentMessageId,
078                    java.lang.String subject, java.lang.String body,
079                    java.lang.String format,
080                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
081                    boolean anonymous, double priority, boolean allowPingbacks,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
087                    long groupId, long categoryId, java.lang.String subject,
088                    java.lang.String body, java.lang.String format,
089                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
090                    boolean anonymous, double priority, boolean allowPingbacks,
091                    com.liferay.portal.service.ServiceContext serviceContext)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
096                    long categoryId, java.lang.String subject, java.lang.String body,
097                    com.liferay.portal.service.ServiceContext serviceContext)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
102                    long parentMessageId, java.lang.String subject, java.lang.String body,
103                    java.lang.String format,
104                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
105                    boolean anonymous, double priority, boolean allowPingbacks,
106                    com.liferay.portal.service.ServiceContext serviceContext)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public void deleteDiscussionMessage(long groupId,
111                    java.lang.String className, long classPK,
112                    java.lang.String permissionClassName, long permissionClassPK,
113                    long permissionOwnerId, long messageId)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException;
116    
117            public void deleteMessage(long messageId)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException;
120    
121            public void deleteMessageAttachments(long messageId)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
127                    long groupId, long categoryId, int status, int start, int end)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public int getCategoryMessagesCount(long groupId, long categoryId,
133                    int status) throws com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public java.lang.String getCategoryMessagesRSS(long groupId,
137                    long categoryId, int status, int max, java.lang.String type,
138                    double version, java.lang.String displayStyle,
139                    java.lang.String feedURL, java.lang.String entryURL,
140                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
146                    int max, java.lang.String type, double version,
147                    java.lang.String displayStyle, java.lang.String feedURL,
148                    java.lang.String entryURL,
149                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public int getGroupMessagesCount(long groupId, int status)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public java.lang.String getGroupMessagesRSS(long groupId, int status,
159                    int max, java.lang.String type, double version,
160                    java.lang.String displayStyle, java.lang.String feedURL,
161                    java.lang.String entryURL,
162                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
168                    int status, int max, java.lang.String type, double version,
169                    java.lang.String displayStyle, java.lang.String feedURL,
170                    java.lang.String entryURL,
171                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
177                    long messageId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
183                    long messageId, int status, java.lang.String threadView,
184                    boolean includePrevAndNext)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public int getThreadAnswersCount(long groupId, long categoryId,
190                    long threadId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
195                    long groupId, long categoryId, long threadId, int status, int start,
196                    int end) throws com.liferay.portal.kernel.exception.SystemException;
197    
198            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199            public int getThreadMessagesCount(long groupId, long categoryId,
200                    long threadId, int status)
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204            public java.lang.String getThreadMessagesRSS(long threadId, int status,
205                    int max, java.lang.String type, double version,
206                    java.lang.String displayStyle, java.lang.String feedURL,
207                    java.lang.String entryURL,
208                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException;
211    
212            public void restoreMessageAttachmentFromTrash(long messageId,
213                    java.lang.String fileName)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException;
216    
217            public void subscribeMessage(long messageId)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException;
220    
221            public void unsubscribeMessage(long messageId)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException;
224    
225            public void updateAnswer(long messageId, boolean answer, boolean cascade)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException;
228    
229            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
230                    java.lang.String className, long classPK,
231                    java.lang.String permissionClassName, long permissionClassPK,
232                    long permissionOwnerId, long messageId, java.lang.String subject,
233                    java.lang.String body,
234                    com.liferay.portal.service.ServiceContext serviceContext)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException;
237    
238            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
239                    long messageId, java.lang.String subject, java.lang.String body,
240                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
241                    java.util.List<java.lang.String> existingFiles, double priority,
242                    boolean allowPingbacks,
243                    com.liferay.portal.service.ServiceContext serviceContext)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException;
246    }