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