1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class BlogsStatsUserLocalServiceUtil {
40 public static com.liferay.portlet.blogs.model.BlogsStatsUser addBlogsStatsUser(
41 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addBlogsStatsUser(blogsStatsUser);
44 }
45
46 public static com.liferay.portlet.blogs.model.BlogsStatsUser createBlogsStatsUser(
47 long statsUserId) {
48 return getService().createBlogsStatsUser(statsUserId);
49 }
50
51 public static void deleteBlogsStatsUser(long statsUserId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteBlogsStatsUser(statsUserId);
55 }
56
57 public static void deleteBlogsStatsUser(
58 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteBlogsStatsUser(blogsStatsUser);
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.blogs.model.BlogsStatsUser getBlogsStatsUser(
94 long statsUserId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getBlogsStatsUser(statsUserId);
98 }
99
100 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getBlogsStatsUsers(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getBlogsStatsUsers(start, end);
104 }
105
106 public static int getBlogsStatsUsersCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getBlogsStatsUsersCount();
109 }
110
111 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
112 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateBlogsStatsUser(blogsStatsUser);
115 }
116
117 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
118 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateBlogsStatsUser(blogsStatsUser, merge);
122 }
123
124 public static void deleteStatsUserByGroupId(long groupId)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 getService().deleteStatsUserByGroupId(groupId);
127 }
128
129 public static void deleteStatsUserByUserId(long userId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 getService().deleteStatsUserByUserId(userId);
132 }
133
134 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
135 long companyId, int start, int end)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getService().getCompanyStatsUsers(companyId, start, end);
138 }
139
140 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
141 long companyId, int start, int end,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService().getCompanyStatsUsers(companyId, start, end, obc);
145 }
146
147 public static int getCompanyStatsUsersCount(long companyId)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getService().getCompanyStatsUsersCount(companyId);
150 }
151
152 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupsStatsUsers(
153 long companyId, long groupId, int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getService().getGroupsStatsUsers(companyId, groupId, start, end);
156 }
157
158 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
159 long groupId, int start, int end)
160 throws com.liferay.portal.kernel.exception.SystemException {
161 return getService().getGroupStatsUsers(groupId, start, end);
162 }
163
164 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
165 long groupId, int start, int end,
166 com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().getGroupStatsUsers(groupId, start, end, obc);
169 }
170
171 public static int getGroupStatsUsersCount(long groupId)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getService().getGroupStatsUsersCount(groupId);
174 }
175
176 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
177 long organizationId, int start, int end)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getService().getOrganizationStatsUsers(organizationId, start, end);
180 }
181
182 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
183 long organizationId, int start, int end,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService()
187 .getOrganizationStatsUsers(organizationId, start, end, obc);
188 }
189
190 public static int getOrganizationStatsUsersCount(long organizationId)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getService().getOrganizationStatsUsersCount(organizationId);
193 }
194
195 public static com.liferay.portlet.blogs.model.BlogsStatsUser getStatsUser(
196 long groupId, long userId)
197 throws com.liferay.portal.kernel.exception.PortalException,
198 com.liferay.portal.kernel.exception.SystemException {
199 return getService().getStatsUser(groupId, userId);
200 }
201
202 public static void updateStatsUser(long groupId, long userId)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException {
205 getService().updateStatsUser(groupId, userId);
206 }
207
208 public static void updateStatsUser(long groupId, long userId,
209 java.util.Date displayDate)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException {
212 getService().updateStatsUser(groupId, userId, displayDate);
213 }
214
215 public static BlogsStatsUserLocalService getService() {
216 if (_service == null) {
217 _service = (BlogsStatsUserLocalService)PortalBeanLocatorUtil.locate(BlogsStatsUserLocalService.class.getName());
218 }
219
220 return _service;
221 }
222
223 public void setService(BlogsStatsUserLocalService service) {
224 _service = service;
225 }
226
227 private static BlogsStatsUserLocalService _service;
228 }