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.kernel.exception.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.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
76 long categoryId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getMBCategory(categoryId);
80 }
81
82 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getMBCategories(start, end);
86 }
87
88 public static int getMBCategoriesCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getMBCategoriesCount();
91 }
92
93 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
94 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updateMBCategory(mbCategory);
97 }
98
99 public static com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
100 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
101 boolean merge)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().updateMBCategory(mbCategory, merge);
104 }
105
106 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
107 long userId, long parentCategoryId, java.lang.String name,
108 java.lang.String description, java.lang.String emailAddress,
109 java.lang.String inProtocol, java.lang.String inServerName,
110 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
111 java.lang.String inPassword, int inReadInterval,
112 java.lang.String outEmailAddress, boolean outCustom,
113 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
114 java.lang.String outUserName, java.lang.String outPassword,
115 boolean mailingListActive,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException {
119 return getService()
120 .addCategory(userId, parentCategoryId, name, description,
121 emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
122 inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
123 outServerName, outServerPort, outUseSSL, outUserName, outPassword,
124 mailingListActive, serviceContext);
125 }
126
127 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
128 java.lang.String uuid, long userId, long parentCategoryId,
129 java.lang.String name, java.lang.String description,
130 java.lang.String emailAddress, java.lang.String inProtocol,
131 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
132 java.lang.String inUserName, java.lang.String inPassword,
133 int inReadInterval, java.lang.String outEmailAddress,
134 boolean outCustom, java.lang.String outServerName, int outServerPort,
135 boolean outUseSSL, java.lang.String outUserName,
136 java.lang.String outPassword, boolean mailingListActive,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .addCategory(uuid, userId, parentCategoryId, name,
142 description, emailAddress, inProtocol, inServerName, inServerPort,
143 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
144 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
145 outPassword, mailingListActive, serviceContext);
146 }
147
148 public static void addCategoryResources(long categoryId,
149 boolean addCommunityPermissions, boolean addGuestPermissions)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 getService()
153 .addCategoryResources(categoryId, addCommunityPermissions,
154 addGuestPermissions);
155 }
156
157 public static void addCategoryResources(long categoryId,
158 java.lang.String[] communityPermissions,
159 java.lang.String[] guestPermissions)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException {
162 getService()
163 .addCategoryResources(categoryId, communityPermissions,
164 guestPermissions);
165 }
166
167 public static void addCategoryResources(
168 com.liferay.portlet.messageboards.model.MBCategory category,
169 boolean addCommunityPermissions, boolean addGuestPermissions)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException {
172 getService()
173 .addCategoryResources(category, addCommunityPermissions,
174 addGuestPermissions);
175 }
176
177 public static void addCategoryResources(
178 com.liferay.portlet.messageboards.model.MBCategory category,
179 java.lang.String[] communityPermissions,
180 java.lang.String[] guestPermissions)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 getService()
184 .addCategoryResources(category, communityPermissions,
185 guestPermissions);
186 }
187
188 public static void deleteCategories(long groupId)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 getService().deleteCategories(groupId);
192 }
193
194 public static void deleteCategory(long categoryId)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 getService().deleteCategory(categoryId);
198 }
199
200 public static void deleteCategory(
201 com.liferay.portlet.messageboards.model.MBCategory category)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 getService().deleteCategory(category);
205 }
206
207 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
208 long groupId)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getCategories(groupId);
211 }
212
213 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
214 long groupId, long parentCategoryId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().getCategories(groupId, parentCategoryId);
217 }
218
219 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
220 long groupId, long parentCategoryId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().getCategories(groupId, parentCategoryId, start, end);
223 }
224
225 public static int getCategoriesCount(long groupId)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getService().getCategoriesCount(groupId);
228 }
229
230 public static int getCategoriesCount(long groupId, long parentCategoryId)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getService().getCategoriesCount(groupId, parentCategoryId);
233 }
234
235 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
236 long categoryId)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getCategory(categoryId);
240 }
241
242 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
243 long companyId, int start, int end)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getService().getCompanyCategories(companyId, start, end);
246 }
247
248 public static int getCompanyCategoriesCount(long companyId)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().getCompanyCategoriesCount(companyId);
251 }
252
253 public static void getSubcategoryIds(java.util.List<Long> categoryIds,
254 long groupId, long categoryId)
255 throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException {
267 return getService().getSubscribedCategoriesCount(groupId, userId);
268 }
269
270 public static com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getService().getSystemCategory();
273 }
274
275 public static void subscribeCategory(long userId, long groupId,
276 long categoryId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService().subscribeCategory(userId, groupId, categoryId);
280 }
281
282 public static void unsubscribeCategory(long userId, long groupId,
283 long categoryId)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 getService().unsubscribeCategory(userId, groupId, categoryId);
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, java.lang.String emailAddress,
292 java.lang.String inProtocol, java.lang.String inServerName,
293 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
294 java.lang.String inPassword, int inReadInterval,
295 java.lang.String outEmailAddress, boolean outCustom,
296 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
297 java.lang.String outUserName, java.lang.String outPassword,
298 boolean mailingListActive, boolean mergeWithParentCategory,
299 com.liferay.portal.service.ServiceContext serviceContext)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException {
302 return getService()
303 .updateCategory(categoryId, parentCategoryId, name,
304 description, emailAddress, inProtocol, inServerName, inServerPort,
305 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
306 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
307 outPassword, mailingListActive, mergeWithParentCategory,
308 serviceContext);
309 }
310
311 public static MBCategoryLocalService getService() {
312 if (_service == null) {
313 _service = (MBCategoryLocalService)PortalBeanLocatorUtil.locate(MBCategoryLocalService.class.getName());
314 }
315
316 return _service;
317 }
318
319 public void setService(MBCategoryLocalService service) {
320 _service = service;
321 }
322
323 private static MBCategoryLocalService _service;
324 }