001    /**
002     * Copyright (c) 2000-2011 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    
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.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
059                    boolean anonymous, double priority, boolean allowPingbacks,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException;
063    
064            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
065                    long groupId, long categoryId, java.lang.String subject,
066                    java.lang.String body,
067                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
068                    boolean anonymous, double priority, boolean allowPingbacks,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public void deleteDiscussionMessage(long groupId,
074                    java.lang.String className, long classPK,
075                    java.lang.String permissionClassName, long permissionClassPK,
076                    long permissionOwnerId, long messageId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            public void deleteMessage(long messageId)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
086                    long groupId, long categoryId, int status, int start, int end)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public int getCategoryMessagesCount(long groupId, long categoryId,
092                    int status) throws com.liferay.portal.kernel.exception.SystemException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public java.lang.String getCategoryMessagesRSS(long groupId,
096                    long categoryId, int status, int max, java.lang.String type,
097                    double version, java.lang.String displayStyle,
098                    java.lang.String feedURL, java.lang.String entryURL,
099                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
105                    int max, java.lang.String type, double version,
106                    java.lang.String displayStyle, java.lang.String feedURL,
107                    java.lang.String entryURL,
108                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public int getGroupMessagesCount(long groupId, int status)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117            public java.lang.String getGroupMessagesRSS(long groupId, int status,
118                    int max, java.lang.String type, double version,
119                    java.lang.String displayStyle, java.lang.String feedURL,
120                    java.lang.String entryURL,
121                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
127                    int status, int max, java.lang.String type, double version,
128                    java.lang.String displayStyle, java.lang.String feedURL,
129                    java.lang.String entryURL,
130                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
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 com.liferay.portlet.messageboards.model.MBMessage getMessage(
136                    long messageId)
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 com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
142                    long messageId, int status, java.lang.String threadView,
143                    boolean includePrevAndNext)
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.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
149                    long groupId, long categoryId, long threadId, int status, int start,
150                    int end) throws com.liferay.portal.kernel.exception.SystemException;
151    
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public int getThreadMessagesCount(long groupId, long categoryId,
154                    long threadId, int status)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158            public java.lang.String getThreadMessagesRSS(long threadId, int status,
159                    int max, java.lang.String type, double version,
160                    java.lang.String displayStyle, java.lang.String feedURL,
161                    java.lang.String entryURL,
162                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            public void subscribeMessage(long messageId)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            public void unsubscribeMessage(long messageId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException;
173    
174            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
175                    java.lang.String className, long classPK,
176                    java.lang.String permissionClassName, long permissionClassPK,
177                    long permissionOwnerId, long messageId, java.lang.String subject,
178                    java.lang.String body,
179                    com.liferay.portal.service.ServiceContext serviceContext)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException;
182    
183            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
184                    long messageId, java.lang.String subject, java.lang.String body,
185                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
186                    java.util.List<java.lang.String> existingFiles, double priority,
187                    boolean allowPingbacks,
188                    com.liferay.portal.service.ServiceContext serviceContext)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException;
191    }