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