001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.messageboards.service;
022:
023: /**
024: * <a href="MBCategoryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.messageboards.service.MBCategoryLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.messageboards.service.MBCategoryLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.messageboards.service.MBCategoryLocalService
047: * @see com.liferay.portlet.messageboards.service.MBCategoryLocalServiceFactory
048: *
049: */
050: public class MBCategoryLocalServiceUtil {
051: public static com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
052: com.liferay.portlet.messageboards.model.MBCategory model)
053: throws com.liferay.portal.SystemException {
054: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
055: .getService();
056:
057: return mbCategoryLocalService.addMBCategory(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
064: .getService();
065:
066: return mbCategoryLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
074: .getService();
075:
076: return mbCategoryLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
081: com.liferay.portlet.messageboards.model.MBCategory model)
082: throws com.liferay.portal.SystemException {
083: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
084: .getService();
085:
086: return mbCategoryLocalService.updateMBCategory(model);
087: }
088:
089: public static com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence() {
090: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
091: .getService();
092:
093: return mbCategoryLocalService.getMBBanPersistence();
094: }
095:
096: public static void setMBBanPersistence(
097: com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence) {
098: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
099: .getService();
100:
101: mbCategoryLocalService.setMBBanPersistence(mbBanPersistence);
102: }
103:
104: public static com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence() {
105: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
106: .getService();
107:
108: return mbCategoryLocalService.getMBCategoryPersistence();
109: }
110:
111: public static void setMBCategoryPersistence(
112: com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence) {
113: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
114: .getService();
115:
116: mbCategoryLocalService
117: .setMBCategoryPersistence(mbCategoryPersistence);
118: }
119:
120: public static com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder() {
121: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
122: .getService();
123:
124: return mbCategoryLocalService.getMBCategoryFinder();
125: }
126:
127: public static void setMBCategoryFinder(
128: com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder) {
129: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
130: .getService();
131:
132: mbCategoryLocalService.setMBCategoryFinder(mbCategoryFinder);
133: }
134:
135: public static com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence() {
136: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
137: .getService();
138:
139: return mbCategoryLocalService.getMBDiscussionPersistence();
140: }
141:
142: public static void setMBDiscussionPersistence(
143: com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence) {
144: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
145: .getService();
146:
147: mbCategoryLocalService
148: .setMBDiscussionPersistence(mbDiscussionPersistence);
149: }
150:
151: public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
152: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
153: .getService();
154:
155: return mbCategoryLocalService.getMBMessagePersistence();
156: }
157:
158: public static void setMBMessagePersistence(
159: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
160: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
161: .getService();
162:
163: mbCategoryLocalService
164: .setMBMessagePersistence(mbMessagePersistence);
165: }
166:
167: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
168: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
169: .getService();
170:
171: return mbCategoryLocalService.getMBMessageFinder();
172: }
173:
174: public static void setMBMessageFinder(
175: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
176: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
177: .getService();
178:
179: mbCategoryLocalService.setMBMessageFinder(mbMessageFinder);
180: }
181:
182: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence() {
183: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
184: .getService();
185:
186: return mbCategoryLocalService.getMBMessageFlagPersistence();
187: }
188:
189: public static void setMBMessageFlagPersistence(
190: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence) {
191: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
192: .getService();
193:
194: mbCategoryLocalService
195: .setMBMessageFlagPersistence(mbMessageFlagPersistence);
196: }
197:
198: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder() {
199: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
200: .getService();
201:
202: return mbCategoryLocalService.getMBMessageFlagFinder();
203: }
204:
205: public static void setMBMessageFlagFinder(
206: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder) {
207: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
208: .getService();
209:
210: mbCategoryLocalService
211: .setMBMessageFlagFinder(mbMessageFlagFinder);
212: }
213:
214: public static com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence() {
215: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
216: .getService();
217:
218: return mbCategoryLocalService.getMBStatsUserPersistence();
219: }
220:
221: public static void setMBStatsUserPersistence(
222: com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence) {
223: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
224: .getService();
225:
226: mbCategoryLocalService
227: .setMBStatsUserPersistence(mbStatsUserPersistence);
228: }
229:
230: public static com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence() {
231: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
232: .getService();
233:
234: return mbCategoryLocalService.getMBThreadPersistence();
235: }
236:
237: public static void setMBThreadPersistence(
238: com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence) {
239: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
240: .getService();
241:
242: mbCategoryLocalService
243: .setMBThreadPersistence(mbThreadPersistence);
244: }
245:
246: public static com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder() {
247: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
248: .getService();
249:
250: return mbCategoryLocalService.getMBThreadFinder();
251: }
252:
253: public static void setMBThreadFinder(
254: com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder) {
255: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
256: .getService();
257:
258: mbCategoryLocalService.setMBThreadFinder(mbThreadFinder);
259: }
260:
261: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
262: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
263: .getService();
264:
265: return mbCategoryLocalService.getResourcePersistence();
266: }
267:
268: public static void setResourcePersistence(
269: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
270: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
271: .getService();
272:
273: mbCategoryLocalService
274: .setResourcePersistence(resourcePersistence);
275: }
276:
277: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
278: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
279: .getService();
280:
281: return mbCategoryLocalService.getResourceFinder();
282: }
283:
284: public static void setResourceFinder(
285: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
286: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
287: .getService();
288:
289: mbCategoryLocalService.setResourceFinder(resourceFinder);
290: }
291:
292: public static com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence() {
293: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
294: .getService();
295:
296: return mbCategoryLocalService.getSubscriptionPersistence();
297: }
298:
299: public static void setSubscriptionPersistence(
300: com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence) {
301: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
302: .getService();
303:
304: mbCategoryLocalService
305: .setSubscriptionPersistence(subscriptionPersistence);
306: }
307:
308: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
309: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
310: .getService();
311:
312: return mbCategoryLocalService.getUserPersistence();
313: }
314:
315: public static void setUserPersistence(
316: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
317: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
318: .getService();
319:
320: mbCategoryLocalService.setUserPersistence(userPersistence);
321: }
322:
323: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
324: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
325: .getService();
326:
327: return mbCategoryLocalService.getUserFinder();
328: }
329:
330: public static void setUserFinder(
331: com.liferay.portal.service.persistence.UserFinder userFinder) {
332: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
333: .getService();
334:
335: mbCategoryLocalService.setUserFinder(userFinder);
336: }
337:
338: public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
339: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
340: .getService();
341:
342: return mbCategoryLocalService.getTagsEntryPersistence();
343: }
344:
345: public static void setTagsEntryPersistence(
346: com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
347: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
348: .getService();
349:
350: mbCategoryLocalService
351: .setTagsEntryPersistence(tagsEntryPersistence);
352: }
353:
354: public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
355: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
356: .getService();
357:
358: return mbCategoryLocalService.getTagsEntryFinder();
359: }
360:
361: public static void setTagsEntryFinder(
362: com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
363: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
364: .getService();
365:
366: mbCategoryLocalService.setTagsEntryFinder(tagsEntryFinder);
367: }
368:
369: public static void afterPropertiesSet() {
370: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
371: .getService();
372:
373: mbCategoryLocalService.afterPropertiesSet();
374: }
375:
376: public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
377: long userId, long plid, long parentCategoryId,
378: java.lang.String name, java.lang.String description,
379: boolean addCommunityPermissions, boolean addGuestPermissions)
380: throws com.liferay.portal.PortalException,
381: com.liferay.portal.SystemException {
382: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
383: .getService();
384:
385: return mbCategoryLocalService.addCategory(userId, plid,
386: parentCategoryId, name, description,
387: addCommunityPermissions, addGuestPermissions);
388: }
389:
390: public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
391: java.lang.String uuid, long userId, long plid,
392: long parentCategoryId, java.lang.String name,
393: java.lang.String description,
394: boolean addCommunityPermissions, boolean addGuestPermissions)
395: throws com.liferay.portal.PortalException,
396: com.liferay.portal.SystemException {
397: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
398: .getService();
399:
400: return mbCategoryLocalService.addCategory(uuid, userId, plid,
401: parentCategoryId, name, description,
402: addCommunityPermissions, addGuestPermissions);
403: }
404:
405: public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
406: long userId, long plid, long parentCategoryId,
407: java.lang.String name, java.lang.String description,
408: java.lang.String[] communityPermissions,
409: java.lang.String[] guestPermissions)
410: throws com.liferay.portal.PortalException,
411: com.liferay.portal.SystemException {
412: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
413: .getService();
414:
415: return mbCategoryLocalService.addCategory(userId, plid,
416: parentCategoryId, name, description,
417: communityPermissions, guestPermissions);
418: }
419:
420: public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
421: java.lang.String uuid, long userId, long plid,
422: long parentCategoryId, java.lang.String name,
423: java.lang.String description,
424: java.lang.Boolean addCommunityPermissions,
425: java.lang.Boolean addGuestPermissions,
426: java.lang.String[] communityPermissions,
427: java.lang.String[] guestPermissions)
428: throws com.liferay.portal.PortalException,
429: com.liferay.portal.SystemException {
430: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
431: .getService();
432:
433: return mbCategoryLocalService.addCategory(uuid, userId, plid,
434: parentCategoryId, name, description,
435: addCommunityPermissions, addGuestPermissions,
436: communityPermissions, guestPermissions);
437: }
438:
439: public static void addCategoryResources(long categoryId,
440: boolean addCommunityPermissions, boolean addGuestPermissions)
441: throws com.liferay.portal.PortalException,
442: com.liferay.portal.SystemException {
443: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
444: .getService();
445:
446: mbCategoryLocalService.addCategoryResources(categoryId,
447: addCommunityPermissions, addGuestPermissions);
448: }
449:
450: public static void addCategoryResources(
451: com.liferay.portlet.messageboards.model.MBCategory category,
452: boolean addCommunityPermissions, boolean addGuestPermissions)
453: throws com.liferay.portal.PortalException,
454: com.liferay.portal.SystemException {
455: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
456: .getService();
457:
458: mbCategoryLocalService.addCategoryResources(category,
459: addCommunityPermissions, addGuestPermissions);
460: }
461:
462: public static void addCategoryResources(long categoryId,
463: java.lang.String[] communityPermissions,
464: java.lang.String[] guestPermissions)
465: throws com.liferay.portal.PortalException,
466: com.liferay.portal.SystemException {
467: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
468: .getService();
469:
470: mbCategoryLocalService.addCategoryResources(categoryId,
471: communityPermissions, guestPermissions);
472: }
473:
474: public static void addCategoryResources(
475: com.liferay.portlet.messageboards.model.MBCategory category,
476: java.lang.String[] communityPermissions,
477: java.lang.String[] guestPermissions)
478: throws com.liferay.portal.PortalException,
479: com.liferay.portal.SystemException {
480: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
481: .getService();
482:
483: mbCategoryLocalService.addCategoryResources(category,
484: communityPermissions, guestPermissions);
485: }
486:
487: public static void deleteCategories(long groupId)
488: throws com.liferay.portal.PortalException,
489: com.liferay.portal.SystemException {
490: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
491: .getService();
492:
493: mbCategoryLocalService.deleteCategories(groupId);
494: }
495:
496: public static void deleteCategory(long categoryId)
497: throws com.liferay.portal.PortalException,
498: com.liferay.portal.SystemException {
499: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
500: .getService();
501:
502: mbCategoryLocalService.deleteCategory(categoryId);
503: }
504:
505: public static void deleteCategory(
506: com.liferay.portlet.messageboards.model.MBCategory category)
507: throws com.liferay.portal.PortalException,
508: com.liferay.portal.SystemException {
509: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
510: .getService();
511:
512: mbCategoryLocalService.deleteCategory(category);
513: }
514:
515: public static java.util.List getCategories(long groupId,
516: long parentCategoryId, int begin, int end)
517: throws com.liferay.portal.SystemException {
518: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
519: .getService();
520:
521: return mbCategoryLocalService.getCategories(groupId,
522: parentCategoryId, begin, end);
523: }
524:
525: public static int getCategoriesCount(long groupId)
526: throws com.liferay.portal.SystemException {
527: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
528: .getService();
529:
530: return mbCategoryLocalService.getCategoriesCount(groupId);
531: }
532:
533: public static int getCategoriesCount(long groupId,
534: long parentCategoryId)
535: throws com.liferay.portal.SystemException {
536: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
537: .getService();
538:
539: return mbCategoryLocalService.getCategoriesCount(groupId,
540: parentCategoryId);
541: }
542:
543: public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
544: long categoryId) throws com.liferay.portal.PortalException,
545: com.liferay.portal.SystemException {
546: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
547: .getService();
548:
549: return mbCategoryLocalService.getCategory(categoryId);
550: }
551:
552: public static void getSubcategoryIds(java.util.List categoryIds,
553: long groupId, long categoryId)
554: throws com.liferay.portal.SystemException {
555: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
556: .getService();
557:
558: mbCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
559: categoryId);
560: }
561:
562: public static java.util.List getSubscribedCategories(long groupId,
563: long userId, int begin, int end)
564: throws com.liferay.portal.SystemException {
565: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
566: .getService();
567:
568: return mbCategoryLocalService.getSubscribedCategories(groupId,
569: userId, begin, end);
570: }
571:
572: public static int getSubscribedCategoriesCount(long groupId,
573: long userId) throws com.liferay.portal.SystemException {
574: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
575: .getService();
576:
577: return mbCategoryLocalService.getSubscribedCategoriesCount(
578: groupId, userId);
579: }
580:
581: public static com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
582: throws com.liferay.portal.PortalException,
583: com.liferay.portal.SystemException {
584: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
585: .getService();
586:
587: return mbCategoryLocalService.getSystemCategory();
588: }
589:
590: public static void reIndex(java.lang.String[] ids)
591: throws com.liferay.portal.SystemException {
592: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
593: .getService();
594:
595: mbCategoryLocalService.reIndex(ids);
596: }
597:
598: public static com.liferay.portal.kernel.search.Hits search(
599: long companyId, long groupId, long[] categoryIds,
600: long threadId, java.lang.String keywords)
601: throws com.liferay.portal.SystemException {
602: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
603: .getService();
604:
605: return mbCategoryLocalService.search(companyId, groupId,
606: categoryIds, threadId, keywords);
607: }
608:
609: public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
610: long categoryId, long parentCategoryId,
611: java.lang.String name, java.lang.String description,
612: boolean mergeWithParentCategory)
613: throws com.liferay.portal.PortalException,
614: com.liferay.portal.SystemException {
615: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
616: .getService();
617:
618: return mbCategoryLocalService.updateCategory(categoryId,
619: parentCategoryId, name, description,
620: mergeWithParentCategory);
621: }
622:
623: public static void subscribeCategory(long userId, long categoryId)
624: throws com.liferay.portal.PortalException,
625: com.liferay.portal.SystemException {
626: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
627: .getService();
628:
629: mbCategoryLocalService.subscribeCategory(userId, categoryId);
630: }
631:
632: public static void unsubscribeCategory(long userId, long categoryId)
633: throws com.liferay.portal.PortalException,
634: com.liferay.portal.SystemException {
635: MBCategoryLocalService mbCategoryLocalService = MBCategoryLocalServiceFactory
636: .getService();
637:
638: mbCategoryLocalService.unsubscribeCategory(userId, categoryId);
639: }
640: }
|