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,
52          java.lang.String permissionClassName, long permissionClassPK,
53          long threadId, long parentMessageId, java.lang.String subject,
54          java.lang.String body,
55          com.liferay.portal.service.ServiceContext serviceContext)
56          throws com.liferay.portal.kernel.exception.PortalException,
57              com.liferay.portal.kernel.exception.SystemException;
58  
59      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
60          long groupId, long categoryId, java.lang.String subject,
61          java.lang.String body,
62          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
63          boolean anonymous, double priority, boolean allowPingbacks,
64          com.liferay.portal.service.ServiceContext serviceContext)
65          throws com.liferay.portal.kernel.exception.PortalException,
66              com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
69          long groupId, long categoryId, long threadId, long parentMessageId,
70          java.lang.String subject, java.lang.String body,
71          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
72          boolean anonymous, double priority, boolean allowPingbacks,
73          com.liferay.portal.service.ServiceContext serviceContext)
74          throws com.liferay.portal.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public void deleteDiscussionMessage(long groupId,
78          java.lang.String className, long classPK,
79          java.lang.String permissionClassName, long permissionClassPK,
80          long messageId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public void deleteMessage(long messageId)
85          throws com.liferay.portal.kernel.exception.PortalException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
90          long groupId, long categoryId, int status, int start, int end)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getCategoryMessagesCount(long groupId, long categoryId,
96          int status) throws com.liferay.portal.kernel.exception.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.lang.String getCategoryMessagesRSS(long groupId,
100         long categoryId, int status, int max, java.lang.String type,
101         double version, java.lang.String displayStyle,
102         java.lang.String feedURL, java.lang.String entryURL,
103         com.liferay.portal.theme.ThemeDisplay themeDisplay)
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 java.lang.String getCompanyMessagesRSS(long companyId, int status,
109         int max, java.lang.String type, double version,
110         java.lang.String displayStyle, java.lang.String feedURL,
111         java.lang.String entryURL,
112         com.liferay.portal.theme.ThemeDisplay themeDisplay)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             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         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 getThreadMessagesRSS(long threadId, 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     public void subscribeMessage(long messageId)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     public void unsubscribeMessage(long messageId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
164         java.lang.String className, long classPK,
165         java.lang.String permissionClassName, long permissionClassPK,
166         long messageId, java.lang.String subject, java.lang.String body,
167         com.liferay.portal.service.ServiceContext serviceContext)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException;
170 
171     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
172         long messageId, java.lang.String subject, java.lang.String body,
173         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
174         java.util.List<String> existingFiles, double priority,
175         boolean allowPingbacks,
176         com.liferay.portal.service.ServiceContext serviceContext)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException;
179 }