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
242 public static java.lang.String getBeanIdentifier() {
243 return getService().getBeanIdentifier();
244 }
245
246
251 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
252 getService().setBeanIdentifier(beanIdentifier);
253 }
254
255 public static com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
256 long groupId, long userId)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getService().addStatsUser(groupId, userId);
259 }
260
261 public static void deleteStatsUser(long statsUserId)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException {
264 getService().deleteStatsUser(statsUserId);
265 }
266
267 public static void deleteStatsUser(
268 com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 getService().deleteStatsUser(statsUser);
271 }
272
273 public static void deleteStatsUsersByGroupId(long groupId)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getService().deleteStatsUsersByGroupId(groupId);
276 }
277
278 public static void deleteStatsUsersByUserId(long userId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getService().deleteStatsUsersByUserId(userId);
281 }
282
283 public static java.util.Date getLasPostDateByUserId(long groupId,
284 long userId) throws com.liferay.portal.kernel.exception.SystemException {
285 return getService().getLasPostDateByUserId(groupId, userId);
286 }
287
288 public static long getMessageCountByGroupId(long groupId)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getService().getMessageCountByGroupId(groupId);
291 }
292
293 public static long getMessageCountByUserId(long userId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getService().getMessageCountByUserId(userId);
296 }
297
298 public static com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
299 long groupId, long userId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return getService().getStatsUser(groupId, userId);
302 }
303
304 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
305 long groupId, int start, int end)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException {
308 return getService().getStatsUsersByGroupId(groupId, start, end);
309 }
310
311 public static int getStatsUsersByGroupIdCount(long groupId)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 return getService().getStatsUsersByGroupIdCount(groupId);
315 }
316
317 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
318 long userId) throws com.liferay.portal.kernel.exception.SystemException {
319 return getService().getStatsUsersByUserId(userId);
320 }
321
322 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
323 long groupId, long userId)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getService().updateStatsUser(groupId, userId);
326 }
327
328 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
329 long groupId, long userId, java.util.Date lastPostDate)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 return getService().updateStatsUser(groupId, userId, lastPostDate);
332 }
333
334 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
335 long groupId, long userId, int messageCount, java.util.Date lastPostDate)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getService()
338 .updateStatsUser(groupId, userId, messageCount, lastPostDate);
339 }
340
341 public static MBStatsUserLocalService getService() {
342 if (_service == null) {
343 _service = (MBStatsUserLocalService)PortalBeanLocatorUtil.locate(MBStatsUserLocalService.class.getName());
344
345 ReferenceRegistry.registerReference(MBStatsUserLocalServiceUtil.class,
346 "_service");
347 }
348
349 return _service;
350 }
351
352
355 public void setService(MBStatsUserLocalService service) {
356 }
357
358 private static MBStatsUserLocalService _service;
359 }