001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.service.BaseService;
024    
025    /**
026     * The interface for the message-boards message remote service.
027     *
028     * <p>
029     * 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.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see MBMessageServiceUtil
034     * @see com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
035     * @see com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl
036     * @generated
037     */
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            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
072                    long groupId, long categoryId, long threadId, long parentMessageId,
073                    java.lang.String subject, java.lang.String body,
074                    java.lang.String format,
075                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
076                    boolean anonymous, double priority, boolean allowPingbacks,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
082                    long groupId, long categoryId, java.lang.String subject,
083                    java.lang.String body, java.lang.String format,
084                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
085                    boolean anonymous, double priority, boolean allowPingbacks,
086                    com.liferay.portal.service.ServiceContext serviceContext)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            public void deleteDiscussionMessage(long groupId,
091                    java.lang.String className, long classPK,
092                    java.lang.String permissionClassName, long permissionClassPK,
093                    long permissionOwnerId, long messageId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public void deleteMessage(long messageId)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
103                    long groupId, long categoryId, int status, int start, int end)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public int getCategoryMessagesCount(long groupId, long categoryId,
109                    int status) throws com.liferay.portal.kernel.exception.SystemException;
110    
111            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112            public java.lang.String getCategoryMessagesRSS(long groupId,
113                    long categoryId, int status, int max, java.lang.String type,
114                    double version, java.lang.String displayStyle,
115                    java.lang.String feedURL, java.lang.String entryURL,
116                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
122                    int max, java.lang.String type, double version,
123                    java.lang.String displayStyle, java.lang.String feedURL,
124                    java.lang.String entryURL,
125                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130            public int getGroupMessagesCount(long groupId, int status)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134            public java.lang.String getGroupMessagesRSS(long groupId, int status,
135                    int max, java.lang.String type, double version,
136                    java.lang.String displayStyle, java.lang.String feedURL,
137                    java.lang.String entryURL,
138                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException;
141    
142            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
144                    int status, int max, java.lang.String type, double version,
145                    java.lang.String displayStyle, java.lang.String feedURL,
146                    java.lang.String entryURL,
147                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
153                    long messageId)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
159                    long messageId, int status, java.lang.String threadView,
160                    boolean includePrevAndNext)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException;
163    
164            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165            public int getThreadAnswersCount(long groupId, long categoryId,
166                    long threadId)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
171                    long groupId, long categoryId, long threadId, int status, int start,
172                    int end) throws com.liferay.portal.kernel.exception.SystemException;
173    
174            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175            public int getThreadMessagesCount(long groupId, long categoryId,
176                    long threadId, int status)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public java.lang.String getThreadMessagesRSS(long threadId, int status,
181                    int max, java.lang.String type, double version,
182                    java.lang.String displayStyle, java.lang.String feedURL,
183                    java.lang.String entryURL,
184                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            public void subscribeMessage(long messageId)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException;
191    
192            public void unsubscribeMessage(long messageId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            public void updateAnswer(long messageId, boolean answer, boolean cascade)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException;
199    
200            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
201                    java.lang.String className, long classPK,
202                    java.lang.String permissionClassName, long permissionClassPK,
203                    long permissionOwnerId, long messageId, java.lang.String subject,
204                    java.lang.String body,
205                    com.liferay.portal.service.ServiceContext serviceContext)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
210                    long messageId, java.lang.String subject, java.lang.String body,
211                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
212                    java.util.List<java.lang.String> existingFiles, double priority,
213                    boolean allowPingbacks,
214                    com.liferay.portal.service.ServiceContext serviceContext)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException;
217    }