1
22
23 package com.liferay.portlet.blogs.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterService;
27
28 import com.liferay.portal.PortalException;
29 import com.liferay.portal.SystemException;
30 import com.liferay.portal.kernel.bean.InitializingBean;
31 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
32 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
33 import com.liferay.portal.service.GroupLocalService;
34 import com.liferay.portal.service.GroupService;
35 import com.liferay.portal.service.persistence.GroupFinder;
36 import com.liferay.portal.service.persistence.GroupPersistence;
37
38 import com.liferay.portlet.blogs.model.BlogsStatsUser;
39 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
40 import com.liferay.portlet.blogs.service.BlogsEntryService;
41 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
42 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
43 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
44 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
45 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
46
47 import java.util.List;
48
49
55 public abstract class BlogsStatsUserLocalServiceBaseImpl
56 implements BlogsStatsUserLocalService, InitializingBean {
57 public BlogsStatsUser addBlogsStatsUser(BlogsStatsUser blogsStatsUser)
58 throws SystemException {
59 blogsStatsUser.setNew(true);
60
61 return blogsStatsUserPersistence.update(blogsStatsUser, false);
62 }
63
64 public void deleteBlogsStatsUser(long statsUserId)
65 throws PortalException, SystemException {
66 blogsStatsUserPersistence.remove(statsUserId);
67 }
68
69 public void deleteBlogsStatsUser(BlogsStatsUser blogsStatsUser)
70 throws SystemException {
71 blogsStatsUserPersistence.remove(blogsStatsUser);
72 }
73
74 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
75 throws SystemException {
76 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
77 }
78
79 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
80 int end) throws SystemException {
81 return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
82 start, end);
83 }
84
85 public BlogsStatsUser getBlogsStatsUser(long statsUserId)
86 throws PortalException, SystemException {
87 return blogsStatsUserPersistence.findByPrimaryKey(statsUserId);
88 }
89
90 public List<BlogsStatsUser> getBlogsStatsUsers(int start, int end)
91 throws SystemException {
92 return blogsStatsUserPersistence.findAll(start, end);
93 }
94
95 public int getBlogsStatsUsersCount() throws SystemException {
96 return blogsStatsUserPersistence.countAll();
97 }
98
99 public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser)
100 throws SystemException {
101 blogsStatsUser.setNew(false);
102
103 return blogsStatsUserPersistence.update(blogsStatsUser, true);
104 }
105
106 public BlogsEntryLocalService getBlogsEntryLocalService() {
107 return blogsEntryLocalService;
108 }
109
110 public void setBlogsEntryLocalService(
111 BlogsEntryLocalService blogsEntryLocalService) {
112 this.blogsEntryLocalService = blogsEntryLocalService;
113 }
114
115 public BlogsEntryService getBlogsEntryService() {
116 return blogsEntryService;
117 }
118
119 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
120 this.blogsEntryService = blogsEntryService;
121 }
122
123 public BlogsEntryPersistence getBlogsEntryPersistence() {
124 return blogsEntryPersistence;
125 }
126
127 public void setBlogsEntryPersistence(
128 BlogsEntryPersistence blogsEntryPersistence) {
129 this.blogsEntryPersistence = blogsEntryPersistence;
130 }
131
132 public BlogsEntryFinder getBlogsEntryFinder() {
133 return blogsEntryFinder;
134 }
135
136 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
137 this.blogsEntryFinder = blogsEntryFinder;
138 }
139
140 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
141 return blogsStatsUserPersistence;
142 }
143
144 public void setBlogsStatsUserPersistence(
145 BlogsStatsUserPersistence blogsStatsUserPersistence) {
146 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
147 }
148
149 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
150 return blogsStatsUserFinder;
151 }
152
153 public void setBlogsStatsUserFinder(
154 BlogsStatsUserFinder blogsStatsUserFinder) {
155 this.blogsStatsUserFinder = blogsStatsUserFinder;
156 }
157
158 public CounterLocalService getCounterLocalService() {
159 return counterLocalService;
160 }
161
162 public void setCounterLocalService(CounterLocalService counterLocalService) {
163 this.counterLocalService = counterLocalService;
164 }
165
166 public CounterService getCounterService() {
167 return counterService;
168 }
169
170 public void setCounterService(CounterService counterService) {
171 this.counterService = counterService;
172 }
173
174 public GroupLocalService getGroupLocalService() {
175 return groupLocalService;
176 }
177
178 public void setGroupLocalService(GroupLocalService groupLocalService) {
179 this.groupLocalService = groupLocalService;
180 }
181
182 public GroupService getGroupService() {
183 return groupService;
184 }
185
186 public void setGroupService(GroupService groupService) {
187 this.groupService = groupService;
188 }
189
190 public GroupPersistence getGroupPersistence() {
191 return groupPersistence;
192 }
193
194 public void setGroupPersistence(GroupPersistence groupPersistence) {
195 this.groupPersistence = groupPersistence;
196 }
197
198 public GroupFinder getGroupFinder() {
199 return groupFinder;
200 }
201
202 public void setGroupFinder(GroupFinder groupFinder) {
203 this.groupFinder = groupFinder;
204 }
205
206 public void afterPropertiesSet() {
207 if (blogsEntryLocalService == null) {
208 blogsEntryLocalService = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName() +
209 ".impl");
210 }
211
212 if (blogsEntryService == null) {
213 blogsEntryService = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName() +
214 ".impl");
215 }
216
217 if (blogsEntryPersistence == null) {
218 blogsEntryPersistence = (BlogsEntryPersistence)PortalBeanLocatorUtil.locate(BlogsEntryPersistence.class.getName() +
219 ".impl");
220 }
221
222 if (blogsEntryFinder == null) {
223 blogsEntryFinder = (BlogsEntryFinder)PortalBeanLocatorUtil.locate(BlogsEntryFinder.class.getName() +
224 ".impl");
225 }
226
227 if (blogsStatsUserPersistence == null) {
228 blogsStatsUserPersistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName() +
229 ".impl");
230 }
231
232 if (blogsStatsUserFinder == null) {
233 blogsStatsUserFinder = (BlogsStatsUserFinder)PortalBeanLocatorUtil.locate(BlogsStatsUserFinder.class.getName() +
234 ".impl");
235 }
236
237 if (counterLocalService == null) {
238 counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
239 ".impl");
240 }
241
242 if (counterService == null) {
243 counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
244 ".impl");
245 }
246
247 if (groupLocalService == null) {
248 groupLocalService = (GroupLocalService)PortalBeanLocatorUtil.locate(GroupLocalService.class.getName() +
249 ".impl");
250 }
251
252 if (groupService == null) {
253 groupService = (GroupService)PortalBeanLocatorUtil.locate(GroupService.class.getName() +
254 ".impl");
255 }
256
257 if (groupPersistence == null) {
258 groupPersistence = (GroupPersistence)PortalBeanLocatorUtil.locate(GroupPersistence.class.getName() +
259 ".impl");
260 }
261
262 if (groupFinder == null) {
263 groupFinder = (GroupFinder)PortalBeanLocatorUtil.locate(GroupFinder.class.getName() +
264 ".impl");
265 }
266 }
267
268 protected BlogsEntryLocalService blogsEntryLocalService;
269 protected BlogsEntryService blogsEntryService;
270 protected BlogsEntryPersistence blogsEntryPersistence;
271 protected BlogsEntryFinder blogsEntryFinder;
272 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
273 protected BlogsStatsUserFinder blogsStatsUserFinder;
274 protected CounterLocalService counterLocalService;
275 protected CounterService counterService;
276 protected GroupLocalService groupLocalService;
277 protected GroupService groupService;
278 protected GroupPersistence groupPersistence;
279 protected GroupFinder groupFinder;
280 }