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 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 format,
092                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
093                    boolean anonymous, double priority, boolean allowPingbacks,
094                    com.liferay.portal.service.ServiceContext serviceContext)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
099                    long categoryId, java.lang.String subject, java.lang.String body,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
105                    long parentMessageId, java.lang.String subject, java.lang.String body,
106                    java.lang.String format,
107                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
108                    boolean anonymous, double priority, boolean allowPingbacks,
109                    com.liferay.portal.service.ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            public void deleteDiscussionMessage(long groupId,
114                    java.lang.String className, long classPK,
115                    java.lang.String permissionClassName, long permissionClassPK,
116                    long permissionOwnerId, long messageId)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            public void deleteMessage(long messageId)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            public void deleteMessageAttachments(long messageId)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
130                    long groupId, long categoryId, int status, int start, int end)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException;
133    
134            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135            public int getCategoryMessagesCount(long groupId, long categoryId,
136                    int status) throws com.liferay.portal.kernel.exception.SystemException;
137    
138            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139            public java.lang.String getCategoryMessagesRSS(long groupId,
140                    long categoryId, int status, int max, java.lang.String type,
141                    double version, java.lang.String displayStyle,
142                    java.lang.String feedURL, java.lang.String entryURL,
143                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
149                    int max, java.lang.String type, double version,
150                    java.lang.String displayStyle, java.lang.String feedURL,
151                    java.lang.String entryURL,
152                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public int getGroupMessagesCount(long groupId, int status)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161            public java.lang.String getGroupMessagesRSS(long groupId, int status,
162                    int max, java.lang.String type, double version,
163                    java.lang.String displayStyle, java.lang.String feedURL,
164                    java.lang.String entryURL,
165                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
171                    int status, int max, java.lang.String type, double version,
172                    java.lang.String displayStyle, java.lang.String feedURL,
173                    java.lang.String entryURL,
174                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException;
177    
178            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
180                    long messageId)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException;
183    
184            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
186                    long messageId, int status, java.lang.String threadView,
187                    boolean includePrevAndNext)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public int getThreadAnswersCount(long groupId, long categoryId,
193                    long threadId)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
198                    long groupId, long categoryId, long threadId, int status, int start,
199                    int end) throws com.liferay.portal.kernel.exception.SystemException;
200    
201            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202            public int getThreadMessagesCount(long groupId, long categoryId,
203                    long threadId, int status)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207            public java.lang.String getThreadMessagesRSS(long threadId, int status,
208                    int max, java.lang.String type, double version,
209                    java.lang.String displayStyle, java.lang.String feedURL,
210                    java.lang.String entryURL,
211                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException;
214    
215            public void restoreMessageAttachmentFromTrash(long messageId,
216                    java.lang.String fileName)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            public void subscribeMessage(long messageId)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException;
223    
224            public void unsubscribeMessage(long messageId)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException;
227    
228            public void updateAnswer(long messageId, boolean answer, boolean cascade)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException;
231    
232            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
233                    java.lang.String className, long classPK,
234                    java.lang.String permissionClassName, long permissionClassPK,
235                    long permissionOwnerId, long messageId, java.lang.String subject,
236                    java.lang.String body,
237                    com.liferay.portal.service.ServiceContext serviceContext)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException;
240    
241            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
242                    long messageId, java.lang.String subject, java.lang.String body,
243                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
244                    java.util.List<java.lang.String> existingFiles, double priority,
245                    boolean allowPingbacks,
246                    com.liferay.portal.service.ServiceContext serviceContext)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException;
249    }