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