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