1
22
23 package com.liferay.portlet.blogs.service;
24
25
51 public class BlogsStatsUserLocalServiceUtil {
52 public static com.liferay.portlet.blogs.model.BlogsStatsUser addBlogsStatsUser(
53 com.liferay.portlet.blogs.model.BlogsStatsUser model)
54 throws com.liferay.portal.SystemException {
55 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
56
57 return blogsStatsUserLocalService.addBlogsStatsUser(model);
58 }
59
60 public static java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62 throws com.liferay.portal.SystemException {
63 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
64
65 return blogsStatsUserLocalService.dynamicQuery(queryInitializer);
66 }
67
68 public static java.util.List dynamicQuery(
69 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70 int begin, int end) throws com.liferay.portal.SystemException {
71 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
72
73 return blogsStatsUserLocalService.dynamicQuery(queryInitializer, begin,
74 end);
75 }
76
77 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
78 com.liferay.portlet.blogs.model.BlogsStatsUser model)
79 throws com.liferay.portal.SystemException {
80 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
81
82 return blogsStatsUserLocalService.updateBlogsStatsUser(model);
83 }
84
85 public static void deleteStatsUserByGroupId(long groupId)
86 throws com.liferay.portal.SystemException {
87 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
88 blogsStatsUserLocalService.deleteStatsUserByGroupId(groupId);
89 }
90
91 public static void deleteStatsUserByUserId(long userId)
92 throws com.liferay.portal.SystemException {
93 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
94 blogsStatsUserLocalService.deleteStatsUserByUserId(userId);
95 }
96
97 public static java.util.List getCompanyStatsUsers(long companyId,
98 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException {
100 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
101
102 return blogsStatsUserLocalService.getCompanyStatsUsers(companyId,
103 begin, end, obc);
104 }
105
106 public static int getCompanyStatsUsersCount(long companyId)
107 throws com.liferay.portal.SystemException {
108 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
109
110 return blogsStatsUserLocalService.getCompanyStatsUsersCount(companyId);
111 }
112
113 public static java.util.List getGroupStatsUsers(long groupId, int begin,
114 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException {
116 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
117
118 return blogsStatsUserLocalService.getGroupStatsUsers(groupId, begin,
119 end, obc);
120 }
121
122 public static int getGroupStatsUsersCount(long groupId)
123 throws com.liferay.portal.SystemException {
124 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
125
126 return blogsStatsUserLocalService.getGroupStatsUsersCount(groupId);
127 }
128
129 public static java.util.List getOrganizationStatsUsers(
130 long organizationId, int begin, int end,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException {
133 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
134
135 return blogsStatsUserLocalService.getOrganizationStatsUsers(organizationId,
136 begin, end, obc);
137 }
138
139 public static int getOrganizationStatsUsersCount(long organizationId)
140 throws com.liferay.portal.SystemException {
141 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
142
143 return blogsStatsUserLocalService.getOrganizationStatsUsersCount(organizationId);
144 }
145
146 public static com.liferay.portlet.blogs.model.BlogsStatsUser getStatsUser(
147 long groupId, long userId)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
151
152 return blogsStatsUserLocalService.getStatsUser(groupId, userId);
153 }
154
155 public static void updateStatsUser(long groupId, long userId,
156 java.util.Date lastPostDate)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 BlogsStatsUserLocalService blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getService();
160 blogsStatsUserLocalService.updateStatsUser(groupId, userId, lastPostDate);
161 }
162 }