001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class MBBanLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.messageboards.model.MBBan addMBBan(
049 com.liferay.portlet.messageboards.model.MBBan mbBan)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addMBBan(mbBan);
052 }
053
054
060 public static com.liferay.portlet.messageboards.model.MBBan createMBBan(
061 long banId) {
062 return getService().createMBBan(banId);
063 }
064
065
072 public static void deleteMBBan(long banId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteMBBan(banId);
076 }
077
078
084 public static void deleteMBBan(
085 com.liferay.portlet.messageboards.model.MBBan mbBan)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteMBBan(mbBan);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.messageboards.model.MBBan fetchMBBan(
162 long banId) throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().fetchMBBan(banId);
164 }
165
166
174 public static com.liferay.portlet.messageboards.model.MBBan getMBBan(
175 long banId)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().getMBBan(banId);
179 }
180
181 public static com.liferay.portal.model.PersistedModel getPersistedModel(
182 java.io.Serializable primaryKeyObj)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getPersistedModel(primaryKeyObj);
186 }
187
188
200 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
201 int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().getMBBans(start, end);
204 }
205
206
212 public static int getMBBansCount()
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().getMBBansCount();
215 }
216
217
224 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
225 com.liferay.portlet.messageboards.model.MBBan mbBan)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getService().updateMBBan(mbBan);
228 }
229
230
238 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
239 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return getService().updateMBBan(mbBan, merge);
242 }
243
244
249 public static java.lang.String getBeanIdentifier() {
250 return getService().getBeanIdentifier();
251 }
252
253
258 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
259 getService().setBeanIdentifier(beanIdentifier);
260 }
261
262 public static com.liferay.portlet.messageboards.model.MBBan addBan(
263 long userId, long banUserId,
264 com.liferay.portal.service.ServiceContext serviceContext)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException {
267 return getService().addBan(userId, banUserId, serviceContext);
268 }
269
270 public static void checkBan(long groupId, long banUserId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService().checkBan(groupId, banUserId);
274 }
275
276 public static void deleteBan(long banId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService().deleteBan(banId);
280 }
281
282 public static void deleteBan(long banUserId,
283 com.liferay.portal.service.ServiceContext serviceContext)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 getService().deleteBan(banUserId, serviceContext);
286 }
287
288 public static void deleteBan(
289 com.liferay.portlet.messageboards.model.MBBan ban)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 getService().deleteBan(ban);
292 }
293
294 public static void deleteBansByBanUserId(long banUserId)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 getService().deleteBansByBanUserId(banUserId);
297 }
298
299 public static void deleteBansByGroupId(long groupId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteBansByGroupId(groupId);
302 }
303
304 public static void expireBans()
305 throws com.liferay.portal.kernel.exception.SystemException {
306 getService().expireBans();
307 }
308
309 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
310 long groupId, int start, int end)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService().getBans(groupId, start, end);
313 }
314
315 public static int getBansCount(long groupId)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService().getBansCount(groupId);
318 }
319
320 public static boolean hasBan(long groupId, long banUserId)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 return getService().hasBan(groupId, banUserId);
323 }
324
325 public static MBBanLocalService getService() {
326 if (_service == null) {
327 _service = (MBBanLocalService)PortalBeanLocatorUtil.locate(MBBanLocalService.class.getName());
328
329 ReferenceRegistry.registerReference(MBBanLocalServiceUtil.class,
330 "_service");
331 MethodCache.remove(MBBanLocalService.class);
332 }
333
334 return _service;
335 }
336
337 public void setService(MBBanLocalService service) {
338 MethodCache.remove(MBBanLocalService.class);
339
340 _service = service;
341
342 ReferenceRegistry.registerReference(MBBanLocalServiceUtil.class,
343 "_service");
344 MethodCache.remove(MBBanLocalService.class);
345 }
346
347 private static MBBanLocalService _service;
348 }