1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.blogs.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="BlogsStatsUserLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link BlogsStatsUserLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       BlogsStatsUserLocalService
39   * @generated
40   */
41  public class BlogsStatsUserLocalServiceUtil {
42      public static com.liferay.portlet.blogs.model.BlogsStatsUser addBlogsStatsUser(
43          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
44          throws com.liferay.portal.SystemException {
45          return getService().addBlogsStatsUser(blogsStatsUser);
46      }
47  
48      public static com.liferay.portlet.blogs.model.BlogsStatsUser createBlogsStatsUser(
49          long statsUserId) {
50          return getService().createBlogsStatsUser(statsUserId);
51      }
52  
53      public static void deleteBlogsStatsUser(long statsUserId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteBlogsStatsUser(statsUserId);
57      }
58  
59      public static void deleteBlogsStatsUser(
60          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
61          throws com.liferay.portal.SystemException {
62          getService().deleteBlogsStatsUser(blogsStatsUser);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.blogs.model.BlogsStatsUser getBlogsStatsUser(
96          long statsUserId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getBlogsStatsUser(statsUserId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getBlogsStatsUsers(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getBlogsStatsUsers(start, end);
105     }
106 
107     public static int getBlogsStatsUsersCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getBlogsStatsUsersCount();
110     }
111 
112     public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
113         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
114         throws com.liferay.portal.SystemException {
115         return getService().updateBlogsStatsUser(blogsStatsUser);
116     }
117 
118     public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
119         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getService().updateBlogsStatsUser(blogsStatsUser, merge);
122     }
123 
124     public static void deleteStatsUserByGroupId(long groupId)
125         throws com.liferay.portal.SystemException {
126         getService().deleteStatsUserByGroupId(groupId);
127     }
128 
129     public static void deleteStatsUserByUserId(long userId)
130         throws com.liferay.portal.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.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.SystemException {
144         return getService().getCompanyStatsUsers(companyId, start, end, obc);
145     }
146 
147     public static int getCompanyStatsUsersCount(long companyId)
148         throws com.liferay.portal.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.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.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.SystemException {
168         return getService().getGroupStatsUsers(groupId, start, end, obc);
169     }
170 
171     public static int getGroupStatsUsersCount(long groupId)
172         throws com.liferay.portal.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.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.SystemException {
186         return getService()
187                    .getOrganizationStatsUsers(organizationId, start, end, obc);
188     }
189 
190     public static int getOrganizationStatsUsersCount(long organizationId)
191         throws com.liferay.portal.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.PortalException,
198             com.liferay.portal.SystemException {
199         return getService().getStatsUser(groupId, userId);
200     }
201 
202     public static void updateStatsUser(long groupId, long userId)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.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.PortalException,
211             com.liferay.portal.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             ReferenceRegistry.registerReference(BlogsStatsUserLocalServiceUtil.class,
220                 "_service");
221             MethodCache.remove(BlogsStatsUserLocalService.class);
222         }
223 
224         return _service;
225     }
226 
227     public void setService(BlogsStatsUserLocalService service) {
228         MethodCache.remove(BlogsStatsUserLocalService.class);
229 
230         _service = service;
231 
232         ReferenceRegistry.registerReference(BlogsStatsUserLocalServiceUtil.class,
233             "_service");
234         MethodCache.remove(BlogsStatsUserLocalService.class);
235     }
236 
237     private static BlogsStatsUserLocalService _service;
238 }