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 updateMBCategory(
104 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateMBCategory(mbCategory, merge);
107 }
108
109 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
110 long userId, long plid, long parentCategoryId, java.lang.String name,
111 java.lang.String description, boolean addCommunityPermissions,
112 boolean addGuestPermissions)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return getService()
116 .addCategory(userId, plid, parentCategoryId, name,
117 description, addCommunityPermissions, addGuestPermissions);
118 }
119
120 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
121 java.lang.String uuid, long userId, long plid, long parentCategoryId,
122 java.lang.String name, java.lang.String description,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addCategory(uuid, userId, plid, parentCategoryId, name,
128 description, addCommunityPermissions, addGuestPermissions);
129 }
130
131 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
132 long userId, long plid, long parentCategoryId, java.lang.String name,
133 java.lang.String description, java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException {
137 return getService()
138 .addCategory(userId, plid, parentCategoryId, name,
139 description, communityPermissions, guestPermissions);
140 }
141
142 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
143 java.lang.String uuid, long userId, long plid, long parentCategoryId,
144 java.lang.String name, java.lang.String description,
145 java.lang.Boolean addCommunityPermissions,
146 java.lang.Boolean addGuestPermissions,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException {
151 return getService()
152 .addCategory(uuid, userId, plid, parentCategoryId, name,
153 description, addCommunityPermissions, addGuestPermissions,
154 communityPermissions, guestPermissions);
155 }
156
157 public static void addCategoryResources(long categoryId,
158 boolean addCommunityPermissions, boolean addGuestPermissions)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 getService()
162 .addCategoryResources(categoryId, addCommunityPermissions,
163 addGuestPermissions);
164 }
165
166 public static void addCategoryResources(
167 com.liferay.portlet.messageboards.model.MBCategory category,
168 boolean addCommunityPermissions, boolean addGuestPermissions)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException {
171 getService()
172 .addCategoryResources(category, addCommunityPermissions,
173 addGuestPermissions);
174 }
175
176 public static void addCategoryResources(long categoryId,
177 java.lang.String[] communityPermissions,
178 java.lang.String[] guestPermissions)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 getService()
182 .addCategoryResources(categoryId, communityPermissions,
183 guestPermissions);
184 }
185
186 public static void addCategoryResources(
187 com.liferay.portlet.messageboards.model.MBCategory category,
188 java.lang.String[] communityPermissions,
189 java.lang.String[] guestPermissions)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 getService()
193 .addCategoryResources(category, communityPermissions,
194 guestPermissions);
195 }
196
197 public static void deleteCategories(long groupId)
198 throws com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException {
200 getService().deleteCategories(groupId);
201 }
202
203 public static void deleteCategory(long categoryId)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException {
206 getService().deleteCategory(categoryId);
207 }
208
209 public static void deleteCategory(
210 com.liferay.portlet.messageboards.model.MBCategory category)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException {
213 getService().deleteCategory(category);
214 }
215
216 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
217 long groupId) throws com.liferay.portal.SystemException {
218 return getService().getCategories(groupId);
219 }
220
221 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
222 long groupId, long parentCategoryId)
223 throws com.liferay.portal.SystemException {
224 return getService().getCategories(groupId, parentCategoryId);
225 }
226
227 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
228 long groupId, long parentCategoryId, int start, int end)
229 throws com.liferay.portal.SystemException {
230 return getService().getCategories(groupId, parentCategoryId, start, end);
231 }
232
233 public static int getCategoriesCount(long groupId)
234 throws com.liferay.portal.SystemException {
235 return getService().getCategoriesCount(groupId);
236 }
237
238 public static int getCategoriesCount(long groupId, long parentCategoryId)
239 throws com.liferay.portal.SystemException {
240 return getService().getCategoriesCount(groupId, parentCategoryId);
241 }
242
243 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
244 long categoryId)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 return getService().getCategory(categoryId);
248 }
249
250 public static void getSubcategoryIds(java.util.List<Long> categoryIds,
251 long groupId, long categoryId)
252 throws com.liferay.portal.SystemException {
253 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
254 }
255
256 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
257 long groupId, long userId, int start, int end)
258 throws com.liferay.portal.SystemException {
259 return getService().getSubscribedCategories(groupId, userId, start, end);
260 }
261
262 public static int getSubscribedCategoriesCount(long groupId, long userId)
263 throws com.liferay.portal.SystemException {
264 return getService().getSubscribedCategoriesCount(groupId, userId);
265 }
266
267 public static com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
268 throws com.liferay.portal.SystemException {
269 return getService().getSystemCategory();
270 }
271
272 public static void reIndex(java.lang.String[] ids)
273 throws com.liferay.portal.SystemException {
274 getService().reIndex(ids);
275 }
276
277 public static com.liferay.portal.kernel.search.Hits search(long companyId,
278 long groupId, long[] categoryIds, long threadId,
279 java.lang.String keywords, int start, int end)
280 throws com.liferay.portal.SystemException {
281 return getService()
282 .search(companyId, groupId, categoryIds, threadId, keywords,
283 start, end);
284 }
285
286 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
287 long categoryId, long parentCategoryId, java.lang.String name,
288 java.lang.String description, boolean mergeWithParentCategory)
289 throws com.liferay.portal.PortalException,
290 com.liferay.portal.SystemException {
291 return getService()
292 .updateCategory(categoryId, parentCategoryId, name,
293 description, mergeWithParentCategory);
294 }
295
296 public static void subscribeCategory(long userId, long categoryId)
297 throws com.liferay.portal.PortalException,
298 com.liferay.portal.SystemException {
299 getService().subscribeCategory(userId, categoryId);
300 }
301
302 public static void unsubscribeCategory(long userId, long categoryId)
303 throws com.liferay.portal.PortalException,
304 com.liferay.portal.SystemException {
305 getService().unsubscribeCategory(userId, categoryId);
306 }
307
308 public static MBCategoryLocalService getService() {
309 if (_service == null) {
310 throw new RuntimeException("MBCategoryLocalService is not set");
311 }
312
313 return _service;
314 }
315
316 public void setService(MBCategoryLocalService service) {
317 _service = service;
318 }
319
320 private static MBCategoryLocalService _service;
321 }