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 MBStatsUserLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
049 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addMBStatsUser(mbStatsUser);
052 }
053
054
060 public static com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
061 long statsUserId) {
062 return getService().createMBStatsUser(statsUserId);
063 }
064
065
072 public static void deleteMBStatsUser(long statsUserId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteMBStatsUser(statsUserId);
076 }
077
078
084 public static void deleteMBStatsUser(
085 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteMBStatsUser(mbStatsUser);
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.MBStatsUser fetchMBStatsUser(
162 long statsUserId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchMBStatsUser(statsUserId);
165 }
166
167
175 public static com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
176 long statsUserId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getMBStatsUser(statsUserId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
201 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getService().getMBStatsUsers(start, end);
205 }
206
207
213 public static int getMBStatsUsersCount()
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().getMBStatsUsersCount();
216 }
217
218
225 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
226 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().updateMBStatsUser(mbStatsUser);
229 }
230
231
239 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
240 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
241 boolean merge)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().updateMBStatsUser(mbStatsUser, merge);
244 }
245
246
251 public static java.lang.String getBeanIdentifier() {
252 return getService().getBeanIdentifier();
253 }
254
255
260 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
261 getService().setBeanIdentifier(beanIdentifier);
262 }
263
264 public static com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
265 long groupId, long userId)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getService().addStatsUser(groupId, userId);
268 }
269
270 public static void deleteStatsUser(long statsUserId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService().deleteStatsUser(statsUserId);
274 }
275
276 public static void deleteStatsUser(
277 com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 getService().deleteStatsUser(statsUser);
280 }
281
282 public static void deleteStatsUsersByGroupId(long groupId)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 getService().deleteStatsUsersByGroupId(groupId);
285 }
286
287 public static void deleteStatsUsersByUserId(long userId)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 getService().deleteStatsUsersByUserId(userId);
290 }
291
292 public static long getMessageCountByUserId(long userId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return getService().getMessageCountByUserId(userId);
295 }
296
297 public static com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
298 long groupId, long userId)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getStatsUser(groupId, userId);
301 }
302
303 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
304 long groupId, int start, int end)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 return getService().getStatsUsersByGroupId(groupId, start, end);
308 }
309
310 public static int getStatsUsersByGroupIdCount(long groupId)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException {
313 return getService().getStatsUsersByGroupIdCount(groupId);
314 }
315
316 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
317 long userId) throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().getStatsUsersByUserId(userId);
319 }
320
321 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
322 long groupId, long userId)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getService().updateStatsUser(groupId, userId);
325 }
326
327 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
328 long groupId, long userId, java.util.Date lastPostDate)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getService().updateStatsUser(groupId, userId, lastPostDate);
331 }
332
333 public static MBStatsUserLocalService getService() {
334 if (_service == null) {
335 _service = (MBStatsUserLocalService)PortalBeanLocatorUtil.locate(MBStatsUserLocalService.class.getName());
336
337 ReferenceRegistry.registerReference(MBStatsUserLocalServiceUtil.class,
338 "_service");
339 MethodCache.remove(MBStatsUserLocalService.class);
340 }
341
342 return _service;
343 }
344
345 public void setService(MBStatsUserLocalService service) {
346 MethodCache.remove(MBStatsUserLocalService.class);
347
348 _service = service;
349
350 ReferenceRegistry.registerReference(MBStatsUserLocalServiceUtil.class,
351 "_service");
352 MethodCache.remove(MBStatsUserLocalService.class);
353 }
354
355 private static MBStatsUserLocalService _service;
356 }