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 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 java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.blogs.model.BlogsStatsUser getBlogsStatsUser(
91 long statsUserId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getBlogsStatsUser(statsUserId);
95 }
96
97 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getBlogsStatsUsers(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getBlogsStatsUsers(start, end);
101 }
102
103 public static int getBlogsStatsUsersCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getBlogsStatsUsersCount();
106 }
107
108 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
109 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateBlogsStatsUser(blogsStatsUser);
112 }
113
114 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
115 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
116 boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().updateBlogsStatsUser(blogsStatsUser, merge);
119 }
120
121 public static void deleteStatsUserByGroupId(long groupId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 getService().deleteStatsUserByGroupId(groupId);
124 }
125
126 public static void deleteStatsUserByUserId(long userId)
127 throws com.liferay.portal.kernel.exception.SystemException {
128 getService().deleteStatsUserByUserId(userId);
129 }
130
131 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
132 long companyId, int start, int end)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getService().getCompanyStatsUsers(companyId, start, end);
135 }
136
137 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
138 long companyId, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getService().getCompanyStatsUsers(companyId, start, end, obc);
142 }
143
144 public static int getCompanyStatsUsersCount(long companyId)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getService().getCompanyStatsUsersCount(companyId);
147 }
148
149 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
150 long groupId, int start, int end)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().getGroupStatsUsers(groupId, start, end);
153 }
154
155 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
156 long groupId, int start, int end,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getService().getGroupStatsUsers(groupId, start, end, obc);
160 }
161
162 public static int getGroupStatsUsersCount(long groupId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().getGroupStatsUsersCount(groupId);
165 }
166
167 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
168 long organizationId, int start, int end)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().getOrganizationStatsUsers(organizationId, start, end);
171 }
172
173 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
174 long organizationId, int start, int end,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getService()
178 .getOrganizationStatsUsers(organizationId, start, end, obc);
179 }
180
181 public static int getOrganizationStatsUsersCount(long organizationId)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().getOrganizationStatsUsersCount(organizationId);
184 }
185
186 public static com.liferay.portlet.blogs.model.BlogsStatsUser getStatsUser(
187 long groupId, long userId)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService().getStatsUser(groupId, userId);
191 }
192
193 public static void updateStatsUser(long groupId, long userId)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException {
196 getService().updateStatsUser(groupId, userId);
197 }
198
199 public static void updateStatsUser(long groupId, long userId,
200 java.util.Date displayDate)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 getService().updateStatsUser(groupId, userId, displayDate);
204 }
205
206 public static BlogsStatsUserLocalService getService() {
207 if (_service == null) {
208 _service = (BlogsStatsUserLocalService)PortalBeanLocatorUtil.locate(BlogsStatsUserLocalService.class.getName());
209 }
210
211 return _service;
212 }
213
214 public void setService(BlogsStatsUserLocalService service) {
215 _service = service;
216 }
217
218 private static BlogsStatsUserLocalService _service;
219 }