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 MBStatsUserLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
048 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addMBStatsUser(mbStatsUser);
051 }
052
053
059 public static com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
060 long statsUserId) {
061 return getService().createMBStatsUser(statsUserId);
062 }
063
064
072 public static com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
073 long statsUserId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteMBStatsUser(statsUserId);
077 }
078
079
086 public static com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
087 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteMBStatsUser(mbStatsUser);
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.MBStatsUser fetchMBStatsUser(
168 long statsUserId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchMBStatsUser(statsUserId);
171 }
172
173
181 public static com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
182 long statsUserId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getMBStatsUser(statsUserId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getMBStatsUsers(start, end);
211 }
212
213
219 public static int getMBStatsUsersCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getMBStatsUsersCount();
222 }
223
224
231 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
232 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateMBStatsUser(mbStatsUser);
235 }
236
237
245 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
246 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateMBStatsUser(mbStatsUser, merge);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
271 long groupId, long userId)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getService().addStatsUser(groupId, userId);
274 }
275
276 public static void deleteStatsUser(long statsUserId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService().deleteStatsUser(statsUserId);
280 }
281
282 public static void deleteStatsUser(
283 com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 getService().deleteStatsUser(statsUser);
286 }
287
288 public static void deleteStatsUsersByGroupId(long groupId)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 getService().deleteStatsUsersByGroupId(groupId);
291 }
292
293 public static void deleteStatsUsersByUserId(long userId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 getService().deleteStatsUsersByUserId(userId);
296 }
297
298 public static long getMessageCountByUserId(long userId)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getMessageCountByUserId(userId);
301 }
302
303 public static com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
304 long groupId, long userId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 return getService().getStatsUser(groupId, userId);
307 }
308
309 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
310 long groupId, int start, int end)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException {
313 return getService().getStatsUsersByGroupId(groupId, start, end);
314 }
315
316 public static int getStatsUsersByGroupIdCount(long groupId)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 return getService().getStatsUsersByGroupIdCount(groupId);
320 }
321
322 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
323 long userId) throws com.liferay.portal.kernel.exception.SystemException {
324 return getService().getStatsUsersByUserId(userId);
325 }
326
327 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
328 long groupId, long userId)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getService().updateStatsUser(groupId, userId);
331 }
332
333 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
334 long groupId, long userId, java.util.Date lastPostDate)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getService().updateStatsUser(groupId, userId, lastPostDate);
337 }
338
339 public static MBStatsUserLocalService getService() {
340 if (_service == null) {
341 _service = (MBStatsUserLocalService)PortalBeanLocatorUtil.locate(MBStatsUserLocalService.class.getName());
342
343 ReferenceRegistry.registerReference(MBStatsUserLocalServiceUtil.class,
344 "_service");
345 }
346
347 return _service;
348 }
349
350
353 public void setService(MBStatsUserLocalService service) {
354 }
355
356 private static MBStatsUserLocalService _service;
357 }