1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class MBStatsUserLocalServiceUtil {
40 public static com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
41 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addMBStatsUser(mbStatsUser);
44 }
45
46 public static com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
47 long statsUserId) {
48 return getService().createMBStatsUser(statsUserId);
49 }
50
51 public static void deleteMBStatsUser(long statsUserId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteMBStatsUser(statsUserId);
55 }
56
57 public static void deleteMBStatsUser(
58 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteMBStatsUser(mbStatsUser);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
76 long statsUserId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getMBStatsUser(statsUserId);
80 }
81
82 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getMBStatsUsers(start, end);
86 }
87
88 public static int getMBStatsUsersCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getMBStatsUsersCount();
91 }
92
93 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
94 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updateMBStatsUser(mbStatsUser);
97 }
98
99 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
100 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
101 boolean merge)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().updateMBStatsUser(mbStatsUser, merge);
104 }
105
106 public static com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
107 long groupId, long userId)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().addStatsUser(groupId, userId);
110 }
111
112 public static void deleteStatsUsersByGroupId(long groupId)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 getService().deleteStatsUsersByGroupId(groupId);
115 }
116
117 public static void deleteStatsUsersByUserId(long userId)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 getService().deleteStatsUsersByUserId(userId);
120 }
121
122 public static int getMessageCountByUserId(long userId)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getService().getMessageCountByUserId(userId);
125 }
126
127 public static com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
128 long groupId, long userId)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getService().getStatsUser(groupId, userId);
131 }
132
133 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
134 long groupId, int start, int end)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getService().getStatsUsersByGroupId(groupId, start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
140 long userId) throws com.liferay.portal.kernel.exception.SystemException {
141 return getService().getStatsUsersByUserId(userId);
142 }
143
144 public static int getStatsUsersByGroupIdCount(long groupId)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getService().getStatsUsersByGroupIdCount(groupId);
147 }
148
149 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
150 long groupId, long userId)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().updateStatsUser(groupId, userId);
153 }
154
155 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
156 long groupId, long userId, java.util.Date lastPostDate)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().updateStatsUser(groupId, userId, lastPostDate);
159 }
160
161 public static MBStatsUserLocalService getService() {
162 if (_service == null) {
163 _service = (MBStatsUserLocalService)PortalBeanLocatorUtil.locate(MBStatsUserLocalService.class.getName());
164 }
165
166 return _service;
167 }
168
169 public void setService(MBStatsUserLocalService service) {
170 _service = service;
171 }
172
173 private static MBStatsUserLocalService _service;
174 }