001
014
015 package com.liferay.message.boards.kernel.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.message.boards.kernel.model.MBCategory addCategory(
044 long userId, long parentCategoryId, java.lang.String name,
045 java.lang.String description,
046 com.liferay.portal.kernel.service.ServiceContext serviceContext)
047 throws com.liferay.portal.kernel.exception.PortalException {
048 return getService()
049 .addCategory(userId, parentCategoryId, name, description,
050 serviceContext);
051 }
052
053 public static com.liferay.message.boards.kernel.model.MBCategory addCategory(
054 long userId, long parentCategoryId, java.lang.String name,
055 java.lang.String description, java.lang.String displayStyle,
056 java.lang.String emailAddress, java.lang.String inProtocol,
057 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
058 java.lang.String inUserName, java.lang.String inPassword,
059 int inReadInterval, java.lang.String outEmailAddress,
060 boolean outCustom, java.lang.String outServerName, int outServerPort,
061 boolean outUseSSL, java.lang.String outUserName,
062 java.lang.String outPassword, boolean allowAnonymous,
063 boolean mailingListActive,
064 com.liferay.portal.kernel.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException {
066 return getService()
067 .addCategory(userId, parentCategoryId, name, description,
068 displayStyle, emailAddress, inProtocol, inServerName, inServerPort,
069 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
070 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
071 outPassword, allowAnonymous, mailingListActive, serviceContext);
072 }
073
074
080 public static com.liferay.message.boards.kernel.model.MBCategory addMBCategory(
081 com.liferay.message.boards.kernel.model.MBCategory mbCategory) {
082 return getService().addMBCategory(mbCategory);
083 }
084
085
091 public static com.liferay.message.boards.kernel.model.MBCategory createMBCategory(
092 long categoryId) {
093 return getService().createMBCategory(categoryId);
094 }
095
096
102 public static com.liferay.message.boards.kernel.model.MBCategory deleteMBCategory(
103 com.liferay.message.boards.kernel.model.MBCategory mbCategory) {
104 return getService().deleteMBCategory(mbCategory);
105 }
106
107
114 public static com.liferay.message.boards.kernel.model.MBCategory deleteMBCategory(
115 long categoryId)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService().deleteMBCategory(categoryId);
118 }
119
120 public static com.liferay.message.boards.kernel.model.MBCategory fetchMBCategory(
121 long categoryId) {
122 return getService().fetchMBCategory(categoryId);
123 }
124
125
132 public static com.liferay.message.boards.kernel.model.MBCategory fetchMBCategoryByUuidAndGroupId(
133 java.lang.String uuid, long groupId) {
134 return getService().fetchMBCategoryByUuidAndGroupId(uuid, groupId);
135 }
136
137 public static com.liferay.message.boards.kernel.model.MBCategory getCategory(
138 long categoryId)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService().getCategory(categoryId);
141 }
142
143
150 public static com.liferay.message.boards.kernel.model.MBCategory getMBCategory(
151 long categoryId)
152 throws com.liferay.portal.kernel.exception.PortalException {
153 return getService().getMBCategory(categoryId);
154 }
155
156
164 public static com.liferay.message.boards.kernel.model.MBCategory getMBCategoryByUuidAndGroupId(
165 java.lang.String uuid, long groupId)
166 throws com.liferay.portal.kernel.exception.PortalException {
167 return getService().getMBCategoryByUuidAndGroupId(uuid, groupId);
168 }
169
170 public static com.liferay.message.boards.kernel.model.MBCategory moveCategory(
171 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
172 throws com.liferay.portal.kernel.exception.PortalException {
173 return getService()
174 .moveCategory(categoryId, parentCategoryId,
175 mergeWithParentCategory);
176 }
177
178 public static com.liferay.message.boards.kernel.model.MBCategory moveCategoryFromTrash(
179 long userId, long categoryId, long newCategoryId)
180 throws com.liferay.portal.kernel.exception.PortalException {
181 return getService()
182 .moveCategoryFromTrash(userId, categoryId, newCategoryId);
183 }
184
185 public static com.liferay.message.boards.kernel.model.MBCategory moveCategoryToTrash(
186 long userId, long categoryId)
187 throws com.liferay.portal.kernel.exception.PortalException {
188 return getService().moveCategoryToTrash(userId, categoryId);
189 }
190
191 public static com.liferay.message.boards.kernel.model.MBCategory updateCategory(
192 long categoryId, long parentCategoryId, java.lang.String name,
193 java.lang.String description, java.lang.String displayStyle,
194 java.lang.String emailAddress, java.lang.String inProtocol,
195 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
196 java.lang.String inUserName, java.lang.String inPassword,
197 int inReadInterval, java.lang.String outEmailAddress,
198 boolean outCustom, java.lang.String outServerName, int outServerPort,
199 boolean outUseSSL, java.lang.String outUserName,
200 java.lang.String outPassword, boolean allowAnonymous,
201 boolean mailingListActive, boolean mergeWithParentCategory,
202 com.liferay.portal.kernel.service.ServiceContext serviceContext)
203 throws com.liferay.portal.kernel.exception.PortalException {
204 return getService()
205 .updateCategory(categoryId, parentCategoryId, name,
206 description, displayStyle, emailAddress, inProtocol, inServerName,
207 inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
208 outEmailAddress, outCustom, outServerName, outServerPort,
209 outUseSSL, outUserName, outPassword, allowAnonymous,
210 mailingListActive, mergeWithParentCategory, serviceContext);
211 }
212
213
219 public static com.liferay.message.boards.kernel.model.MBCategory updateMBCategory(
220 com.liferay.message.boards.kernel.model.MBCategory mbCategory) {
221 return getService().updateMBCategory(mbCategory);
222 }
223
224 public static com.liferay.message.boards.kernel.model.MBCategory updateMessageCount(
225 long categoryId) {
226 return getService().updateMessageCount(categoryId);
227 }
228
229 public static com.liferay.message.boards.kernel.model.MBCategory updateStatistics(
230 long categoryId) {
231 return getService().updateStatistics(categoryId);
232 }
233
234 public static com.liferay.message.boards.kernel.model.MBCategory updateStatus(
235 long userId, long categoryId, int status)
236 throws com.liferay.portal.kernel.exception.PortalException {
237 return getService().updateStatus(userId, categoryId, status);
238 }
239
240 public static com.liferay.message.boards.kernel.model.MBCategory updateThreadCount(
241 long categoryId) {
242 return getService().updateThreadCount(categoryId);
243 }
244
245 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
246 return getService().getActionableDynamicQuery();
247 }
248
249 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
250 return getService().dynamicQuery();
251 }
252
253 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
254 com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
255 return getService().getExportActionableDynamicQuery(portletDataContext);
256 }
257
258 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
259 return getService().getIndexableActionableDynamicQuery();
260 }
261
262
265 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
266 com.liferay.portal.kernel.model.PersistedModel persistedModel)
267 throws com.liferay.portal.kernel.exception.PortalException {
268 return getService().deletePersistedModel(persistedModel);
269 }
270
271 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
272 java.io.Serializable primaryKeyObj)
273 throws com.liferay.portal.kernel.exception.PortalException {
274 return getService().getPersistedModel(primaryKeyObj);
275 }
276
277 public static int getCategoriesAndThreadsCount(long groupId, long categoryId) {
278 return getService().getCategoriesAndThreadsCount(groupId, categoryId);
279 }
280
281 public static int getCategoriesAndThreadsCount(long groupId,
282 long categoryId, int status) {
283 return getService()
284 .getCategoriesAndThreadsCount(groupId, categoryId, status);
285 }
286
287 public static int getCategoriesCount(long groupId) {
288 return getService().getCategoriesCount(groupId);
289 }
290
291 public static int getCategoriesCount(long groupId, int status) {
292 return getService().getCategoriesCount(groupId, status);
293 }
294
295 public static int getCategoriesCount(long groupId, long excludedCategoryId,
296 long parentCategoryId, int status) {
297 return getService()
298 .getCategoriesCount(groupId, excludedCategoryId,
299 parentCategoryId, status);
300 }
301
302 public static int getCategoriesCount(long groupId, long parentCategoryId) {
303 return getService().getCategoriesCount(groupId, parentCategoryId);
304 }
305
306 public static int getCategoriesCount(long groupId, long parentCategoryId,
307 int status) {
308 return getService().getCategoriesCount(groupId, parentCategoryId, status);
309 }
310
311 public static int getCategoriesCount(long groupId,
312 long[] excludedCategoryIds, long[] parentCategoryIds, int status) {
313 return getService()
314 .getCategoriesCount(groupId, excludedCategoryIds,
315 parentCategoryIds, status);
316 }
317
318 public static int getCategoriesCount(long groupId, long[] parentCategoryIds) {
319 return getService().getCategoriesCount(groupId, parentCategoryIds);
320 }
321
322 public static int getCategoriesCount(long groupId,
323 long[] parentCategoryIds, int status) {
324 return getService()
325 .getCategoriesCount(groupId, parentCategoryIds, status);
326 }
327
328 public static int getCompanyCategoriesCount(long companyId) {
329 return getService().getCompanyCategoriesCount(companyId);
330 }
331
332
337 public static int getMBCategoriesCount() {
338 return getService().getMBCategoriesCount();
339 }
340
341 public static int getSubscribedCategoriesCount(long groupId, long userId) {
342 return getService().getSubscribedCategoriesCount(groupId, userId);
343 }
344
345
350 public static java.lang.String getOSGiServiceIdentifier() {
351 return getService().getOSGiServiceIdentifier();
352 }
353
354
360 public static <T> java.util.List<T> dynamicQuery(
361 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
362 return getService().dynamicQuery(dynamicQuery);
363 }
364
365
377 public static <T> java.util.List<T> dynamicQuery(
378 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
379 int end) {
380 return getService().dynamicQuery(dynamicQuery, start, end);
381 }
382
383
396 public static <T> java.util.List<T> dynamicQuery(
397 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
398 int end,
399 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
400 return getService()
401 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
402 }
403
404 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
405 long groupId) {
406 return getService().getCategories(groupId);
407 }
408
409 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
410 long groupId, int status) {
411 return getService().getCategories(groupId, status);
412 }
413
414 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
415 long groupId, long excludedCategoryId, long parentCategoryId,
416 int status, int start, int end) {
417 return getService()
418 .getCategories(groupId, excludedCategoryId,
419 parentCategoryId, status, start, end);
420 }
421
422 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
423 long groupId, long parentCategoryId, int start, int end) {
424 return getService().getCategories(groupId, parentCategoryId, start, end);
425 }
426
427 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
428 long groupId, long parentCategoryId, int status, int start, int end) {
429 return getService()
430 .getCategories(groupId, parentCategoryId, status, start, end);
431 }
432
433 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
434 long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
435 int status, int start, int end) {
436 return getService()
437 .getCategories(groupId, excludedCategoryIds,
438 parentCategoryIds, status, start, end);
439 }
440
441 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
442 long groupId, long[] parentCategoryIds, int start, int end) {
443 return getService().getCategories(groupId, parentCategoryIds, start, end);
444 }
445
446 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCategories(
447 long groupId, long[] parentCategoryIds, int status, int start, int end) {
448 return getService()
449 .getCategories(groupId, parentCategoryIds, status, start, end);
450 }
451
452 public static java.util.List<java.lang.Object> getCategoriesAndThreads(
453 long groupId, long categoryId) {
454 return getService().getCategoriesAndThreads(groupId, categoryId);
455 }
456
457 public static java.util.List<java.lang.Object> getCategoriesAndThreads(
458 long groupId, long categoryId, int status) {
459 return getService().getCategoriesAndThreads(groupId, categoryId, status);
460 }
461
462 public static java.util.List<java.lang.Object> getCategoriesAndThreads(
463 long groupId, long categoryId, int status, int start, int end) {
464 return getService()
465 .getCategoriesAndThreads(groupId, categoryId, status, start,
466 end);
467 }
468
469 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getCompanyCategories(
470 long companyId, int start, int end) {
471 return getService().getCompanyCategories(companyId, start, end);
472 }
473
474
485 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getMBCategories(
486 int start, int end) {
487 return getService().getMBCategories(start, end);
488 }
489
490
497 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
498 java.lang.String uuid, long companyId) {
499 return getService().getMBCategoriesByUuidAndCompanyId(uuid, companyId);
500 }
501
502
512 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
513 java.lang.String uuid, long companyId, int start, int end,
514 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBCategory> orderByComparator) {
515 return getService()
516 .getMBCategoriesByUuidAndCompanyId(uuid, companyId, start,
517 end, orderByComparator);
518 }
519
520 public static java.util.List<java.lang.Long> getSubcategoryIds(
521 java.util.List<java.lang.Long> categoryIds, long groupId,
522 long categoryId) {
523 return getService().getSubcategoryIds(categoryIds, groupId, categoryId);
524 }
525
526 public static java.util.List<com.liferay.message.boards.kernel.model.MBCategory> getSubscribedCategories(
527 long groupId, long userId, int start, int end) {
528 return getService().getSubscribedCategories(groupId, userId, start, end);
529 }
530
531
537 public static long dynamicQueryCount(
538 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
539 return getService().dynamicQueryCount(dynamicQuery);
540 }
541
542
549 public static long dynamicQueryCount(
550 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
551 com.liferay.portal.kernel.dao.orm.Projection projection) {
552 return getService().dynamicQueryCount(dynamicQuery, projection);
553 }
554
555 public static void addCategoryResources(
556 com.liferay.message.boards.kernel.model.MBCategory category,
557 boolean addGroupPermissions, boolean addGuestPermissions)
558 throws com.liferay.portal.kernel.exception.PortalException {
559 getService()
560 .addCategoryResources(category, addGroupPermissions,
561 addGuestPermissions);
562 }
563
564 public static void addCategoryResources(
565 com.liferay.message.boards.kernel.model.MBCategory category,
566 com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
567 throws com.liferay.portal.kernel.exception.PortalException {
568 getService().addCategoryResources(category, modelPermissions);
569 }
570
571 public static void addCategoryResources(long categoryId,
572 boolean addGroupPermissions, boolean addGuestPermissions)
573 throws com.liferay.portal.kernel.exception.PortalException {
574 getService()
575 .addCategoryResources(categoryId, addGroupPermissions,
576 addGuestPermissions);
577 }
578
579 public static void addCategoryResources(long categoryId,
580 com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
581 throws com.liferay.portal.kernel.exception.PortalException {
582 getService().addCategoryResources(categoryId, modelPermissions);
583 }
584
585 public static void deleteCategories(long groupId)
586 throws com.liferay.portal.kernel.exception.PortalException {
587 getService().deleteCategories(groupId);
588 }
589
590 public static void deleteCategory(
591 com.liferay.message.boards.kernel.model.MBCategory category)
592 throws com.liferay.portal.kernel.exception.PortalException {
593 getService().deleteCategory(category);
594 }
595
596 public static void deleteCategory(
597 com.liferay.message.boards.kernel.model.MBCategory category,
598 boolean includeTrashedEntries)
599 throws com.liferay.portal.kernel.exception.PortalException {
600 getService().deleteCategory(category, includeTrashedEntries);
601 }
602
603 public static void deleteCategory(long categoryId)
604 throws com.liferay.portal.kernel.exception.PortalException {
605 getService().deleteCategory(categoryId);
606 }
607
608 public static void moveCategoriesToTrash(long groupId, long userId)
609 throws com.liferay.portal.kernel.exception.PortalException {
610 getService().moveCategoriesToTrash(groupId, userId);
611 }
612
613 public static void restoreCategoryFromTrash(long userId, long categoryId)
614 throws com.liferay.portal.kernel.exception.PortalException {
615 getService().restoreCategoryFromTrash(userId, categoryId);
616 }
617
618 public static void subscribeCategory(long userId, long groupId,
619 long categoryId)
620 throws com.liferay.portal.kernel.exception.PortalException {
621 getService().subscribeCategory(userId, groupId, categoryId);
622 }
623
624 public static void unsubscribeCategory(long userId, long groupId,
625 long categoryId)
626 throws com.liferay.portal.kernel.exception.PortalException {
627 getService().unsubscribeCategory(userId, groupId, categoryId);
628 }
629
630 public static MBCategoryLocalService getService() {
631 if (_service == null) {
632 _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
633
634 ReferenceRegistry.registerReference(MBCategoryLocalServiceUtil.class,
635 "_service");
636 }
637
638 return _service;
639 }
640
641 private static MBCategoryLocalService _service;
642 }