1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="MBMessageService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       MBMessageServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface MBMessageService {
50      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
51          java.lang.String className, long classPK, long threadId,
52          long parentMessageId, java.lang.String subject, java.lang.String body,
53          com.liferay.portal.service.ServiceContext serviceContext)
54          throws com.liferay.portal.kernel.exception.PortalException,
55              com.liferay.portal.kernel.exception.SystemException;
56  
57      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
58          long groupId, long categoryId, java.lang.String subject,
59          java.lang.String body,
60          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
61          boolean anonymous, double priority, boolean allowPingbacks,
62          com.liferay.portal.service.ServiceContext serviceContext)
63          throws com.liferay.portal.kernel.exception.PortalException,
64              com.liferay.portal.kernel.exception.SystemException;
65  
66      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
67          long groupId, long categoryId, long threadId, long parentMessageId,
68          java.lang.String subject, java.lang.String body,
69          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
70          boolean anonymous, double priority, boolean allowPingbacks,
71          com.liferay.portal.service.ServiceContext serviceContext)
72          throws com.liferay.portal.kernel.exception.PortalException,
73              com.liferay.portal.kernel.exception.SystemException;
74  
75      public void deleteDiscussionMessage(long groupId,
76          java.lang.String className, long classPK, long messageId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public void deleteMessage(long messageId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
86          long groupId, long categoryId, int status, int start, int end)
87          throws com.liferay.portal.kernel.exception.PortalException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getCategoryMessagesCount(long groupId, long categoryId,
92          int status) throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public java.lang.String getCategoryMessagesRSS(long groupId,
96          long categoryId, int status, int max, java.lang.String type,
97          double version, java.lang.String displayStyle,
98          java.lang.String feedURL, java.lang.String entryURL,
99          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 java.lang.String getGroupMessagesRSS(long groupId, int status,
114         int max, java.lang.String type, double version,
115         java.lang.String displayStyle, java.lang.String feedURL,
116         java.lang.String entryURL,
117         com.liferay.portal.theme.ThemeDisplay themeDisplay)
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.lang.String getGroupMessagesRSS(long groupId, long userId,
123         int status, int max, java.lang.String type, double version,
124         java.lang.String displayStyle, java.lang.String feedURL,
125         java.lang.String entryURL,
126         com.liferay.portal.theme.ThemeDisplay themeDisplay)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
132         long messageId)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
138         long messageId, int status, java.lang.String threadView)
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 getThreadMessagesRSS(long threadId, int status,
144         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     public void subscribeMessage(long messageId)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public void unsubscribeMessage(long messageId)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
160         java.lang.String className, long classPK, long messageId,
161         java.lang.String subject, java.lang.String body,
162         com.liferay.portal.service.ServiceContext serviceContext)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
167         long messageId, java.lang.String subject, java.lang.String body,
168         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
169         java.util.List<String> existingFiles, double priority,
170         boolean allowPingbacks,
171         com.liferay.portal.service.ServiceContext serviceContext)
172         throws com.liferay.portal.kernel.exception.PortalException,
173             com.liferay.portal.kernel.exception.SystemException;
174 }