1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
53 public class MBMessageServiceUtil {
54 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
55 long groupId, java.lang.String className, long classPK, long threadId,
56 long parentMessageId, java.lang.String subject, java.lang.String body,
57 com.liferay.portal.theme.ThemeDisplay themeDisplay)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException, java.rmi.RemoteException {
60 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
61
62 return mbMessageService.addDiscussionMessage(groupId, className,
63 classPK, threadId, parentMessageId, subject, body, themeDisplay);
64 }
65
66 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
67 long categoryId, java.lang.String subject, java.lang.String body,
68 java.util.List files, boolean anonymous, double priority,
69 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
70 boolean addGuestPermissions)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException, java.rmi.RemoteException {
73 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
74
75 return mbMessageService.addMessage(categoryId, subject, body, files,
76 anonymous, priority, tagsEntries, addCommunityPermissions,
77 addGuestPermissions);
78 }
79
80 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
81 long categoryId, java.lang.String subject, java.lang.String body,
82 java.util.List files, boolean anonymous, double priority,
83 java.lang.String[] tagsEntries,
84 java.lang.String[] communityPermissions,
85 java.lang.String[] guestPermissions)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException, java.rmi.RemoteException {
88 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
89
90 return mbMessageService.addMessage(categoryId, subject, body, files,
91 anonymous, priority, tagsEntries, communityPermissions,
92 guestPermissions);
93 }
94
95 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
96 long categoryId, java.lang.String subject, java.lang.String body,
97 java.util.List files, boolean anonymous, double priority,
98 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
99 boolean addCommunityPermissions, boolean addGuestPermissions,
100 com.liferay.portal.theme.ThemeDisplay themeDisplay)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException, java.rmi.RemoteException {
103 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
104
105 return mbMessageService.addMessage(categoryId, subject, body, files,
106 anonymous, priority, tagsEntries, prefs, addCommunityPermissions,
107 addGuestPermissions, themeDisplay);
108 }
109
110 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
111 long categoryId, java.lang.String subject, java.lang.String body,
112 java.util.List files, boolean anonymous, double priority,
113 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
114 java.lang.String[] communityPermissions,
115 java.lang.String[] guestPermissions,
116 com.liferay.portal.theme.ThemeDisplay themeDisplay)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException, java.rmi.RemoteException {
119 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
120
121 return mbMessageService.addMessage(categoryId, subject, body, files,
122 anonymous, priority, tagsEntries, prefs, communityPermissions,
123 guestPermissions, themeDisplay);
124 }
125
126 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
127 long categoryId, long threadId, long parentMessageId,
128 java.lang.String subject, java.lang.String body, java.util.List files,
129 boolean anonymous, double priority, java.lang.String[] tagsEntries,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException, java.rmi.RemoteException {
133 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
134
135 return mbMessageService.addMessage(categoryId, threadId,
136 parentMessageId, subject, body, files, anonymous, priority,
137 tagsEntries, addCommunityPermissions, addGuestPermissions);
138 }
139
140 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
141 long categoryId, long threadId, long parentMessageId,
142 java.lang.String subject, java.lang.String body, java.util.List files,
143 boolean anonymous, double priority, java.lang.String[] tagsEntries,
144 java.lang.String[] communityPermissions,
145 java.lang.String[] guestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException, java.rmi.RemoteException {
148 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
149
150 return mbMessageService.addMessage(categoryId, threadId,
151 parentMessageId, subject, body, files, anonymous, priority,
152 tagsEntries, communityPermissions, guestPermissions);
153 }
154
155 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
156 long categoryId, long threadId, long parentMessageId,
157 java.lang.String subject, java.lang.String body, java.util.List files,
158 boolean anonymous, double priority, java.lang.String[] tagsEntries,
159 javax.portlet.PortletPreferences prefs,
160 boolean addCommunityPermissions, boolean addGuestPermissions,
161 com.liferay.portal.theme.ThemeDisplay themeDisplay)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException, java.rmi.RemoteException {
164 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
165
166 return mbMessageService.addMessage(categoryId, threadId,
167 parentMessageId, subject, body, files, anonymous, priority,
168 tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
169 themeDisplay);
170 }
171
172 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
173 long categoryId, long threadId, long parentMessageId,
174 java.lang.String subject, java.lang.String body, java.util.List files,
175 boolean anonymous, double priority, java.lang.String[] tagsEntries,
176 javax.portlet.PortletPreferences prefs,
177 java.lang.String[] communityPermissions,
178 java.lang.String[] guestPermissions,
179 com.liferay.portal.theme.ThemeDisplay themeDisplay)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException, java.rmi.RemoteException {
182 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
183
184 return mbMessageService.addMessage(categoryId, threadId,
185 parentMessageId, subject, body, files, anonymous, priority,
186 tagsEntries, prefs, communityPermissions, guestPermissions,
187 themeDisplay);
188 }
189
190 public static void deleteDiscussionMessage(long groupId,
191 java.lang.String className, long classPK, long messageId)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException, java.rmi.RemoteException {
194 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
195
196 mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
197 messageId);
198 }
199
200 public static void deleteMessage(long messageId)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException, java.rmi.RemoteException {
203 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
204
205 mbMessageService.deleteMessage(messageId);
206 }
207
208 public static java.util.List getCategoryMessages(long categoryId,
209 int begin, int end)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException, java.rmi.RemoteException {
212 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
213
214 return mbMessageService.getCategoryMessages(categoryId, begin, end);
215 }
216
217 public static int getCategoryMessagesCount(long categoryId)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException, java.rmi.RemoteException {
220 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
221
222 return mbMessageService.getCategoryMessagesCount(categoryId);
223 }
224
225 public static java.lang.String getCategoryMessagesRSS(long categoryId,
226 int max, java.lang.String type, double version,
227 java.lang.String displayStyle, java.lang.String feedURL,
228 java.lang.String entryURL)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException, java.rmi.RemoteException {
231 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
232
233 return mbMessageService.getCategoryMessagesRSS(categoryId, max, type,
234 version, displayStyle, feedURL, entryURL);
235 }
236
237 public static java.lang.String getCompanyMessagesRSS(long companyId,
238 int max, java.lang.String type, double version,
239 java.lang.String displayStyle, java.lang.String feedURL,
240 java.lang.String entryURL)
241 throws com.liferay.portal.PortalException,
242 com.liferay.portal.SystemException, java.rmi.RemoteException {
243 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
244
245 return mbMessageService.getCompanyMessagesRSS(companyId, max, type,
246 version, displayStyle, feedURL, entryURL);
247 }
248
249 public static java.lang.String getGroupMessagesRSS(long groupId, int max,
250 java.lang.String type, double version, java.lang.String displayStyle,
251 java.lang.String feedURL, java.lang.String entryURL)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException, java.rmi.RemoteException {
254 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
255
256 return mbMessageService.getGroupMessagesRSS(groupId, max, type,
257 version, displayStyle, feedURL, entryURL);
258 }
259
260 public static java.lang.String getGroupMessagesRSS(long groupId,
261 long userId, int max, java.lang.String type, double version,
262 java.lang.String displayStyle, java.lang.String feedURL,
263 java.lang.String entryURL)
264 throws com.liferay.portal.PortalException,
265 com.liferay.portal.SystemException, java.rmi.RemoteException {
266 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
267
268 return mbMessageService.getGroupMessagesRSS(groupId, userId, max, type,
269 version, displayStyle, feedURL, entryURL);
270 }
271
272 public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
273 long messageId)
274 throws com.liferay.portal.PortalException,
275 com.liferay.portal.SystemException, java.rmi.RemoteException {
276 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
277
278 return mbMessageService.getMessage(messageId);
279 }
280
281 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
282 long messageId)
283 throws com.liferay.portal.PortalException,
284 com.liferay.portal.SystemException, java.rmi.RemoteException {
285 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
286
287 return mbMessageService.getMessageDisplay(messageId);
288 }
289
290 public static java.lang.String getThreadMessagesRSS(long threadId, int max,
291 java.lang.String type, double version, java.lang.String displayStyle,
292 java.lang.String feedURL, java.lang.String entryURL)
293 throws com.liferay.portal.PortalException,
294 com.liferay.portal.SystemException, java.rmi.RemoteException {
295 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
296
297 return mbMessageService.getThreadMessagesRSS(threadId, max, type,
298 version, displayStyle, feedURL, entryURL);
299 }
300
301 public static void subscribeMessage(long messageId)
302 throws com.liferay.portal.PortalException,
303 com.liferay.portal.SystemException, java.rmi.RemoteException {
304 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
305
306 mbMessageService.subscribeMessage(messageId);
307 }
308
309 public static void unsubscribeMessage(long messageId)
310 throws com.liferay.portal.PortalException,
311 com.liferay.portal.SystemException, java.rmi.RemoteException {
312 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
313
314 mbMessageService.unsubscribeMessage(messageId);
315 }
316
317 public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
318 long groupId, java.lang.String className, long classPK, long messageId,
319 java.lang.String subject, java.lang.String body)
320 throws com.liferay.portal.PortalException,
321 com.liferay.portal.SystemException, java.rmi.RemoteException {
322 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
323
324 return mbMessageService.updateDiscussionMessage(groupId, className,
325 classPK, messageId, subject, body);
326 }
327
328 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
329 long messageId, java.lang.String subject, java.lang.String body,
330 java.util.List files, double priority, java.lang.String[] tagsEntries)
331 throws com.liferay.portal.PortalException,
332 com.liferay.portal.SystemException, java.rmi.RemoteException {
333 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
334
335 return mbMessageService.updateMessage(messageId, subject, body, files,
336 priority, tagsEntries);
337 }
338
339 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
340 long messageId, java.lang.String subject, java.lang.String body,
341 java.util.List files, double priority, java.lang.String[] tagsEntries,
342 javax.portlet.PortletPreferences prefs,
343 com.liferay.portal.theme.ThemeDisplay themeDisplay)
344 throws com.liferay.portal.PortalException,
345 com.liferay.portal.SystemException, java.rmi.RemoteException {
346 MBMessageService mbMessageService = MBMessageServiceFactory.getService();
347
348 return mbMessageService.updateMessage(messageId, subject, body, files,
349 priority, tagsEntries, prefs, themeDisplay);
350 }
351 }