1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
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 long groupId, java.lang.String className, long classPK, long threadId,
52 long parentMessageId, java.lang.String subject, java.lang.String body,
53 com.liferay.portal.theme.ThemeDisplay themeDisplay)
54 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException;
56
57 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
58 long categoryId, long threadId, long parentMessageId,
59 java.lang.String subject, java.lang.String body,
60 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
61 boolean anonymous, double priority, java.lang.String[] tagsEntries,
62 boolean addCommunityPermissions, boolean addGuestPermissions)
63 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
67 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, java.lang.String[] tagsEntries,
71 javax.portlet.PortletPreferences prefs,
72 boolean addCommunityPermissions, boolean addGuestPermissions,
73 com.liferay.portal.theme.ThemeDisplay themeDisplay)
74 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
78 long categoryId, long threadId, long parentMessageId,
79 java.lang.String subject, java.lang.String body,
80 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
81 boolean anonymous, double priority, java.lang.String[] tagsEntries,
82 javax.portlet.PortletPreferences prefs,
83 java.lang.String[] communityPermissions,
84 java.lang.String[] guestPermissions,
85 com.liferay.portal.theme.ThemeDisplay themeDisplay)
86 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
90 long categoryId, long threadId, long parentMessageId,
91 java.lang.String subject, java.lang.String body,
92 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
93 boolean anonymous, double priority, java.lang.String[] tagsEntries,
94 java.lang.String[] communityPermissions,
95 java.lang.String[] guestPermissions)
96 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
100 long categoryId, java.lang.String subject, java.lang.String body,
101 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
102 boolean anonymous, double priority, java.lang.String[] tagsEntries,
103 boolean addCommunityPermissions, boolean addGuestPermissions)
104 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
108 long categoryId, java.lang.String subject, java.lang.String body,
109 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
110 boolean anonymous, double priority, java.lang.String[] tagsEntries,
111 javax.portlet.PortletPreferences prefs,
112 boolean addCommunityPermissions, boolean addGuestPermissions,
113 com.liferay.portal.theme.ThemeDisplay themeDisplay)
114 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException;
116
117 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
118 long categoryId, java.lang.String subject, java.lang.String body,
119 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
120 boolean anonymous, double priority, java.lang.String[] tagsEntries,
121 javax.portlet.PortletPreferences prefs,
122 java.lang.String[] communityPermissions,
123 java.lang.String[] guestPermissions,
124 com.liferay.portal.theme.ThemeDisplay themeDisplay)
125 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
129 long categoryId, java.lang.String subject, java.lang.String body,
130 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
131 boolean anonymous, double priority, java.lang.String[] tagsEntries,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public void deleteDiscussionMessage(long groupId,
138 java.lang.String className, long classPK, long messageId)
139 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void deleteMessage(long messageId)
143 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
148 long categoryId, int start, int end)
149 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public int getCategoryMessagesCount(long categoryId)
154 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
158 java.lang.String type, double version, java.lang.String displayStyle,
159 java.lang.String feedURL, java.lang.String entryURL,
160 com.liferay.portal.theme.ThemeDisplay themeDisplay)
161 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.lang.String getCompanyMessagesRSS(long companyId, int max,
166 java.lang.String type, double version, java.lang.String displayStyle,
167 java.lang.String feedURL, java.lang.String entryURL,
168 com.liferay.portal.theme.ThemeDisplay themeDisplay)
169 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.lang.String getGroupMessagesRSS(long groupId, int max,
174 java.lang.String type, double version, java.lang.String displayStyle,
175 java.lang.String feedURL, java.lang.String entryURL,
176 com.liferay.portal.theme.ThemeDisplay themeDisplay)
177 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
182 int max, java.lang.String type, double version,
183 java.lang.String displayStyle, java.lang.String feedURL,
184 java.lang.String entryURL,
185 com.liferay.portal.theme.ThemeDisplay themeDisplay)
186 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
191 long messageId)
192 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
197 long messageId)
198 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
203 long messageId, java.lang.String threadView)
204 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.lang.String getThreadMessagesRSS(long threadId, int max,
209 java.lang.String type, double version, java.lang.String displayStyle,
210 java.lang.String feedURL, java.lang.String entryURL,
211 com.liferay.portal.theme.ThemeDisplay themeDisplay)
212 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException;
214
215 public void subscribeMessage(long messageId)
216 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
217 com.liferay.portal.SystemException;
218
219 public void unsubscribeMessage(long messageId)
220 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
221 com.liferay.portal.SystemException;
222
223 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
224 long groupId, java.lang.String className, long classPK, long messageId,
225 java.lang.String subject, java.lang.String body)
226 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
227 com.liferay.portal.SystemException;
228
229 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
230 long messageId, java.lang.String subject, java.lang.String body,
231 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
232 java.util.List<String> existingFiles, double priority,
233 java.lang.String[] tagsEntries)
234 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException;
236
237 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
238 long messageId, java.lang.String subject, java.lang.String body,
239 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
240 java.util.List<String> existingFiles, double priority,
241 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
242 com.liferay.portal.theme.ThemeDisplay themeDisplay)
243 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException;
245 }