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