001    /**
002     * Copyright (c) 2000-2012 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     * The interface for the message-boards message remote service.
028     *
029     * <p>
030     * 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.
031     * </p>
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    @AccessControlled
040    @JSONWebService
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface MBMessageService extends BaseService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * 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.
048             */
049    
050            /**
051            * Returns the Spring bean ID for this bean.
052            *
053            * @return the Spring bean ID for this bean
054            */
055            public java.lang.String getBeanIdentifier();
056    
057            /**
058            * Sets the Spring bean ID for this bean.
059            *
060            * @param beanIdentifier the Spring bean ID for this bean
061            */
062            public void setBeanIdentifier(java.lang.String beanIdentifier);
063    
064            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
065                    long groupId, java.lang.String className, long classPK,
066                    java.lang.String permissionClassName, long permissionClassPK,
067                    long permissionOwnerId, long threadId, long parentMessageId,
068                    java.lang.String subject, java.lang.String body,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            /**
074            * @deprecated {@link #addMessage(long, String, String, String,
075            java.util.List, boolean, double, boolean,
076            com.liferay.portal.service.ServiceContext)}
077            */
078            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
079                    long groupId, long categoryId, long threadId, long parentMessageId,
080                    java.lang.String subject, java.lang.String body,
081                    java.lang.String format,
082                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
083                    boolean anonymous, double priority, boolean allowPingbacks,
084                    com.liferay.portal.service.ServiceContext serviceContext)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
089                    long groupId, long categoryId, java.lang.String subject,
090                    java.lang.String body, java.lang.String format,
091                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
092                    boolean anonymous, double priority, boolean allowPingbacks,
093                    com.liferay.portal.service.ServiceContext serviceContext)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
098                    long parentMessageId, java.lang.String subject, java.lang.String body,
099                    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 void deleteDiscussionMessage(long groupId,
107                    java.lang.String className, long classPK,
108                    java.lang.String permissionClassName, long permissionClassPK,
109                    long permissionOwnerId, long messageId)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            public void deleteMessage(long messageId)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException;
116    
117            public void deleteMessageAttachments(long messageId)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException;
120    
121            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
123                    long groupId, long categoryId, int status, int start, int end)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException;
126    
127            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128            public int getCategoryMessagesCount(long groupId, long categoryId,
129                    int status) throws com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public java.lang.String getCategoryMessagesRSS(long groupId,
133                    long categoryId, int status, int max, java.lang.String type,
134                    double version, java.lang.String displayStyle,
135                    java.lang.String feedURL, java.lang.String entryURL,
136                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
142                    int max, java.lang.String type, double version,
143                    java.lang.String displayStyle, java.lang.String feedURL,
144                    java.lang.String entryURL,
145                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    
149            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public int getGroupMessagesCount(long groupId, int status)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public java.lang.String getGroupMessagesRSS(long groupId, int status,
155                    int max, java.lang.String type, double version,
156                    java.lang.String displayStyle, java.lang.String feedURL,
157                    java.lang.String entryURL,
158                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException;
161    
162            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
164                    int status, int max, java.lang.String type, double version,
165                    java.lang.String displayStyle, java.lang.String feedURL,
166                    java.lang.String entryURL,
167                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
173                    long messageId)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException;
176    
177            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
179                    long messageId, int status, java.lang.String threadView,
180                    boolean includePrevAndNext)
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 int getThreadAnswersCount(long groupId, long categoryId,
186                    long threadId)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
191                    long groupId, long categoryId, long threadId, int status, int start,
192                    int end) throws com.liferay.portal.kernel.exception.SystemException;
193    
194            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195            public int getThreadMessagesCount(long groupId, long categoryId,
196                    long threadId, int status)
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200            public java.lang.String getThreadMessagesRSS(long threadId, int status,
201                    int max, java.lang.String type, double version,
202                    java.lang.String displayStyle, java.lang.String feedURL,
203                    java.lang.String entryURL,
204                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    
208            public void subscribeMessage(long messageId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException;
211    
212            public void unsubscribeMessage(long messageId)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException;
215    
216            public void updateAnswer(long messageId, boolean answer, boolean cascade)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
221                    java.lang.String className, long classPK,
222                    java.lang.String permissionClassName, long permissionClassPK,
223                    long permissionOwnerId, long messageId, java.lang.String subject,
224                    java.lang.String body,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException;
228    
229            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
230                    long messageId, java.lang.String subject, java.lang.String body,
231                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
232                    java.util.List<java.lang.String> existingFiles, double priority,
233                    boolean allowPingbacks,
234                    com.liferay.portal.service.ServiceContext serviceContext)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException;
237    }