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 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
94 long statsUserId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getMBStatsUser(statsUserId);
98 }
99
100 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getMBStatsUsers(start, end);
104 }
105
106 public static int getMBStatsUsersCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getMBStatsUsersCount();
109 }
110
111 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
112 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateMBStatsUser(mbStatsUser);
115 }
116
117 public static com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
118 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateMBStatsUser(mbStatsUser, merge);
122 }
123
124 public static com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
125 long groupId, long userId)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().addStatsUser(groupId, userId);
128 }
129
130 public static void deleteStatsUsersByGroupId(long groupId)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 getService().deleteStatsUsersByGroupId(groupId);
133 }
134
135 public static void deleteStatsUsersByUserId(long userId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 getService().deleteStatsUsersByUserId(userId);
138 }
139
140 public static long getMessageCountByUserId(long userId)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().getMessageCountByUserId(userId);
143 }
144
145 public static com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
146 long groupId, long userId)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getService().getStatsUser(groupId, userId);
149 }
150
151 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
152 long groupId, int start, int end)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().getStatsUsersByGroupId(groupId, start, end);
155 }
156
157 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
158 long userId) throws com.liferay.portal.kernel.exception.SystemException {
159 return getService().getStatsUsersByUserId(userId);
160 }
161
162 public static int getStatsUsersByGroupIdCount(long groupId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().getStatsUsersByGroupIdCount(groupId);
165 }
166
167 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
168 long groupId, long userId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().updateStatsUser(groupId, userId);
171 }
172
173 public static com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
174 long groupId, long userId, java.util.Date lastPostDate)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getService().updateStatsUser(groupId, userId, lastPostDate);
177 }
178
179 public static MBStatsUserLocalService getService() {
180 if (_service == null) {
181 _service = (MBStatsUserLocalService)PortalBeanLocatorUtil.locate(MBStatsUserLocalService.class.getName());
182 }
183
184 return _service;
185 }
186
187 public void setService(MBStatsUserLocalService service) {
188 _service = service;
189 }
190
191 private static MBStatsUserLocalService _service;
192 }