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 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
423 java.lang.String uuid, long companyId) {
424 return getService().getMBCategoriesByUuidAndCompanyId(uuid, companyId);
425 }
426
427 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
428 java.lang.String uuid, long companyId, int start, int end,
429 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator) {
430 return getService()
431 .getMBCategoriesByUuidAndCompanyId(uuid, companyId, start,
432 end, orderByComparator);
433 }
434
435
440 public static int getMBCategoriesCount() {
441 return getService().getMBCategoriesCount();
442 }
443
444
451 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
452 long categoryId)
453 throws com.liferay.portal.kernel.exception.PortalException {
454 return getService().getMBCategory(categoryId);
455 }
456
457
465 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
466 java.lang.String uuid, long groupId)
467 throws com.liferay.portal.kernel.exception.PortalException {
468 return getService().getMBCategoryByUuidAndGroupId(uuid, groupId);
469 }
470
471 public static com.liferay.portal.model.PersistedModel getPersistedModel(
472 java.io.Serializable primaryKeyObj)
473 throws com.liferay.portal.kernel.exception.PortalException {
474 return getService().getPersistedModel(primaryKeyObj);
475 }
476
477 public static java.util.List<java.lang.Long> getSubcategoryIds(
478 java.util.List<java.lang.Long> categoryIds, long groupId,
479 long categoryId) {
480 return getService().getSubcategoryIds(categoryIds, groupId, categoryId);
481 }
482
483 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
484 long groupId, long userId, int start, int end) {
485 return getService().getSubscribedCategories(groupId, userId, start, end);
486 }
487
488 public static int getSubscribedCategoriesCount(long groupId, long userId) {
489 return getService().getSubscribedCategoriesCount(groupId, userId);
490 }
491
492 public static void moveCategoriesToTrash(long groupId, long userId)
493 throws com.liferay.portal.kernel.exception.PortalException {
494 getService().moveCategoriesToTrash(groupId, userId);
495 }
496
497 public static com.liferay.portlet.messageboards.model.MBCategory moveCategory(
498 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
499 throws com.liferay.portal.kernel.exception.PortalException {
500 return getService()
501 .moveCategory(categoryId, parentCategoryId,
502 mergeWithParentCategory);
503 }
504
505 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
506 long userId, long categoryId, long newCategoryId)
507 throws com.liferay.portal.kernel.exception.PortalException {
508 return getService()
509 .moveCategoryFromTrash(userId, categoryId, newCategoryId);
510 }
511
512 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
513 long userId, long categoryId)
514 throws com.liferay.portal.kernel.exception.PortalException {
515 return getService().moveCategoryToTrash(userId, categoryId);
516 }
517
518 public static void restoreCategoryFromTrash(long userId, long categoryId)
519 throws com.liferay.portal.kernel.exception.PortalException {
520 getService().restoreCategoryFromTrash(userId, categoryId);
521 }
522
523
528 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
529 getService().setBeanIdentifier(beanIdentifier);
530 }
531
532 public static void subscribeCategory(long userId, long groupId,
533 long categoryId)
534 throws com.liferay.portal.kernel.exception.PortalException {
535 getService().subscribeCategory(userId, groupId, categoryId);
536 }
537
538 public static void unsubscribeCategory(long userId, long groupId,
539 long categoryId)
540 throws com.liferay.portal.kernel.exception.PortalException {
541 getService().unsubscribeCategory(userId, groupId, categoryId);
542 }
543
544 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
545 long categoryId, long parentCategoryId, java.lang.String name,
546 java.lang.String description, java.lang.String displayStyle,
547 java.lang.String emailAddress, java.lang.String inProtocol,
548 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
549 java.lang.String inUserName, java.lang.String inPassword,
550 int inReadInterval, java.lang.String outEmailAddress,
551 boolean outCustom, java.lang.String outServerName, int outServerPort,
552 boolean outUseSSL, java.lang.String outUserName,
553 java.lang.String outPassword, boolean allowAnonymous,
554 boolean mailingListActive, boolean mergeWithParentCategory,
555 com.liferay.portal.service.ServiceContext serviceContext)
556 throws com.liferay.portal.kernel.exception.PortalException {
557 return getService()
558 .updateCategory(categoryId, parentCategoryId, name,
559 description, displayStyle, emailAddress, inProtocol, inServerName,
560 inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
561 outEmailAddress, outCustom, outServerName, outServerPort,
562 outUseSSL, outUserName, outPassword, allowAnonymous,
563 mailingListActive, mergeWithParentCategory, serviceContext);
564 }
565
566
572 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
573 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
574 return getService().updateMBCategory(mbCategory);
575 }
576
577 public static com.liferay.portlet.messageboards.model.MBCategory updateStatus(
578 long userId, long categoryId, int status)
579 throws com.liferay.portal.kernel.exception.PortalException {
580 return getService().updateStatus(userId, categoryId, status);
581 }
582
583 public static MBCategoryLocalService getService() {
584 if (_service == null) {
585 _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
586
587 ReferenceRegistry.registerReference(MBCategoryLocalServiceUtil.class,
588 "_service");
589 }
590
591 return _service;
592 }
593
594
597 @Deprecated
598 public void setService(MBCategoryLocalService service) {
599 }
600
601 private static MBCategoryLocalService _service;
602 }