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    
024    /**
025     * The interface for the message-boards message remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
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    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface MBMessageService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
047                    long groupId, java.lang.String className, long classPK,
048                    java.lang.String permissionClassName, long permissionClassPK,
049                    long permissionOwnerId, long threadId, long parentMessageId,
050                    java.lang.String subject, java.lang.String body,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException;
054    
055            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
056                    long groupId, long categoryId, long threadId, long parentMessageId,
057                    java.lang.String subject, java.lang.String body,
058                    java.lang.String format,
059                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
060                    boolean anonymous, double priority, boolean allowPingbacks,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
066                    long groupId, long categoryId, java.lang.String subject,
067                    java.lang.String body, java.lang.String format,
068                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
069                    boolean anonymous, double priority, boolean allowPingbacks,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public void deleteDiscussionMessage(long groupId,
075                    java.lang.String className, long classPK,
076                    java.lang.String permissionClassName, long permissionClassPK,
077                    long permissionOwnerId, long messageId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public void deleteMessage(long messageId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
087                    long groupId, long categoryId, int status, int start, int end)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public int getCategoryMessagesCount(long groupId, long categoryId,
093                    int status) throws com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public java.lang.String getCategoryMessagesRSS(long groupId,
097                    long categoryId, int status, int max, java.lang.String type,
098                    double version, java.lang.String displayStyle,
099                    java.lang.String feedURL, java.lang.String entryURL,
100                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
106                    int max, java.lang.String type, double version,
107                    java.lang.String displayStyle, java.lang.String feedURL,
108                    java.lang.String entryURL,
109                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public int getGroupMessagesCount(long groupId, int status)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118            public java.lang.String getGroupMessagesRSS(long groupId, int status,
119                    int max, java.lang.String type, double version,
120                    java.lang.String displayStyle, java.lang.String feedURL,
121                    java.lang.String entryURL,
122                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
128                    int status, int max, java.lang.String type, double version,
129                    java.lang.String displayStyle, java.lang.String feedURL,
130                    java.lang.String entryURL,
131                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
137                    long messageId)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException;
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
143                    long messageId, int status, java.lang.String threadView,
144                    boolean includePrevAndNext)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public int getThreadAnswersCount(long groupId, long categoryId,
150                    long threadId)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
155                    long groupId, long categoryId, long threadId, int status, int start,
156                    int end) throws com.liferay.portal.kernel.exception.SystemException;
157    
158            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159            public int getThreadMessagesCount(long groupId, long categoryId,
160                    long threadId, int status)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164            public java.lang.String getThreadMessagesRSS(long threadId, int status,
165                    int max, java.lang.String type, double version,
166                    java.lang.String displayStyle, java.lang.String feedURL,
167                    java.lang.String entryURL,
168                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            public void subscribeMessage(long messageId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException;
175    
176            public void unsubscribeMessage(long messageId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException;
179    
180            public void updateAnswer(long messageId, boolean answer, boolean cascade)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException;
183    
184            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
185                    java.lang.String className, long classPK,
186                    java.lang.String permissionClassName, long permissionClassPK,
187                    long permissionOwnerId, long messageId, java.lang.String subject,
188                    java.lang.String body,
189                    com.liferay.portal.service.ServiceContext serviceContext)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException;
192    
193            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
194                    long messageId, java.lang.String subject, java.lang.String body,
195                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
196                    java.util.List<java.lang.String> existingFiles, double priority,
197                    boolean allowPingbacks,
198                    com.liferay.portal.service.ServiceContext serviceContext)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException;
201    }