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 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 getService()
088 .addCategoryResources(category, groupPermissions, guestPermissions);
089 }
090
091 public static void addCategoryResources(long categoryId,
092 boolean addGroupPermissions, boolean addGuestPermissions)
093 throws com.liferay.portal.kernel.exception.PortalException {
094 getService()
095 .addCategoryResources(categoryId, addGroupPermissions,
096 addGuestPermissions);
097 }
098
099 public static void addCategoryResources(long categoryId,
100 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 getService()
103 .addCategoryResources(categoryId, groupPermissions, guestPermissions);
104 }
105
106
112 public static com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
113 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
114 return getService().addMBCategory(mbCategory);
115 }
116
117
123 public static com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
124 long categoryId) {
125 return getService().createMBCategory(categoryId);
126 }
127
128 public static void deleteCategories(long groupId)
129 throws com.liferay.portal.kernel.exception.PortalException {
130 getService().deleteCategories(groupId);
131 }
132
133 public static void deleteCategory(
134 com.liferay.portlet.messageboards.model.MBCategory category)
135 throws com.liferay.portal.kernel.exception.PortalException {
136 getService().deleteCategory(category);
137 }
138
139 public static void deleteCategory(
140 com.liferay.portlet.messageboards.model.MBCategory category,
141 boolean includeTrashedEntries)
142 throws com.liferay.portal.kernel.exception.PortalException {
143 getService().deleteCategory(category, includeTrashedEntries);
144 }
145
146 public static void deleteCategory(long categoryId)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 getService().deleteCategory(categoryId);
149 }
150
151
158 public static com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
159 long categoryId)
160 throws com.liferay.portal.kernel.exception.PortalException {
161 return getService().deleteMBCategory(categoryId);
162 }
163
164
170 public static com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
171 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
172 return getService().deleteMBCategory(mbCategory);
173 }
174
175
178 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
179 com.liferay.portal.model.PersistedModel persistedModel)
180 throws com.liferay.portal.kernel.exception.PortalException {
181 return getService().deletePersistedModel(persistedModel);
182 }
183
184 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
185 return getService().dynamicQuery();
186 }
187
188
194 public static <T> java.util.List<T> dynamicQuery(
195 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
196 return getService().dynamicQuery(dynamicQuery);
197 }
198
199
211 public static <T> java.util.List<T> dynamicQuery(
212 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
213 int end) {
214 return getService().dynamicQuery(dynamicQuery, start, end);
215 }
216
217
230 public static <T> java.util.List<T> dynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
232 int end,
233 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
234 return getService()
235 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
236 }
237
238
244 public static long dynamicQueryCount(
245 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
246 return getService().dynamicQueryCount(dynamicQuery);
247 }
248
249
256 public static long dynamicQueryCount(
257 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
258 com.liferay.portal.kernel.dao.orm.Projection projection) {
259 return getService().dynamicQueryCount(dynamicQuery, projection);
260 }
261
262 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategory(
263 long categoryId) {
264 return getService().fetchMBCategory(categoryId);
265 }
266
267
274 public static com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndGroupId(
275 java.lang.String uuid, long groupId) {
276 return getService().fetchMBCategoryByUuidAndGroupId(uuid, groupId);
277 }
278
279 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
280 return getService().getActionableDynamicQuery();
281 }
282
283
288 public static java.lang.String getBeanIdentifier() {
289 return getService().getBeanIdentifier();
290 }
291
292 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
293 long groupId) {
294 return getService().getCategories(groupId);
295 }
296
297 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
298 long groupId, long excludedCategoryId, long parentCategoryId,
299 int status, int start, int end) {
300 return getService()
301 .getCategories(groupId, excludedCategoryId,
302 parentCategoryId, status, start, end);
303 }
304
305 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
306 long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
307 int status, int start, int end) {
308 return getService()
309 .getCategories(groupId, excludedCategoryIds,
310 parentCategoryIds, status, start, end);
311 }
312
313 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
314 long groupId, long parentCategoryId, int start, int end) {
315 return getService().getCategories(groupId, parentCategoryId, start, end);
316 }
317
318 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
319 long groupId, long parentCategoryId, int status, int start, int end) {
320 return getService()
321 .getCategories(groupId, parentCategoryId, status, start, end);
322 }
323
324 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
325 long groupId, long[] parentCategoryIds, int start, int end) {
326 return getService().getCategories(groupId, parentCategoryIds, start, end);
327 }
328
329 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
330 long groupId, long[] parentCategoryIds, int status, int start, int end) {
331 return getService()
332 .getCategories(groupId, parentCategoryIds, status, start, end);
333 }
334
335 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
336 long groupId, int status) {
337 return getService().getCategories(groupId, status);
338 }
339
340 public static java.util.List<java.lang.Object> getCategoriesAndThreads(
341 long groupId, long categoryId) {
342 return getService().getCategoriesAndThreads(groupId, categoryId);
343 }
344
345 public static int getCategoriesCount(long groupId) {
346 return getService().getCategoriesCount(groupId);
347 }
348
349 public static int getCategoriesCount(long groupId, long excludedCategoryId,
350 long parentCategoryId, int status) {
351 return getService()
352 .getCategoriesCount(groupId, excludedCategoryId,
353 parentCategoryId, status);
354 }
355
356 public static int getCategoriesCount(long groupId,
357 long[] excludedCategoryIds, long[] parentCategoryIds, int status) {
358 return getService()
359 .getCategoriesCount(groupId, excludedCategoryIds,
360 parentCategoryIds, status);
361 }
362
363 public static int getCategoriesCount(long groupId, long parentCategoryId) {
364 return getService().getCategoriesCount(groupId, parentCategoryId);
365 }
366
367 public static int getCategoriesCount(long groupId, long parentCategoryId,
368 int status) {
369 return getService().getCategoriesCount(groupId, parentCategoryId, status);
370 }
371
372 public static int getCategoriesCount(long groupId, long[] parentCategoryIds) {
373 return getService().getCategoriesCount(groupId, parentCategoryIds);
374 }
375
376 public static int getCategoriesCount(long groupId,
377 long[] parentCategoryIds, int status) {
378 return getService()
379 .getCategoriesCount(groupId, parentCategoryIds, status);
380 }
381
382 public static int getCategoriesCount(long groupId, int status) {
383 return getService().getCategoriesCount(groupId, status);
384 }
385
386 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
387 long categoryId)
388 throws com.liferay.portal.kernel.exception.PortalException {
389 return getService().getCategory(categoryId);
390 }
391
392 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
393 long companyId, int start, int end) {
394 return getService().getCompanyCategories(companyId, start, end);
395 }
396
397 public static int getCompanyCategoriesCount(long companyId) {
398 return getService().getCompanyCategoriesCount(companyId);
399 }
400
401 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
402 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
403 return getService().getExportActionableDynamicQuery(portletDataContext);
404 }
405
406
417 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
418 int start, int end) {
419 return getService().getMBCategories(start, end);
420 }
421
422
429 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
430 java.lang.String uuid, long companyId) {
431 return getService().getMBCategoriesByUuidAndCompanyId(uuid, companyId);
432 }
433
434
444 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
445 java.lang.String uuid, long companyId, int start, int end,
446 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator) {
447 return getService()
448 .getMBCategoriesByUuidAndCompanyId(uuid, companyId, start,
449 end, orderByComparator);
450 }
451
452
457 public static int getMBCategoriesCount() {
458 return getService().getMBCategoriesCount();
459 }
460
461
468 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
469 long categoryId)
470 throws com.liferay.portal.kernel.exception.PortalException {
471 return getService().getMBCategory(categoryId);
472 }
473
474
482 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
483 java.lang.String uuid, long groupId)
484 throws com.liferay.portal.kernel.exception.PortalException {
485 return getService().getMBCategoryByUuidAndGroupId(uuid, groupId);
486 }
487
488 public static com.liferay.portal.model.PersistedModel getPersistedModel(
489 java.io.Serializable primaryKeyObj)
490 throws com.liferay.portal.kernel.exception.PortalException {
491 return getService().getPersistedModel(primaryKeyObj);
492 }
493
494 public static java.util.List<java.lang.Long> getSubcategoryIds(
495 java.util.List<java.lang.Long> categoryIds, long groupId,
496 long categoryId) {
497 return getService().getSubcategoryIds(categoryIds, groupId, categoryId);
498 }
499
500 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
501 long groupId, long userId, int start, int end) {
502 return getService().getSubscribedCategories(groupId, userId, start, end);
503 }
504
505 public static int getSubscribedCategoriesCount(long groupId, long userId) {
506 return getService().getSubscribedCategoriesCount(groupId, userId);
507 }
508
509 public static void moveCategoriesToTrash(long groupId, long userId)
510 throws com.liferay.portal.kernel.exception.PortalException {
511 getService().moveCategoriesToTrash(groupId, userId);
512 }
513
514 public static com.liferay.portlet.messageboards.model.MBCategory moveCategory(
515 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
516 throws com.liferay.portal.kernel.exception.PortalException {
517 return getService()
518 .moveCategory(categoryId, parentCategoryId,
519 mergeWithParentCategory);
520 }
521
522 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
523 long userId, long categoryId, long newCategoryId)
524 throws com.liferay.portal.kernel.exception.PortalException {
525 return getService()
526 .moveCategoryFromTrash(userId, categoryId, newCategoryId);
527 }
528
529 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
530 long userId, long categoryId)
531 throws com.liferay.portal.kernel.exception.PortalException {
532 return getService().moveCategoryToTrash(userId, categoryId);
533 }
534
535 public static void restoreCategoryFromTrash(long userId, long categoryId)
536 throws com.liferay.portal.kernel.exception.PortalException {
537 getService().restoreCategoryFromTrash(userId, categoryId);
538 }
539
540
545 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
546 getService().setBeanIdentifier(beanIdentifier);
547 }
548
549 public static void subscribeCategory(long userId, long groupId,
550 long categoryId)
551 throws com.liferay.portal.kernel.exception.PortalException {
552 getService().subscribeCategory(userId, groupId, categoryId);
553 }
554
555 public static void unsubscribeCategory(long userId, long groupId,
556 long categoryId)
557 throws com.liferay.portal.kernel.exception.PortalException {
558 getService().unsubscribeCategory(userId, groupId, categoryId);
559 }
560
561 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
562 long categoryId, long parentCategoryId, java.lang.String name,
563 java.lang.String description, java.lang.String displayStyle,
564 java.lang.String emailAddress, java.lang.String inProtocol,
565 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
566 java.lang.String inUserName, java.lang.String inPassword,
567 int inReadInterval, java.lang.String outEmailAddress,
568 boolean outCustom, java.lang.String outServerName, int outServerPort,
569 boolean outUseSSL, java.lang.String outUserName,
570 java.lang.String outPassword, boolean allowAnonymous,
571 boolean mailingListActive, boolean mergeWithParentCategory,
572 com.liferay.portal.service.ServiceContext serviceContext)
573 throws com.liferay.portal.kernel.exception.PortalException {
574 return getService()
575 .updateCategory(categoryId, parentCategoryId, name,
576 description, displayStyle, emailAddress, inProtocol, inServerName,
577 inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
578 outEmailAddress, outCustom, outServerName, outServerPort,
579 outUseSSL, outUserName, outPassword, allowAnonymous,
580 mailingListActive, mergeWithParentCategory, serviceContext);
581 }
582
583
589 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
590 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
591 return getService().updateMBCategory(mbCategory);
592 }
593
594 public static com.liferay.portlet.messageboards.model.MBCategory updateStatus(
595 long userId, long categoryId, int status)
596 throws com.liferay.portal.kernel.exception.PortalException {
597 return getService().updateStatus(userId, categoryId, status);
598 }
599
600 public static MBCategoryLocalService getService() {
601 if (_service == null) {
602 _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
603
604 ReferenceRegistry.registerReference(MBCategoryLocalServiceUtil.class,
605 "_service");
606 }
607
608 return _service;
609 }
610
611
614 @Deprecated
615 public void setService(MBCategoryLocalService service) {
616 }
617
618 private static MBCategoryLocalService _service;
619 }