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