1
22
23 package com.liferay.portlet.messageboards.service;
24
25
51 public class MBCategoryServiceUtil {
52 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
53 long plid, long parentCategoryId, java.lang.String name,
54 java.lang.String description, boolean addCommunityPermissions,
55 boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
59
60 return mbCategoryService.addCategory(plid, parentCategoryId, name,
61 description, addCommunityPermissions, addGuestPermissions);
62 }
63
64 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
65 long plid, long parentCategoryId, java.lang.String name,
66 java.lang.String description, java.lang.String[] communityPermissions,
67 java.lang.String[] guestPermissions)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException, java.rmi.RemoteException {
70 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
71
72 return mbCategoryService.addCategory(plid, parentCategoryId, name,
73 description, communityPermissions, guestPermissions);
74 }
75
76 public static void deleteCategory(long categoryId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
80 mbCategoryService.deleteCategory(categoryId);
81 }
82
83 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
84 long categoryId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException {
87 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
88
89 return mbCategoryService.getCategory(categoryId);
90 }
91
92 public static void subscribeCategory(long categoryId)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException, java.rmi.RemoteException {
95 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
96 mbCategoryService.subscribeCategory(categoryId);
97 }
98
99 public static void unsubscribeCategory(long categoryId)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException, java.rmi.RemoteException {
102 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
103 mbCategoryService.unsubscribeCategory(categoryId);
104 }
105
106 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
107 long categoryId, long parentCategoryId, java.lang.String name,
108 java.lang.String description, boolean mergeWithParentCategory)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException, java.rmi.RemoteException {
111 MBCategoryService mbCategoryService = MBCategoryServiceFactory.getService();
112
113 return mbCategoryService.updateCategory(categoryId, parentCategoryId,
114 name, description, mergeWithParentCategory);
115 }
116 }