1
19
20 package com.liferay.portlet.messageboards.service;
21
22
23
44 public class MBCategoryLocalServiceUtil {
45 public static com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
46 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
47 throws com.liferay.portal.SystemException {
48 return getService().addMBCategory(mbCategory);
49 }
50
51 public static com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
52 long categoryId) {
53 return getService().createMBCategory(categoryId);
54 }
55
56 public static void deleteMBCategory(long categoryId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteMBCategory(categoryId);
60 }
61
62 public static void deleteMBCategory(
63 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
64 throws com.liferay.portal.SystemException {
65 getService().deleteMBCategory(mbCategory);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
81 long categoryId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getMBCategory(categoryId);
85 }
86
87 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getMBCategories(start, end);
90 }
91
92 public static int getMBCategoriesCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getMBCategoriesCount();
95 }
96
97 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
98 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
99 throws com.liferay.portal.SystemException {
100 return getService().updateMBCategory(mbCategory);
101 }
102
103 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
104 long userId, long plid, long parentCategoryId, java.lang.String name,
105 java.lang.String description, boolean addCommunityPermissions,
106 boolean addGuestPermissions)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException {
109 return getService()
110 .addCategory(userId, plid, parentCategoryId, name,
111 description, addCommunityPermissions, addGuestPermissions);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
115 java.lang.String uuid, long userId, long plid, long parentCategoryId,
116 java.lang.String name, java.lang.String description,
117 boolean addCommunityPermissions, boolean addGuestPermissions)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 return getService()
121 .addCategory(uuid, userId, plid, parentCategoryId, name,
122 description, addCommunityPermissions, addGuestPermissions);
123 }
124
125 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
126 long userId, long plid, long parentCategoryId, java.lang.String name,
127 java.lang.String description, java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException {
131 return getService()
132 .addCategory(userId, plid, parentCategoryId, name,
133 description, communityPermissions, guestPermissions);
134 }
135
136 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
137 java.lang.String uuid, long userId, long plid, long parentCategoryId,
138 java.lang.String name, java.lang.String description,
139 java.lang.Boolean addCommunityPermissions,
140 java.lang.Boolean addGuestPermissions,
141 java.lang.String[] communityPermissions,
142 java.lang.String[] guestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 return getService()
146 .addCategory(uuid, userId, plid, parentCategoryId, name,
147 description, addCommunityPermissions, addGuestPermissions,
148 communityPermissions, guestPermissions);
149 }
150
151 public static void addCategoryResources(long categoryId,
152 boolean addCommunityPermissions, boolean addGuestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService()
156 .addCategoryResources(categoryId, addCommunityPermissions,
157 addGuestPermissions);
158 }
159
160 public static void addCategoryResources(
161 com.liferay.portlet.messageboards.model.MBCategory category,
162 boolean addCommunityPermissions, boolean addGuestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addCategoryResources(category, addCommunityPermissions,
167 addGuestPermissions);
168 }
169
170 public static void addCategoryResources(long categoryId,
171 java.lang.String[] communityPermissions,
172 java.lang.String[] guestPermissions)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService()
176 .addCategoryResources(categoryId, communityPermissions,
177 guestPermissions);
178 }
179
180 public static void addCategoryResources(
181 com.liferay.portlet.messageboards.model.MBCategory category,
182 java.lang.String[] communityPermissions,
183 java.lang.String[] guestPermissions)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException {
186 getService()
187 .addCategoryResources(category, communityPermissions,
188 guestPermissions);
189 }
190
191 public static void deleteCategories(long groupId)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException {
194 getService().deleteCategories(groupId);
195 }
196
197 public static void deleteCategory(long categoryId)
198 throws com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException {
200 getService().deleteCategory(categoryId);
201 }
202
203 public static void deleteCategory(
204 com.liferay.portlet.messageboards.model.MBCategory category)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException {
207 getService().deleteCategory(category);
208 }
209
210 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
211 long groupId, long parentCategoryId)
212 throws com.liferay.portal.SystemException {
213 return getService().getCategories(groupId, parentCategoryId);
214 }
215
216 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
217 long groupId, long parentCategoryId, int start, int end)
218 throws com.liferay.portal.SystemException {
219 return getService().getCategories(groupId, parentCategoryId, start, end);
220 }
221
222 public static int getCategoriesCount(long groupId)
223 throws com.liferay.portal.SystemException {
224 return getService().getCategoriesCount(groupId);
225 }
226
227 public static int getCategoriesCount(long groupId, long parentCategoryId)
228 throws com.liferay.portal.SystemException {
229 return getService().getCategoriesCount(groupId, parentCategoryId);
230 }
231
232 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
233 long categoryId)
234 throws com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException {
236 return getService().getCategory(categoryId);
237 }
238
239 public static void getSubcategoryIds(java.util.List<Long> categoryIds,
240 long groupId, long categoryId)
241 throws com.liferay.portal.SystemException {
242 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
243 }
244
245 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
246 long groupId, long userId, int start, int end)
247 throws com.liferay.portal.SystemException {
248 return getService().getSubscribedCategories(groupId, userId, start, end);
249 }
250
251 public static int getSubscribedCategoriesCount(long groupId, long userId)
252 throws com.liferay.portal.SystemException {
253 return getService().getSubscribedCategoriesCount(groupId, userId);
254 }
255
256 public static com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
257 throws com.liferay.portal.SystemException {
258 return getService().getSystemCategory();
259 }
260
261 public static void reIndex(java.lang.String[] ids)
262 throws com.liferay.portal.SystemException {
263 getService().reIndex(ids);
264 }
265
266 public static com.liferay.portal.kernel.search.Hits search(long companyId,
267 long groupId, long[] categoryIds, long threadId,
268 java.lang.String keywords, int start, int end)
269 throws com.liferay.portal.SystemException {
270 return getService()
271 .search(companyId, groupId, categoryIds, threadId, keywords,
272 start, end);
273 }
274
275 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
276 long categoryId, long parentCategoryId, java.lang.String name,
277 java.lang.String description, boolean mergeWithParentCategory)
278 throws com.liferay.portal.PortalException,
279 com.liferay.portal.SystemException {
280 return getService()
281 .updateCategory(categoryId, parentCategoryId, name,
282 description, mergeWithParentCategory);
283 }
284
285 public static void subscribeCategory(long userId, long categoryId)
286 throws com.liferay.portal.PortalException,
287 com.liferay.portal.SystemException {
288 getService().subscribeCategory(userId, categoryId);
289 }
290
291 public static void unsubscribeCategory(long userId, long categoryId)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 getService().unsubscribeCategory(userId, categoryId);
295 }
296
297 public static MBCategoryLocalService getService() {
298 if (_service == null) {
299 throw new RuntimeException("MBCategoryLocalService is not set");
300 }
301
302 return _service;
303 }
304
305 public void setService(MBCategoryLocalService service) {
306 _service = service;
307 }
308
309 private static MBCategoryLocalService _service;
310 }