001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class MBBanLocalServiceUtil {
033 public static com.liferay.portlet.messageboards.model.MBBan addMBBan(
034 com.liferay.portlet.messageboards.model.MBBan mbBan)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addMBBan(mbBan);
037 }
038
039 public static com.liferay.portlet.messageboards.model.MBBan createMBBan(
040 long banId) {
041 return getService().createMBBan(banId);
042 }
043
044 public static void deleteMBBan(long banId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteMBBan(banId);
048 }
049
050 public static void deleteMBBan(
051 com.liferay.portlet.messageboards.model.MBBan mbBan)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteMBBan(mbBan);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.messageboards.model.MBBan getMBBan(
087 long banId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getMBBan(banId);
091 }
092
093 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getMBBans(start, end);
097 }
098
099 public static int getMBBansCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getMBBansCount();
102 }
103
104 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
105 com.liferay.portlet.messageboards.model.MBBan mbBan)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateMBBan(mbBan);
108 }
109
110 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
111 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().updateMBBan(mbBan, merge);
114 }
115
116 public static com.liferay.portlet.messageboards.model.MBBan addBan(
117 long userId, long banUserId,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException {
121 return getService().addBan(userId, banUserId, serviceContext);
122 }
123
124 public static void checkBan(long groupId, long banUserId)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 getService().checkBan(groupId, banUserId);
128 }
129
130 public static void deleteBan(long banUserId,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 getService().deleteBan(banUserId, serviceContext);
134 }
135
136 public static void deleteBansByBanUserId(long banUserId)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 getService().deleteBansByBanUserId(banUserId);
139 }
140
141 public static void deleteBansByGroupId(long groupId)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 getService().deleteBansByGroupId(groupId);
144 }
145
146 public static void expireBans()
147 throws com.liferay.portal.kernel.exception.SystemException {
148 getService().expireBans();
149 }
150
151 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
152 long groupId, int start, int end)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().getBans(groupId, start, end);
155 }
156
157 public static int getBansCount(long groupId)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getService().getBansCount(groupId);
160 }
161
162 public static boolean hasBan(long groupId, long banUserId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().hasBan(groupId, banUserId);
165 }
166
167 public static MBBanLocalService getService() {
168 if (_service == null) {
169 _service = (MBBanLocalService)PortalBeanLocatorUtil.locate(MBBanLocalService.class.getName());
170 }
171
172 return _service;
173 }
174
175 public void setService(MBBanLocalService service) {
176 _service = service;
177 }
178
179 private static MBBanLocalService _service;
180 }