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 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.PortalException,
118 com.liferay.portal.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.PortalException,
139 com.liferay.portal.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.PortalException,
151 com.liferay.portal.SystemException {
152 getService()
153 .addCategoryResources(categoryId, addCommunityPermissions,
154 addGuestPermissions);
155 }
156
157 public static void addCategoryResources(
158 com.liferay.portlet.messageboards.model.MBCategory category,
159 boolean addCommunityPermissions, boolean addGuestPermissions)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 getService()
163 .addCategoryResources(category, addCommunityPermissions,
164 addGuestPermissions);
165 }
166
167 public static void addCategoryResources(long categoryId,
168 java.lang.String[] communityPermissions,
169 java.lang.String[] guestPermissions)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException {
172 getService()
173 .addCategoryResources(categoryId, communityPermissions,
174 guestPermissions);
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.PortalException,
182 com.liferay.portal.SystemException {
183 getService()
184 .addCategoryResources(category, communityPermissions,
185 guestPermissions);
186 }
187
188 public static void deleteCategories(long groupId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 getService().deleteCategories(groupId);
192 }
193
194 public static void deleteCategory(long categoryId)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.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.PortalException,
203 com.liferay.portal.SystemException {
204 getService().deleteCategory(category);
205 }
206
207 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
208 long groupId, long parentCategoryId)
209 throws com.liferay.portal.SystemException {
210 return getService().getCategories(groupId, parentCategoryId);
211 }
212
213 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
214 long groupId, long parentCategoryId, int start, int end)
215 throws com.liferay.portal.SystemException {
216 return getService().getCategories(groupId, parentCategoryId, start, end);
217 }
218
219 public static int getCategoriesCount(long groupId)
220 throws com.liferay.portal.SystemException {
221 return getService().getCategoriesCount(groupId);
222 }
223
224 public static int getCategoriesCount(long groupId, long parentCategoryId)
225 throws com.liferay.portal.SystemException {
226 return getService().getCategoriesCount(groupId, parentCategoryId);
227 }
228
229 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
230 long categoryId)
231 throws com.liferay.portal.PortalException,
232 com.liferay.portal.SystemException {
233 return getService().getCategory(categoryId);
234 }
235
236 public static void getSubcategoryIds(java.util.List<Long> categoryIds,
237 long groupId, long categoryId)
238 throws com.liferay.portal.SystemException {
239 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
240 }
241
242 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
243 long groupId, long userId, int start, int end)
244 throws com.liferay.portal.SystemException {
245 return getService().getSubscribedCategories(groupId, userId, start, end);
246 }
247
248 public static int getSubscribedCategoriesCount(long groupId, long userId)
249 throws com.liferay.portal.SystemException {
250 return getService().getSubscribedCategoriesCount(groupId, userId);
251 }
252
253 public static com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
254 throws com.liferay.portal.SystemException {
255 return getService().getSystemCategory();
256 }
257
258 public static void reIndex(java.lang.String[] ids)
259 throws com.liferay.portal.SystemException {
260 getService().reIndex(ids);
261 }
262
263 public static com.liferay.portal.kernel.search.Hits search(long companyId,
264 long groupId, long[] categoryIds, long threadId,
265 java.lang.String keywords, int start, int end)
266 throws com.liferay.portal.SystemException {
267 return getService()
268 .search(companyId, groupId, categoryIds, threadId, keywords,
269 start, end);
270 }
271
272 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
273 long categoryId, long parentCategoryId, java.lang.String name,
274 java.lang.String description, java.lang.String emailAddress,
275 java.lang.String inProtocol, java.lang.String inServerName,
276 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
277 java.lang.String inPassword, int inReadInterval,
278 java.lang.String outEmailAddress, boolean outCustom,
279 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
280 java.lang.String outUserName, java.lang.String outPassword,
281 boolean mailingListActive, boolean mergeWithParentCategory)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 return getService()
285 .updateCategory(categoryId, parentCategoryId, name,
286 description, emailAddress, inProtocol, inServerName, inServerPort,
287 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
288 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
289 outPassword, mailingListActive, mergeWithParentCategory);
290 }
291
292 public static void subscribeCategory(long userId, long categoryId)
293 throws com.liferay.portal.PortalException,
294 com.liferay.portal.SystemException {
295 getService().subscribeCategory(userId, categoryId);
296 }
297
298 public static void unsubscribeCategory(long userId, long categoryId)
299 throws com.liferay.portal.PortalException,
300 com.liferay.portal.SystemException {
301 getService().unsubscribeCategory(userId, categoryId);
302 }
303
304 public static MBCategoryLocalService getService() {
305 if (_service == null) {
306 throw new RuntimeException("MBCategoryLocalService is not set");
307 }
308
309 return _service;
310 }
311
312 public void setService(MBCategoryLocalService service) {
313 _service = service;
314 }
315
316 private static MBCategoryLocalService _service;
317 }