001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class MBCategoryLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
052 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addMBCategory(mbCategory);
055 }
056
057
063 public static com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
064 long categoryId) {
065 return getService().createMBCategory(categoryId);
066 }
067
068
076 public static com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
077 long categoryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteMBCategory(categoryId);
081 }
082
083
090 public static com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
091 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteMBCategory(mbCategory);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategory(
187 long categoryId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchMBCategory(categoryId);
190 }
191
192
200 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().fetchMBCategoryByUuidAndCompanyId(uuid, companyId);
204 }
205
206
214 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndGroupId(
215 java.lang.String uuid, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().fetchMBCategoryByUuidAndGroupId(uuid, groupId);
218 }
219
220
228 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
229 long categoryId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().getMBCategory(categoryId);
233 }
234
235 public static com.liferay.portal.model.PersistedModel getPersistedModel(
236 java.io.Serializable primaryKeyObj)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getPersistedModel(primaryKeyObj);
240 }
241
242
251 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndCompanyId(
252 java.lang.String uuid, long companyId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().getMBCategoryByUuidAndCompanyId(uuid, companyId);
256 }
257
258
267 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
268 java.lang.String uuid, long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService().getMBCategoryByUuidAndGroupId(uuid, groupId);
272 }
273
274
286 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
287 int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getMBCategories(start, end);
290 }
291
292
298 public static int getMBCategoriesCount()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getMBCategoriesCount();
301 }
302
303
310 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
311 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().updateMBCategory(mbCategory);
314 }
315
316
321 public static java.lang.String getBeanIdentifier() {
322 return getService().getBeanIdentifier();
323 }
324
325
330 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
331 getService().setBeanIdentifier(beanIdentifier);
332 }
333
334 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
335 long userId, long parentCategoryId, java.lang.String name,
336 java.lang.String description,
337 com.liferay.portal.service.ServiceContext serviceContext)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 return getService()
341 .addCategory(userId, parentCategoryId, name, description,
342 serviceContext);
343 }
344
345 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
346 long userId, long parentCategoryId, java.lang.String name,
347 java.lang.String description, java.lang.String displayStyle,
348 java.lang.String emailAddress, java.lang.String inProtocol,
349 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
350 java.lang.String inUserName, java.lang.String inPassword,
351 int inReadInterval, java.lang.String outEmailAddress,
352 boolean outCustom, java.lang.String outServerName, int outServerPort,
353 boolean outUseSSL, java.lang.String outUserName,
354 java.lang.String outPassword, boolean allowAnonymous,
355 boolean mailingListActive,
356 com.liferay.portal.service.ServiceContext serviceContext)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 return getService()
360 .addCategory(userId, parentCategoryId, name, description,
361 displayStyle, emailAddress, inProtocol, inServerName, inServerPort,
362 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
363 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
364 outPassword, allowAnonymous, mailingListActive, serviceContext);
365 }
366
367 public static void addCategoryResources(long categoryId,
368 boolean addGroupPermissions, boolean addGuestPermissions)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException {
371 getService()
372 .addCategoryResources(categoryId, addGroupPermissions,
373 addGuestPermissions);
374 }
375
376 public static void addCategoryResources(long categoryId,
377 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 getService()
381 .addCategoryResources(categoryId, groupPermissions, guestPermissions);
382 }
383
384 public static void addCategoryResources(
385 com.liferay.portlet.messageboards.model.MBCategory category,
386 boolean addGroupPermissions, boolean addGuestPermissions)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 getService()
390 .addCategoryResources(category, addGroupPermissions,
391 addGuestPermissions);
392 }
393
394 public static void addCategoryResources(
395 com.liferay.portlet.messageboards.model.MBCategory category,
396 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException {
399 getService()
400 .addCategoryResources(category, groupPermissions, guestPermissions);
401 }
402
403 public static void deleteCategories(long groupId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException {
406 getService().deleteCategories(groupId);
407 }
408
409 public static void deleteCategory(long categoryId)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 getService().deleteCategory(categoryId);
413 }
414
415 public static void deleteCategory(
416 com.liferay.portlet.messageboards.model.MBCategory category)
417 throws com.liferay.portal.kernel.exception.PortalException,
418 com.liferay.portal.kernel.exception.SystemException {
419 getService().deleteCategory(category);
420 }
421
422 public static void deleteCategory(
423 com.liferay.portlet.messageboards.model.MBCategory category,
424 boolean includeTrashedEntries)
425 throws com.liferay.portal.kernel.exception.PortalException,
426 com.liferay.portal.kernel.exception.SystemException {
427 getService().deleteCategory(category, includeTrashedEntries);
428 }
429
430 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
431 long groupId)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 return getService().getCategories(groupId);
434 }
435
436 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
437 long groupId, int status)
438 throws com.liferay.portal.kernel.exception.SystemException {
439 return getService().getCategories(groupId, status);
440 }
441
442 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
443 long groupId, long parentCategoryId, int start, int end)
444 throws com.liferay.portal.kernel.exception.SystemException {
445 return getService().getCategories(groupId, parentCategoryId, start, end);
446 }
447
448 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
449 long groupId, long parentCategoryId, int status, int start, int end)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 return getService()
452 .getCategories(groupId, parentCategoryId, status, start, end);
453 }
454
455 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
456 long groupId, long[] parentCategoryIds, int start, int end)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getService().getCategories(groupId, parentCategoryIds, start, end);
459 }
460
461 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
462 long groupId, long[] parentCategoryIds, int status, int start, int end)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService()
465 .getCategories(groupId, parentCategoryIds, status, start, end);
466 }
467
468 public static java.util.List<java.lang.Object> getCategoriesAndThreads(
469 long groupId, long categoryId)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getService().getCategoriesAndThreads(groupId, categoryId);
472 }
473
474 public static int getCategoriesCount(long groupId)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 return getService().getCategoriesCount(groupId);
477 }
478
479 public static int getCategoriesCount(long groupId, int status)
480 throws com.liferay.portal.kernel.exception.SystemException {
481 return getService().getCategoriesCount(groupId, status);
482 }
483
484 public static int getCategoriesCount(long groupId, long parentCategoryId)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getService().getCategoriesCount(groupId, parentCategoryId);
487 }
488
489 public static int getCategoriesCount(long groupId, long parentCategoryId,
490 int status) throws com.liferay.portal.kernel.exception.SystemException {
491 return getService().getCategoriesCount(groupId, parentCategoryId, status);
492 }
493
494 public static int getCategoriesCount(long groupId, long[] parentCategoryIds)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService().getCategoriesCount(groupId, parentCategoryIds);
497 }
498
499 public static int getCategoriesCount(long groupId,
500 long[] parentCategoryIds, int status)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getService()
503 .getCategoriesCount(groupId, parentCategoryIds, status);
504 }
505
506 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
507 long categoryId)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException {
510 return getService().getCategory(categoryId);
511 }
512
513 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
514 long companyId, int start, int end)
515 throws com.liferay.portal.kernel.exception.SystemException {
516 return getService().getCompanyCategories(companyId, start, end);
517 }
518
519 public static int getCompanyCategoriesCount(long companyId)
520 throws com.liferay.portal.kernel.exception.SystemException {
521 return getService().getCompanyCategoriesCount(companyId);
522 }
523
524 public static java.util.List<java.lang.Long> getSubcategoryIds(
525 java.util.List<java.lang.Long> categoryIds, long groupId,
526 long categoryId)
527 throws com.liferay.portal.kernel.exception.SystemException {
528 return getService().getSubcategoryIds(categoryIds, groupId, categoryId);
529 }
530
531 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
532 long groupId, long userId, int start, int end)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getService().getSubscribedCategories(groupId, userId, start, end);
535 }
536
537 public static int getSubscribedCategoriesCount(long groupId, long userId)
538 throws com.liferay.portal.kernel.exception.SystemException {
539 return getService().getSubscribedCategoriesCount(groupId, userId);
540 }
541
542 public static void moveCategoriesToTrash(long groupId, long userId)
543 throws com.liferay.portal.kernel.exception.PortalException,
544 com.liferay.portal.kernel.exception.SystemException {
545 getService().moveCategoriesToTrash(groupId, userId);
546 }
547
548 public static com.liferay.portlet.messageboards.model.MBCategory moveCategory(
549 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
550 throws com.liferay.portal.kernel.exception.PortalException,
551 com.liferay.portal.kernel.exception.SystemException {
552 return getService()
553 .moveCategory(categoryId, parentCategoryId,
554 mergeWithParentCategory);
555 }
556
557 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
558 long userId, long categoryId, long newCategoryId)
559 throws com.liferay.portal.kernel.exception.PortalException,
560 com.liferay.portal.kernel.exception.SystemException {
561 return getService()
562 .moveCategoryFromTrash(userId, categoryId, newCategoryId);
563 }
564
565 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
566 long userId, long categoryId)
567 throws com.liferay.portal.kernel.exception.PortalException,
568 com.liferay.portal.kernel.exception.SystemException {
569 return getService().moveCategoryToTrash(userId, categoryId);
570 }
571
572 public static void restoreCategoryFromTrash(long userId, long categoryId)
573 throws com.liferay.portal.kernel.exception.PortalException,
574 com.liferay.portal.kernel.exception.SystemException {
575 getService().restoreCategoryFromTrash(userId, categoryId);
576 }
577
578 public static void subscribeCategory(long userId, long groupId,
579 long categoryId)
580 throws com.liferay.portal.kernel.exception.PortalException,
581 com.liferay.portal.kernel.exception.SystemException {
582 getService().subscribeCategory(userId, groupId, categoryId);
583 }
584
585 public static void unsubscribeCategory(long userId, long groupId,
586 long categoryId)
587 throws com.liferay.portal.kernel.exception.PortalException,
588 com.liferay.portal.kernel.exception.SystemException {
589 getService().unsubscribeCategory(userId, groupId, categoryId);
590 }
591
592 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
593 long categoryId, long parentCategoryId, java.lang.String name,
594 java.lang.String description, java.lang.String displayStyle,
595 java.lang.String emailAddress, java.lang.String inProtocol,
596 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
597 java.lang.String inUserName, java.lang.String inPassword,
598 int inReadInterval, java.lang.String outEmailAddress,
599 boolean outCustom, java.lang.String outServerName, int outServerPort,
600 boolean outUseSSL, java.lang.String outUserName,
601 java.lang.String outPassword, boolean allowAnonymous,
602 boolean mailingListActive, boolean mergeWithParentCategory,
603 com.liferay.portal.service.ServiceContext serviceContext)
604 throws com.liferay.portal.kernel.exception.PortalException,
605 com.liferay.portal.kernel.exception.SystemException {
606 return getService()
607 .updateCategory(categoryId, parentCategoryId, name,
608 description, displayStyle, emailAddress, inProtocol, inServerName,
609 inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
610 outEmailAddress, outCustom, outServerName, outServerPort,
611 outUseSSL, outUserName, outPassword, allowAnonymous,
612 mailingListActive, mergeWithParentCategory, serviceContext);
613 }
614
615 public static com.liferay.portlet.messageboards.model.MBCategory updateStatus(
616 long userId, long categoryId, int status)
617 throws com.liferay.portal.kernel.exception.PortalException,
618 com.liferay.portal.kernel.exception.SystemException {
619 return getService().updateStatus(userId, categoryId, status);
620 }
621
622 public static MBCategoryLocalService getService() {
623 if (_service == null) {
624 _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
625
626 ReferenceRegistry.registerReference(MBCategoryLocalServiceUtil.class,
627 "_service");
628 }
629
630 return _service;
631 }
632
633
636 public void setService(MBCategoryLocalService service) {
637 }
638
639 private static MBCategoryLocalService _service;
640 }