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 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
044 long userId, long parentCategoryId, java.lang.String name,
045 java.lang.String description, java.lang.String displayStyle,
046 java.lang.String emailAddress, java.lang.String inProtocol,
047 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
048 java.lang.String inUserName, java.lang.String inPassword,
049 int inReadInterval, java.lang.String outEmailAddress,
050 boolean outCustom, java.lang.String outServerName, int outServerPort,
051 boolean outUseSSL, java.lang.String outUserName,
052 java.lang.String outPassword, boolean allowAnonymous,
053 boolean mailingListActive,
054 com.liferay.portal.service.ServiceContext serviceContext)
055 throws com.liferay.portal.kernel.exception.PortalException {
056 return getService()
057 .addCategory(userId, parentCategoryId, name, description,
058 displayStyle, emailAddress, inProtocol, inServerName, inServerPort,
059 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
060 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
061 outPassword, allowAnonymous, mailingListActive, serviceContext);
062 }
063
064 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
065 long userId, long parentCategoryId, java.lang.String name,
066 java.lang.String description,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException {
069 return getService()
070 .addCategory(userId, parentCategoryId, name, description,
071 serviceContext);
072 }
073
074 public static void addCategoryResources(
075 com.liferay.portlet.messageboards.model.MBCategory category,
076 boolean addGroupPermissions, boolean addGuestPermissions)
077 throws com.liferay.portal.kernel.exception.PortalException {
078 getService()
079 .addCategoryResources(category, addGroupPermissions,
080 addGuestPermissions);
081 }
082
083 public static void addCategoryResources(
084 com.liferay.portlet.messageboards.model.MBCategory category,
085 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 getService().addCategoryResources(category, modelPermissions);
088 }
089
090 public static void addCategoryResources(long categoryId,
091 boolean addGroupPermissions, boolean addGuestPermissions)
092 throws com.liferay.portal.kernel.exception.PortalException {
093 getService()
094 .addCategoryResources(categoryId, addGroupPermissions,
095 addGuestPermissions);
096 }
097
098 public static void addCategoryResources(long categoryId,
099 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
100 throws com.liferay.portal.kernel.exception.PortalException {
101 getService().addCategoryResources(categoryId, modelPermissions);
102 }
103
104
110 public static com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
111 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
112 return getService().addMBCategory(mbCategory);
113 }
114
115
121 public static com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
122 long categoryId) {
123 return getService().createMBCategory(categoryId);
124 }
125
126 public static void deleteCategories(long groupId)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 getService().deleteCategories(groupId);
129 }
130
131 public static void deleteCategory(
132 com.liferay.portlet.messageboards.model.MBCategory category)
133 throws com.liferay.portal.kernel.exception.PortalException {
134 getService().deleteCategory(category);
135 }
136
137 public static void deleteCategory(
138 com.liferay.portlet.messageboards.model.MBCategory category,
139 boolean includeTrashedEntries)
140 throws com.liferay.portal.kernel.exception.PortalException {
141 getService().deleteCategory(category, includeTrashedEntries);
142 }
143
144 public static void deleteCategory(long categoryId)
145 throws com.liferay.portal.kernel.exception.PortalException {
146 getService().deleteCategory(categoryId);
147 }
148
149
156 public static com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
157 long categoryId)
158 throws com.liferay.portal.kernel.exception.PortalException {
159 return getService().deleteMBCategory(categoryId);
160 }
161
162
168 public static com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
169 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
170 return getService().deleteMBCategory(mbCategory);
171 }
172
173
176 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
177 com.liferay.portal.model.PersistedModel persistedModel)
178 throws com.liferay.portal.kernel.exception.PortalException {
179 return getService().deletePersistedModel(persistedModel);
180 }
181
182 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
183 return getService().dynamicQuery();
184 }
185
186
192 public static <T> java.util.List<T> dynamicQuery(
193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
194 return getService().dynamicQuery(dynamicQuery);
195 }
196
197
209 public static <T> java.util.List<T> dynamicQuery(
210 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
211 int end) {
212 return getService().dynamicQuery(dynamicQuery, start, end);
213 }
214
215
228 public static <T> java.util.List<T> dynamicQuery(
229 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
230 int end,
231 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
232 return getService()
233 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
234 }
235
236
242 public static long dynamicQueryCount(
243 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
244 return getService().dynamicQueryCount(dynamicQuery);
245 }
246
247
254 public static long dynamicQueryCount(
255 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
256 com.liferay.portal.kernel.dao.orm.Projection projection) {
257 return getService().dynamicQueryCount(dynamicQuery, projection);
258 }
259
260 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategory(
261 long categoryId) {
262 return getService().fetchMBCategory(categoryId);
263 }
264
265
272 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndGroupId(
273 java.lang.String uuid, long groupId) {
274 return getService().fetchMBCategoryByUuidAndGroupId(uuid, groupId);
275 }
276
277 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
278 return getService().getActionableDynamicQuery();
279 }
280
281
286 public static java.lang.String getBeanIdentifier() {
287 return getService().getBeanIdentifier();
288 }
289
290 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
291 long groupId) {
292 return getService().getCategories(groupId);
293 }
294
295 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
296 long groupId, long excludedCategoryId, long parentCategoryId,
297 int status, int start, int end) {
298 return getService()
299 .getCategories(groupId, excludedCategoryId,
300 parentCategoryId, status, start, end);
301 }
302
303 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
304 long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
305 int status, int start, int end) {
306 return getService()
307 .getCategories(groupId, excludedCategoryIds,
308 parentCategoryIds, status, start, end);
309 }
310
311 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
312 long groupId, long parentCategoryId, int start, int end) {
313 return getService().getCategories(groupId, parentCategoryId, start, end);
314 }
315
316 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
317 long groupId, long parentCategoryId, int status, int start, int end) {
318 return getService()
319 .getCategories(groupId, parentCategoryId, status, start, end);
320 }
321
322 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
323 long groupId, long[] parentCategoryIds, int start, int end) {
324 return getService().getCategories(groupId, parentCategoryIds, start, end);
325 }
326
327 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
328 long groupId, long[] parentCategoryIds, int status, int start, int end) {
329 return getService()
330 .getCategories(groupId, parentCategoryIds, status, start, end);
331 }
332
333 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
334 long groupId, int status) {
335 return getService().getCategories(groupId, status);
336 }
337
338 public static java.util.List<java.lang.Object> getCategoriesAndThreads(
339 long groupId, long categoryId) {
340 return getService().getCategoriesAndThreads(groupId, categoryId);
341 }
342
343 public static int getCategoriesCount(long groupId) {
344 return getService().getCategoriesCount(groupId);
345 }
346
347 public static int getCategoriesCount(long groupId, long excludedCategoryId,
348 long parentCategoryId, int status) {
349 return getService()
350 .getCategoriesCount(groupId, excludedCategoryId,
351 parentCategoryId, status);
352 }
353
354 public static int getCategoriesCount(long groupId,
355 long[] excludedCategoryIds, long[] parentCategoryIds, int status) {
356 return getService()
357 .getCategoriesCount(groupId, excludedCategoryIds,
358 parentCategoryIds, status);
359 }
360
361 public static int getCategoriesCount(long groupId, long parentCategoryId) {
362 return getService().getCategoriesCount(groupId, parentCategoryId);
363 }
364
365 public static int getCategoriesCount(long groupId, long parentCategoryId,
366 int status) {
367 return getService().getCategoriesCount(groupId, parentCategoryId, status);
368 }
369
370 public static int getCategoriesCount(long groupId, long[] parentCategoryIds) {
371 return getService().getCategoriesCount(groupId, parentCategoryIds);
372 }
373
374 public static int getCategoriesCount(long groupId,
375 long[] parentCategoryIds, int status) {
376 return getService()
377 .getCategoriesCount(groupId, parentCategoryIds, status);
378 }
379
380 public static int getCategoriesCount(long groupId, int status) {
381 return getService().getCategoriesCount(groupId, status);
382 }
383
384 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
385 long categoryId)
386 throws com.liferay.portal.kernel.exception.PortalException {
387 return getService().getCategory(categoryId);
388 }
389
390 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
391 long companyId, int start, int end) {
392 return getService().getCompanyCategories(companyId, start, end);
393 }
394
395 public static int getCompanyCategoriesCount(long companyId) {
396 return getService().getCompanyCategoriesCount(companyId);
397 }
398
399 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
400 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
401 return getService().getExportActionableDynamicQuery(portletDataContext);
402 }
403
404
415 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
416 int start, int end) {
417 return getService().getMBCategories(start, end);
418 }
419
420
427 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
428 java.lang.String uuid, long companyId) {
429 return getService().getMBCategoriesByUuidAndCompanyId(uuid, companyId);
430 }
431
432
442 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
443 java.lang.String uuid, long companyId, int start, int end,
444 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator) {
445 return getService()
446 .getMBCategoriesByUuidAndCompanyId(uuid, companyId, start,
447 end, orderByComparator);
448 }
449
450
455 public static int getMBCategoriesCount() {
456 return getService().getMBCategoriesCount();
457 }
458
459
466 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
467 long categoryId)
468 throws com.liferay.portal.kernel.exception.PortalException {
469 return getService().getMBCategory(categoryId);
470 }
471
472
480 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
481 java.lang.String uuid, long groupId)
482 throws com.liferay.portal.kernel.exception.PortalException {
483 return getService().getMBCategoryByUuidAndGroupId(uuid, groupId);
484 }
485
486 public static com.liferay.portal.model.PersistedModel getPersistedModel(
487 java.io.Serializable primaryKeyObj)
488 throws com.liferay.portal.kernel.exception.PortalException {
489 return getService().getPersistedModel(primaryKeyObj);
490 }
491
492 public static java.util.List<java.lang.Long> getSubcategoryIds(
493 java.util.List<java.lang.Long> categoryIds, long groupId,
494 long categoryId) {
495 return getService().getSubcategoryIds(categoryIds, groupId, categoryId);
496 }
497
498 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
499 long groupId, long userId, int start, int end) {
500 return getService().getSubscribedCategories(groupId, userId, start, end);
501 }
502
503 public static int getSubscribedCategoriesCount(long groupId, long userId) {
504 return getService().getSubscribedCategoriesCount(groupId, userId);
505 }
506
507 public static void moveCategoriesToTrash(long groupId, long userId)
508 throws com.liferay.portal.kernel.exception.PortalException {
509 getService().moveCategoriesToTrash(groupId, userId);
510 }
511
512 public static com.liferay.portlet.messageboards.model.MBCategory moveCategory(
513 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
514 throws com.liferay.portal.kernel.exception.PortalException {
515 return getService()
516 .moveCategory(categoryId, parentCategoryId,
517 mergeWithParentCategory);
518 }
519
520 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
521 long userId, long categoryId, long newCategoryId)
522 throws com.liferay.portal.kernel.exception.PortalException {
523 return getService()
524 .moveCategoryFromTrash(userId, categoryId, newCategoryId);
525 }
526
527 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
528 long userId, long categoryId)
529 throws com.liferay.portal.kernel.exception.PortalException {
530 return getService().moveCategoryToTrash(userId, categoryId);
531 }
532
533 public static void restoreCategoryFromTrash(long userId, long categoryId)
534 throws com.liferay.portal.kernel.exception.PortalException {
535 getService().restoreCategoryFromTrash(userId, categoryId);
536 }
537
538
543 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
544 getService().setBeanIdentifier(beanIdentifier);
545 }
546
547 public static void subscribeCategory(long userId, long groupId,
548 long categoryId)
549 throws com.liferay.portal.kernel.exception.PortalException {
550 getService().subscribeCategory(userId, groupId, categoryId);
551 }
552
553 public static void unsubscribeCategory(long userId, long groupId,
554 long categoryId)
555 throws com.liferay.portal.kernel.exception.PortalException {
556 getService().unsubscribeCategory(userId, groupId, categoryId);
557 }
558
559 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
560 long categoryId, long parentCategoryId, java.lang.String name,
561 java.lang.String description, java.lang.String displayStyle,
562 java.lang.String emailAddress, java.lang.String inProtocol,
563 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
564 java.lang.String inUserName, java.lang.String inPassword,
565 int inReadInterval, java.lang.String outEmailAddress,
566 boolean outCustom, java.lang.String outServerName, int outServerPort,
567 boolean outUseSSL, java.lang.String outUserName,
568 java.lang.String outPassword, boolean allowAnonymous,
569 boolean mailingListActive, boolean mergeWithParentCategory,
570 com.liferay.portal.service.ServiceContext serviceContext)
571 throws com.liferay.portal.kernel.exception.PortalException {
572 return getService()
573 .updateCategory(categoryId, parentCategoryId, name,
574 description, displayStyle, emailAddress, inProtocol, inServerName,
575 inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
576 outEmailAddress, outCustom, outServerName, outServerPort,
577 outUseSSL, outUserName, outPassword, allowAnonymous,
578 mailingListActive, mergeWithParentCategory, serviceContext);
579 }
580
581
587 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
588 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
589 return getService().updateMBCategory(mbCategory);
590 }
591
592 public static com.liferay.portlet.messageboards.model.MBCategory updateMessageCount(
593 long categoryId) {
594 return getService().updateMessageCount(categoryId);
595 }
596
597 public static com.liferay.portlet.messageboards.model.MBCategory updateStatistics(
598 long categoryId) {
599 return getService().updateStatistics(categoryId);
600 }
601
602 public static com.liferay.portlet.messageboards.model.MBCategory updateStatus(
603 long userId, long categoryId, int status)
604 throws com.liferay.portal.kernel.exception.PortalException {
605 return getService().updateStatus(userId, categoryId, status);
606 }
607
608 public static com.liferay.portlet.messageboards.model.MBCategory updateThreadCount(
609 long categoryId) {
610 return getService().updateThreadCount(categoryId);
611 }
612
613 public static MBCategoryLocalService getService() {
614 if (_service == null) {
615 _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
616
617 ReferenceRegistry.registerReference(MBCategoryLocalServiceUtil.class,
618 "_service");
619 }
620
621 return _service;
622 }
623
624
627 @Deprecated
628 public void setService(MBCategoryLocalService service) {
629 }
630
631 private static MBCategoryLocalService _service;
632 }