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.ReferenceRegistry;
019
020
033 public class MBBanLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.messageboards.model.MBBan addMBBan(
048 com.liferay.portlet.messageboards.model.MBBan mbBan)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addMBBan(mbBan);
051 }
052
053
059 public static com.liferay.portlet.messageboards.model.MBBan createMBBan(
060 long banId) {
061 return getService().createMBBan(banId);
062 }
063
064
072 public static com.liferay.portlet.messageboards.model.MBBan deleteMBBan(
073 long banId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteMBBan(banId);
077 }
078
079
086 public static com.liferay.portlet.messageboards.model.MBBan deleteMBBan(
087 com.liferay.portlet.messageboards.model.MBBan mbBan)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteMBBan(mbBan);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.messageboards.model.MBBan fetchMBBan(
168 long banId) throws com.liferay.portal.kernel.exception.SystemException {
169 return getService().fetchMBBan(banId);
170 }
171
172
180 public static com.liferay.portlet.messageboards.model.MBBan getMBBan(
181 long banId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getMBBan(banId);
185 }
186
187 public static com.liferay.portal.model.PersistedModel getPersistedModel(
188 java.io.Serializable primaryKeyObj)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().getPersistedModel(primaryKeyObj);
192 }
193
194
206 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
207 int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getMBBans(start, end);
210 }
211
212
218 public static int getMBBansCount()
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getService().getMBBansCount();
221 }
222
223
230 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
231 com.liferay.portlet.messageboards.model.MBBan mbBan)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().updateMBBan(mbBan);
234 }
235
236
241 public static java.lang.String getBeanIdentifier() {
242 return getService().getBeanIdentifier();
243 }
244
245
250 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
251 getService().setBeanIdentifier(beanIdentifier);
252 }
253
254 public static com.liferay.portlet.messageboards.model.MBBan addBan(
255 long userId, long banUserId,
256 com.liferay.portal.service.ServiceContext serviceContext)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException {
259 return getService().addBan(userId, banUserId, serviceContext);
260 }
261
262 public static void checkBan(long groupId, long banUserId)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException {
265 getService().checkBan(groupId, banUserId);
266 }
267
268 public static void deleteBan(long banId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 getService().deleteBan(banId);
272 }
273
274 public static void deleteBan(long banUserId,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getService().deleteBan(banUserId, serviceContext);
278 }
279
280 public static void deleteBan(
281 com.liferay.portlet.messageboards.model.MBBan ban)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getService().deleteBan(ban);
284 }
285
286 public static void deleteBansByBanUserId(long banUserId)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getService().deleteBansByBanUserId(banUserId);
289 }
290
291 public static void deleteBansByGroupId(long groupId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 getService().deleteBansByGroupId(groupId);
294 }
295
296 public static void expireBans()
297 throws com.liferay.portal.kernel.exception.SystemException {
298 getService().expireBans();
299 }
300
301 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
302 long groupId, int start, int end)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getService().getBans(groupId, start, end);
305 }
306
307 public static int getBansCount(long groupId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getService().getBansCount(groupId);
310 }
311
312 public static boolean hasBan(long groupId, long banUserId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getService().hasBan(groupId, banUserId);
315 }
316
317 public static MBBanLocalService getService() {
318 if (_service == null) {
319 _service = (MBBanLocalService)PortalBeanLocatorUtil.locate(MBBanLocalService.class.getName());
320
321 ReferenceRegistry.registerReference(MBBanLocalServiceUtil.class,
322 "_service");
323 }
324
325 return _service;
326 }
327
328
331 public void setService(MBBanLocalService service) {
332 }
333
334 private static MBBanLocalService _service;
335 }