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