001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class BlogsStatsUserLocalServiceUtil {
033 public static com.liferay.portlet.blogs.model.BlogsStatsUser addBlogsStatsUser(
034 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addBlogsStatsUser(blogsStatsUser);
037 }
038
039 public static com.liferay.portlet.blogs.model.BlogsStatsUser createBlogsStatsUser(
040 long statsUserId) {
041 return getService().createBlogsStatsUser(statsUserId);
042 }
043
044 public static void deleteBlogsStatsUser(long statsUserId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteBlogsStatsUser(statsUserId);
048 }
049
050 public static void deleteBlogsStatsUser(
051 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteBlogsStatsUser(blogsStatsUser);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.blogs.model.BlogsStatsUser getBlogsStatsUser(
087 long statsUserId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getBlogsStatsUser(statsUserId);
091 }
092
093 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getBlogsStatsUsers(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getBlogsStatsUsers(start, end);
097 }
098
099 public static int getBlogsStatsUsersCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getBlogsStatsUsersCount();
102 }
103
104 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
105 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateBlogsStatsUser(blogsStatsUser);
108 }
109
110 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
111 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
112 boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateBlogsStatsUser(blogsStatsUser, merge);
115 }
116
117 public static void deleteStatsUserByGroupId(long groupId)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 getService().deleteStatsUserByGroupId(groupId);
120 }
121
122 public static void deleteStatsUserByUserId(long userId)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 getService().deleteStatsUserByUserId(userId);
125 }
126
127 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
128 long companyId, int start, int end)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getService().getCompanyStatsUsers(companyId, start, end);
131 }
132
133 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
134 long companyId, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getService().getCompanyStatsUsers(companyId, start, end, obc);
138 }
139
140 public static int getCompanyStatsUsersCount(long companyId)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().getCompanyStatsUsersCount(companyId);
143 }
144
145 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupsStatsUsers(
146 long companyId, long groupId, int start, int end)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getService().getGroupsStatsUsers(companyId, groupId, start, end);
149 }
150
151 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
152 long groupId, int start, int end)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().getGroupStatsUsers(groupId, start, end);
155 }
156
157 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
158 long groupId, int start, int end,
159 com.liferay.portal.kernel.util.OrderByComparator obc)
160 throws com.liferay.portal.kernel.exception.SystemException {
161 return getService().getGroupStatsUsers(groupId, start, end, obc);
162 }
163
164 public static int getGroupStatsUsersCount(long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().getGroupStatsUsersCount(groupId);
167 }
168
169 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
170 long organizationId, int start, int end)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().getOrganizationStatsUsers(organizationId, start, end);
173 }
174
175 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
176 long organizationId, int start, int end,
177 com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getService()
180 .getOrganizationStatsUsers(organizationId, start, end, obc);
181 }
182
183 public static int getOrganizationStatsUsersCount(long organizationId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().getOrganizationStatsUsersCount(organizationId);
186 }
187
188 public static com.liferay.portlet.blogs.model.BlogsStatsUser getStatsUser(
189 long groupId, long userId)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getStatsUser(groupId, userId);
193 }
194
195 public static void updateStatsUser(long groupId, long userId)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 getService().updateStatsUser(groupId, userId);
199 }
200
201 public static void updateStatsUser(long groupId, long userId,
202 java.util.Date displayDate)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException {
205 getService().updateStatsUser(groupId, userId, displayDate);
206 }
207
208 public static BlogsStatsUserLocalService getService() {
209 if (_service == null) {
210 _service = (BlogsStatsUserLocalService)PortalBeanLocatorUtil.locate(BlogsStatsUserLocalService.class.getName());
211 }
212
213 return _service;
214 }
215
216 public void setService(BlogsStatsUserLocalService service) {
217 _service = service;
218 }
219
220 private static BlogsStatsUserLocalService _service;
221 }