1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
47 public class MBCategoryServiceUtil {
48 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
49 long plid, long parentCategoryId, java.lang.String name,
50 java.lang.String description, boolean addCommunityPermissions,
51 boolean addGuestPermissions)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException, java.rmi.RemoteException {
54 return _service.addCategory(plid, parentCategoryId, name, description,
55 addCommunityPermissions, addGuestPermissions);
56 }
57
58 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
59 long plid, long parentCategoryId, java.lang.String name,
60 java.lang.String description, java.lang.String[] communityPermissions,
61 java.lang.String[] guestPermissions)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException, java.rmi.RemoteException {
64 return _service.addCategory(plid, parentCategoryId, name, description,
65 communityPermissions, guestPermissions);
66 }
67
68 public static void deleteCategory(long categoryId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException, java.rmi.RemoteException {
71 _service.deleteCategory(categoryId);
72 }
73
74 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
75 long categoryId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 return _service.getCategory(categoryId);
79 }
80
81 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
82 long groupId, long parentCategoryId, int start, int end)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return _service.getCategories(groupId, parentCategoryId, start, end);
86 }
87
88 public static int getCategoriesCount(long groupId, long parentCategoryId)
89 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
90 return _service.getCategoriesCount(groupId, parentCategoryId);
91 }
92
93 public static void subscribeCategory(long categoryId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException, java.rmi.RemoteException {
96 _service.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 _service.unsubscribeCategory(categoryId);
103 }
104
105 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
106 long categoryId, long parentCategoryId, java.lang.String name,
107 java.lang.String description, boolean mergeWithParentCategory)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException, java.rmi.RemoteException {
110 return _service.updateCategory(categoryId, parentCategoryId, name,
111 description, mergeWithParentCategory);
112 }
113
114 public static MBCategoryService getService() {
115 return _service;
116 }
117
118 public void setService(MBCategoryService service) {
119 _service = service;
120 }
121
122 private static MBCategoryService _service;
123 }