1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
53 public class MBCategoryLocalServiceUtil {
54 public static com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
55 com.liferay.portlet.messageboards.model.MBCategory model)
56 throws com.liferay.portal.SystemException {
57 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
58
59 return mbCategoryLocalService.addMBCategory(model);
60 }
61
62 public static java.util.List dynamicQuery(
63 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64 throws com.liferay.portal.SystemException {
65 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
66
67 return mbCategoryLocalService.dynamicQuery(queryInitializer);
68 }
69
70 public static java.util.List dynamicQuery(
71 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72 int begin, int end) throws com.liferay.portal.SystemException {
73 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
74
75 return mbCategoryLocalService.dynamicQuery(queryInitializer, begin, end);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
79 com.liferay.portlet.messageboards.model.MBCategory model)
80 throws com.liferay.portal.SystemException {
81 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
82
83 return mbCategoryLocalService.updateMBCategory(model);
84 }
85
86 public static com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence() {
87 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
88
89 return mbCategoryLocalService.getMBBanPersistence();
90 }
91
92 public static void setMBBanPersistence(
93 com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence) {
94 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
95
96 mbCategoryLocalService.setMBBanPersistence(mbBanPersistence);
97 }
98
99 public static com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence() {
100 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
101
102 return mbCategoryLocalService.getMBCategoryPersistence();
103 }
104
105 public static void setMBCategoryPersistence(
106 com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence) {
107 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
108
109 mbCategoryLocalService.setMBCategoryPersistence(mbCategoryPersistence);
110 }
111
112 public static com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder() {
113 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
114
115 return mbCategoryLocalService.getMBCategoryFinder();
116 }
117
118 public static void setMBCategoryFinder(
119 com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder) {
120 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
121
122 mbCategoryLocalService.setMBCategoryFinder(mbCategoryFinder);
123 }
124
125 public static com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence() {
126 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
127
128 return mbCategoryLocalService.getMBDiscussionPersistence();
129 }
130
131 public static void setMBDiscussionPersistence(
132 com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence) {
133 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
134
135 mbCategoryLocalService.setMBDiscussionPersistence(mbDiscussionPersistence);
136 }
137
138 public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
139 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
140
141 return mbCategoryLocalService.getMBMessagePersistence();
142 }
143
144 public static void setMBMessagePersistence(
145 com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
146 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
147
148 mbCategoryLocalService.setMBMessagePersistence(mbMessagePersistence);
149 }
150
151 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
152 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
153
154 return mbCategoryLocalService.getMBMessageFinder();
155 }
156
157 public static void setMBMessageFinder(
158 com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
159 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
160
161 mbCategoryLocalService.setMBMessageFinder(mbMessageFinder);
162 }
163
164 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence() {
165 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
166
167 return mbCategoryLocalService.getMBMessageFlagPersistence();
168 }
169
170 public static void setMBMessageFlagPersistence(
171 com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence) {
172 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
173
174 mbCategoryLocalService.setMBMessageFlagPersistence(mbMessageFlagPersistence);
175 }
176
177 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder() {
178 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
179
180 return mbCategoryLocalService.getMBMessageFlagFinder();
181 }
182
183 public static void setMBMessageFlagFinder(
184 com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder) {
185 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
186
187 mbCategoryLocalService.setMBMessageFlagFinder(mbMessageFlagFinder);
188 }
189
190 public static com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence() {
191 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
192
193 return mbCategoryLocalService.getMBStatsUserPersistence();
194 }
195
196 public static void setMBStatsUserPersistence(
197 com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence) {
198 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
199
200 mbCategoryLocalService.setMBStatsUserPersistence(mbStatsUserPersistence);
201 }
202
203 public static com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence() {
204 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
205
206 return mbCategoryLocalService.getMBThreadPersistence();
207 }
208
209 public static void setMBThreadPersistence(
210 com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence) {
211 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
212
213 mbCategoryLocalService.setMBThreadPersistence(mbThreadPersistence);
214 }
215
216 public static com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder() {
217 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
218
219 return mbCategoryLocalService.getMBThreadFinder();
220 }
221
222 public static void setMBThreadFinder(
223 com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder) {
224 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
225
226 mbCategoryLocalService.setMBThreadFinder(mbThreadFinder);
227 }
228
229 public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
230 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
231
232 return mbCategoryLocalService.getResourcePersistence();
233 }
234
235 public static void setResourcePersistence(
236 com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
237 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
238
239 mbCategoryLocalService.setResourcePersistence(resourcePersistence);
240 }
241
242 public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
243 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
244
245 return mbCategoryLocalService.getResourceFinder();
246 }
247
248 public static void setResourceFinder(
249 com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
250 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
251
252 mbCategoryLocalService.setResourceFinder(resourceFinder);
253 }
254
255 public static com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence() {
256 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
257
258 return mbCategoryLocalService.getSubscriptionPersistence();
259 }
260
261 public static void setSubscriptionPersistence(
262 com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence) {
263 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
264
265 mbCategoryLocalService.setSubscriptionPersistence(subscriptionPersistence);
266 }
267
268 public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
269 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
270
271 return mbCategoryLocalService.getUserPersistence();
272 }
273
274 public static void setUserPersistence(
275 com.liferay.portal.service.persistence.UserPersistence userPersistence) {
276 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
277
278 mbCategoryLocalService.setUserPersistence(userPersistence);
279 }
280
281 public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
282 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
283
284 return mbCategoryLocalService.getUserFinder();
285 }
286
287 public static void setUserFinder(
288 com.liferay.portal.service.persistence.UserFinder userFinder) {
289 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
290
291 mbCategoryLocalService.setUserFinder(userFinder);
292 }
293
294 public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
295 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
296
297 return mbCategoryLocalService.getTagsEntryPersistence();
298 }
299
300 public static void setTagsEntryPersistence(
301 com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
302 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
303
304 mbCategoryLocalService.setTagsEntryPersistence(tagsEntryPersistence);
305 }
306
307 public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
308 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
309
310 return mbCategoryLocalService.getTagsEntryFinder();
311 }
312
313 public static void setTagsEntryFinder(
314 com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
315 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
316
317 mbCategoryLocalService.setTagsEntryFinder(tagsEntryFinder);
318 }
319
320 public static void afterPropertiesSet() {
321 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
322
323 mbCategoryLocalService.afterPropertiesSet();
324 }
325
326 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
327 long userId, long plid, long parentCategoryId, java.lang.String name,
328 java.lang.String description, boolean addCommunityPermissions,
329 boolean addGuestPermissions)
330 throws com.liferay.portal.PortalException,
331 com.liferay.portal.SystemException {
332 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
333
334 return mbCategoryLocalService.addCategory(userId, plid,
335 parentCategoryId, name, description, addCommunityPermissions,
336 addGuestPermissions);
337 }
338
339 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
340 java.lang.String uuid, long userId, long plid, long parentCategoryId,
341 java.lang.String name, java.lang.String description,
342 boolean addCommunityPermissions, boolean addGuestPermissions)
343 throws com.liferay.portal.PortalException,
344 com.liferay.portal.SystemException {
345 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
346
347 return mbCategoryLocalService.addCategory(uuid, userId, plid,
348 parentCategoryId, name, description, addCommunityPermissions,
349 addGuestPermissions);
350 }
351
352 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
353 long userId, long plid, long parentCategoryId, java.lang.String name,
354 java.lang.String description, java.lang.String[] communityPermissions,
355 java.lang.String[] guestPermissions)
356 throws com.liferay.portal.PortalException,
357 com.liferay.portal.SystemException {
358 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
359
360 return mbCategoryLocalService.addCategory(userId, plid,
361 parentCategoryId, name, description, communityPermissions,
362 guestPermissions);
363 }
364
365 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
366 java.lang.String uuid, long userId, long plid, long parentCategoryId,
367 java.lang.String name, java.lang.String description,
368 java.lang.Boolean addCommunityPermissions,
369 java.lang.Boolean addGuestPermissions,
370 java.lang.String[] communityPermissions,
371 java.lang.String[] guestPermissions)
372 throws com.liferay.portal.PortalException,
373 com.liferay.portal.SystemException {
374 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
375
376 return mbCategoryLocalService.addCategory(uuid, userId, plid,
377 parentCategoryId, name, description, addCommunityPermissions,
378 addGuestPermissions, communityPermissions, guestPermissions);
379 }
380
381 public static void addCategoryResources(long categoryId,
382 boolean addCommunityPermissions, boolean addGuestPermissions)
383 throws com.liferay.portal.PortalException,
384 com.liferay.portal.SystemException {
385 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
386
387 mbCategoryLocalService.addCategoryResources(categoryId,
388 addCommunityPermissions, addGuestPermissions);
389 }
390
391 public static void addCategoryResources(
392 com.liferay.portlet.messageboards.model.MBCategory category,
393 boolean addCommunityPermissions, boolean addGuestPermissions)
394 throws com.liferay.portal.PortalException,
395 com.liferay.portal.SystemException {
396 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
397
398 mbCategoryLocalService.addCategoryResources(category,
399 addCommunityPermissions, addGuestPermissions);
400 }
401
402 public static void addCategoryResources(long categoryId,
403 java.lang.String[] communityPermissions,
404 java.lang.String[] guestPermissions)
405 throws com.liferay.portal.PortalException,
406 com.liferay.portal.SystemException {
407 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
408
409 mbCategoryLocalService.addCategoryResources(categoryId,
410 communityPermissions, guestPermissions);
411 }
412
413 public static void addCategoryResources(
414 com.liferay.portlet.messageboards.model.MBCategory category,
415 java.lang.String[] communityPermissions,
416 java.lang.String[] guestPermissions)
417 throws com.liferay.portal.PortalException,
418 com.liferay.portal.SystemException {
419 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
420
421 mbCategoryLocalService.addCategoryResources(category,
422 communityPermissions, guestPermissions);
423 }
424
425 public static void deleteCategories(long groupId)
426 throws com.liferay.portal.PortalException,
427 com.liferay.portal.SystemException {
428 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
429
430 mbCategoryLocalService.deleteCategories(groupId);
431 }
432
433 public static void deleteCategory(long categoryId)
434 throws com.liferay.portal.PortalException,
435 com.liferay.portal.SystemException {
436 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
437
438 mbCategoryLocalService.deleteCategory(categoryId);
439 }
440
441 public static void deleteCategory(
442 com.liferay.portlet.messageboards.model.MBCategory category)
443 throws com.liferay.portal.PortalException,
444 com.liferay.portal.SystemException {
445 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
446
447 mbCategoryLocalService.deleteCategory(category);
448 }
449
450 public static java.util.List getCategories(long groupId,
451 long parentCategoryId, int begin, int end)
452 throws com.liferay.portal.SystemException {
453 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
454
455 return mbCategoryLocalService.getCategories(groupId, parentCategoryId,
456 begin, end);
457 }
458
459 public static int getCategoriesCount(long groupId)
460 throws com.liferay.portal.SystemException {
461 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
462
463 return mbCategoryLocalService.getCategoriesCount(groupId);
464 }
465
466 public static int getCategoriesCount(long groupId, long parentCategoryId)
467 throws com.liferay.portal.SystemException {
468 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
469
470 return mbCategoryLocalService.getCategoriesCount(groupId,
471 parentCategoryId);
472 }
473
474 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
475 long categoryId)
476 throws com.liferay.portal.PortalException,
477 com.liferay.portal.SystemException {
478 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
479
480 return mbCategoryLocalService.getCategory(categoryId);
481 }
482
483 public static void getSubcategoryIds(java.util.List categoryIds,
484 long groupId, long categoryId)
485 throws com.liferay.portal.SystemException {
486 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
487
488 mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
489 categoryId);
490 }
491
492 public static java.util.List getSubscribedCategories(long groupId,
493 long userId, int begin, int end)
494 throws com.liferay.portal.SystemException {
495 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
496
497 return mbCategoryLocalService.getSubscribedCategories(groupId, userId,
498 begin, end);
499 }
500
501 public static int getSubscribedCategoriesCount(long groupId, long userId)
502 throws com.liferay.portal.SystemException {
503 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
504
505 return mbCategoryLocalService.getSubscribedCategoriesCount(groupId,
506 userId);
507 }
508
509 public static com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
510 throws com.liferay.portal.PortalException,
511 com.liferay.portal.SystemException {
512 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
513
514 return mbCategoryLocalService.getSystemCategory();
515 }
516
517 public static void reIndex(java.lang.String[] ids)
518 throws com.liferay.portal.SystemException {
519 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
520
521 mbCategoryLocalService.reIndex(ids);
522 }
523
524 public static com.liferay.portal.kernel.search.Hits search(long companyId,
525 long groupId, long[] categoryIds, long threadId,
526 java.lang.String keywords) throws com.liferay.portal.SystemException {
527 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
528
529 return mbCategoryLocalService.search(companyId, groupId, categoryIds,
530 threadId, keywords);
531 }
532
533 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
534 long categoryId, long parentCategoryId, java.lang.String name,
535 java.lang.String description, boolean mergeWithParentCategory)
536 throws com.liferay.portal.PortalException,
537 com.liferay.portal.SystemException {
538 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
539
540 return mbCategoryLocalService.updateCategory(categoryId,
541 parentCategoryId, name, description, mergeWithParentCategory);
542 }
543
544 public static void subscribeCategory(long userId, long categoryId)
545 throws com.liferay.portal.PortalException,
546 com.liferay.portal.SystemException {
547 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
548
549 mbCategoryLocalService.subscribeCategory(userId, categoryId);
550 }
551
552 public static void unsubscribeCategory(long userId, long categoryId)
553 throws com.liferay.portal.PortalException,
554 com.liferay.portal.SystemException {
555 MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory.getService();
556
557 mbCategoryLocalService.unsubscribeCategory(userId, categoryId);
558 }
559 }