1
22
23 package com.liferay.portlet.tags.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.UserLocalService;
34 import com.liferay.portal.service.UserService;
35 import com.liferay.portal.service.persistence.UserFinder;
36 import com.liferay.portal.service.persistence.UserPersistence;
37
38 import com.liferay.portlet.tags.model.TagsEntry;
39 import com.liferay.portlet.tags.service.TagsAssetLocalService;
40 import com.liferay.portlet.tags.service.TagsAssetService;
41 import com.liferay.portlet.tags.service.TagsEntryLocalService;
42 import com.liferay.portlet.tags.service.TagsPropertyLocalService;
43 import com.liferay.portlet.tags.service.TagsPropertyService;
44 import com.liferay.portlet.tags.service.TagsSourceLocalService;
45 import com.liferay.portlet.tags.service.TagsSourceService;
46 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
47 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
48 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
49 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
50 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
51 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
52 import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
53 import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
54
55 import java.util.List;
56
57
63 public abstract class TagsEntryLocalServiceBaseImpl
64 implements TagsEntryLocalService, InitializingBean {
65 public TagsEntry addTagsEntry(TagsEntry tagsEntry)
66 throws SystemException {
67 tagsEntry.setNew(true);
68
69 return tagsEntryPersistence.update(tagsEntry, false);
70 }
71
72 public void deleteTagsEntry(long entryId)
73 throws PortalException, SystemException {
74 tagsEntryPersistence.remove(entryId);
75 }
76
77 public void deleteTagsEntry(TagsEntry tagsEntry) throws SystemException {
78 tagsEntryPersistence.remove(tagsEntry);
79 }
80
81 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
82 throws SystemException {
83 return tagsEntryPersistence.findWithDynamicQuery(dynamicQuery);
84 }
85
86 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
87 int end) throws SystemException {
88 return tagsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
89 end);
90 }
91
92 public TagsEntry getTagsEntry(long entryId)
93 throws PortalException, SystemException {
94 return tagsEntryPersistence.findByPrimaryKey(entryId);
95 }
96
97 public List<TagsEntry> getTagsEntries(int start, int end)
98 throws SystemException {
99 return tagsEntryPersistence.findAll(start, end);
100 }
101
102 public int getTagsEntriesCount() throws SystemException {
103 return tagsEntryPersistence.countAll();
104 }
105
106 public TagsEntry updateTagsEntry(TagsEntry tagsEntry)
107 throws SystemException {
108 tagsEntry.setNew(false);
109
110 return tagsEntryPersistence.update(tagsEntry, true);
111 }
112
113 public TagsAssetLocalService getTagsAssetLocalService() {
114 return tagsAssetLocalService;
115 }
116
117 public void setTagsAssetLocalService(
118 TagsAssetLocalService tagsAssetLocalService) {
119 this.tagsAssetLocalService = tagsAssetLocalService;
120 }
121
122 public TagsAssetService getTagsAssetService() {
123 return tagsAssetService;
124 }
125
126 public void setTagsAssetService(TagsAssetService tagsAssetService) {
127 this.tagsAssetService = tagsAssetService;
128 }
129
130 public TagsAssetPersistence getTagsAssetPersistence() {
131 return tagsAssetPersistence;
132 }
133
134 public void setTagsAssetPersistence(
135 TagsAssetPersistence tagsAssetPersistence) {
136 this.tagsAssetPersistence = tagsAssetPersistence;
137 }
138
139 public TagsAssetFinder getTagsAssetFinder() {
140 return tagsAssetFinder;
141 }
142
143 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
144 this.tagsAssetFinder = tagsAssetFinder;
145 }
146
147 public TagsEntryPersistence getTagsEntryPersistence() {
148 return tagsEntryPersistence;
149 }
150
151 public void setTagsEntryPersistence(
152 TagsEntryPersistence tagsEntryPersistence) {
153 this.tagsEntryPersistence = tagsEntryPersistence;
154 }
155
156 public TagsEntryFinder getTagsEntryFinder() {
157 return tagsEntryFinder;
158 }
159
160 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
161 this.tagsEntryFinder = tagsEntryFinder;
162 }
163
164 public TagsPropertyLocalService getTagsPropertyLocalService() {
165 return tagsPropertyLocalService;
166 }
167
168 public void setTagsPropertyLocalService(
169 TagsPropertyLocalService tagsPropertyLocalService) {
170 this.tagsPropertyLocalService = tagsPropertyLocalService;
171 }
172
173 public TagsPropertyService getTagsPropertyService() {
174 return tagsPropertyService;
175 }
176
177 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
178 this.tagsPropertyService = tagsPropertyService;
179 }
180
181 public TagsPropertyPersistence getTagsPropertyPersistence() {
182 return tagsPropertyPersistence;
183 }
184
185 public void setTagsPropertyPersistence(
186 TagsPropertyPersistence tagsPropertyPersistence) {
187 this.tagsPropertyPersistence = tagsPropertyPersistence;
188 }
189
190 public TagsPropertyFinder getTagsPropertyFinder() {
191 return tagsPropertyFinder;
192 }
193
194 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
195 this.tagsPropertyFinder = tagsPropertyFinder;
196 }
197
198 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
199 return tagsPropertyKeyFinder;
200 }
201
202 public void setTagsPropertyKeyFinder(
203 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
204 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
205 }
206
207 public TagsSourceLocalService getTagsSourceLocalService() {
208 return tagsSourceLocalService;
209 }
210
211 public void setTagsSourceLocalService(
212 TagsSourceLocalService tagsSourceLocalService) {
213 this.tagsSourceLocalService = tagsSourceLocalService;
214 }
215
216 public TagsSourceService getTagsSourceService() {
217 return tagsSourceService;
218 }
219
220 public void setTagsSourceService(TagsSourceService tagsSourceService) {
221 this.tagsSourceService = tagsSourceService;
222 }
223
224 public TagsSourcePersistence getTagsSourcePersistence() {
225 return tagsSourcePersistence;
226 }
227
228 public void setTagsSourcePersistence(
229 TagsSourcePersistence tagsSourcePersistence) {
230 this.tagsSourcePersistence = tagsSourcePersistence;
231 }
232
233 public CounterLocalService getCounterLocalService() {
234 return counterLocalService;
235 }
236
237 public void setCounterLocalService(CounterLocalService counterLocalService) {
238 this.counterLocalService = counterLocalService;
239 }
240
241 public CounterService getCounterService() {
242 return counterService;
243 }
244
245 public void setCounterService(CounterService counterService) {
246 this.counterService = counterService;
247 }
248
249 public UserLocalService getUserLocalService() {
250 return userLocalService;
251 }
252
253 public void setUserLocalService(UserLocalService userLocalService) {
254 this.userLocalService = userLocalService;
255 }
256
257 public UserService getUserService() {
258 return userService;
259 }
260
261 public void setUserService(UserService userService) {
262 this.userService = userService;
263 }
264
265 public UserPersistence getUserPersistence() {
266 return userPersistence;
267 }
268
269 public void setUserPersistence(UserPersistence userPersistence) {
270 this.userPersistence = userPersistence;
271 }
272
273 public UserFinder getUserFinder() {
274 return userFinder;
275 }
276
277 public void setUserFinder(UserFinder userFinder) {
278 this.userFinder = userFinder;
279 }
280
281 public void afterPropertiesSet() {
282 if (tagsAssetLocalService == null) {
283 tagsAssetLocalService = (TagsAssetLocalService)PortalBeanLocatorUtil.locate(TagsAssetLocalService.class.getName() +
284 ".impl");
285 }
286
287 if (tagsAssetService == null) {
288 tagsAssetService = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName() +
289 ".impl");
290 }
291
292 if (tagsAssetPersistence == null) {
293 tagsAssetPersistence = (TagsAssetPersistence)PortalBeanLocatorUtil.locate(TagsAssetPersistence.class.getName() +
294 ".impl");
295 }
296
297 if (tagsAssetFinder == null) {
298 tagsAssetFinder = (TagsAssetFinder)PortalBeanLocatorUtil.locate(TagsAssetFinder.class.getName() +
299 ".impl");
300 }
301
302 if (tagsEntryPersistence == null) {
303 tagsEntryPersistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName() +
304 ".impl");
305 }
306
307 if (tagsEntryFinder == null) {
308 tagsEntryFinder = (TagsEntryFinder)PortalBeanLocatorUtil.locate(TagsEntryFinder.class.getName() +
309 ".impl");
310 }
311
312 if (tagsPropertyLocalService == null) {
313 tagsPropertyLocalService = (TagsPropertyLocalService)PortalBeanLocatorUtil.locate(TagsPropertyLocalService.class.getName() +
314 ".impl");
315 }
316
317 if (tagsPropertyService == null) {
318 tagsPropertyService = (TagsPropertyService)PortalBeanLocatorUtil.locate(TagsPropertyService.class.getName() +
319 ".impl");
320 }
321
322 if (tagsPropertyPersistence == null) {
323 tagsPropertyPersistence = (TagsPropertyPersistence)PortalBeanLocatorUtil.locate(TagsPropertyPersistence.class.getName() +
324 ".impl");
325 }
326
327 if (tagsPropertyFinder == null) {
328 tagsPropertyFinder = (TagsPropertyFinder)PortalBeanLocatorUtil.locate(TagsPropertyFinder.class.getName() +
329 ".impl");
330 }
331
332 if (tagsPropertyKeyFinder == null) {
333 tagsPropertyKeyFinder = (TagsPropertyKeyFinder)PortalBeanLocatorUtil.locate(TagsPropertyKeyFinder.class.getName() +
334 ".impl");
335 }
336
337 if (tagsSourceLocalService == null) {
338 tagsSourceLocalService = (TagsSourceLocalService)PortalBeanLocatorUtil.locate(TagsSourceLocalService.class.getName() +
339 ".impl");
340 }
341
342 if (tagsSourceService == null) {
343 tagsSourceService = (TagsSourceService)PortalBeanLocatorUtil.locate(TagsSourceService.class.getName() +
344 ".impl");
345 }
346
347 if (tagsSourcePersistence == null) {
348 tagsSourcePersistence = (TagsSourcePersistence)PortalBeanLocatorUtil.locate(TagsSourcePersistence.class.getName() +
349 ".impl");
350 }
351
352 if (counterLocalService == null) {
353 counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
354 ".impl");
355 }
356
357 if (counterService == null) {
358 counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
359 ".impl");
360 }
361
362 if (userLocalService == null) {
363 userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
364 ".impl");
365 }
366
367 if (userService == null) {
368 userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
369 ".impl");
370 }
371
372 if (userPersistence == null) {
373 userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
374 ".impl");
375 }
376
377 if (userFinder == null) {
378 userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
379 ".impl");
380 }
381 }
382
383 protected TagsAssetLocalService tagsAssetLocalService;
384 protected TagsAssetService tagsAssetService;
385 protected TagsAssetPersistence tagsAssetPersistence;
386 protected TagsAssetFinder tagsAssetFinder;
387 protected TagsEntryPersistence tagsEntryPersistence;
388 protected TagsEntryFinder tagsEntryFinder;
389 protected TagsPropertyLocalService tagsPropertyLocalService;
390 protected TagsPropertyService tagsPropertyService;
391 protected TagsPropertyPersistence tagsPropertyPersistence;
392 protected TagsPropertyFinder tagsPropertyFinder;
393 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
394 protected TagsSourceLocalService tagsSourceLocalService;
395 protected TagsSourceService tagsSourceService;
396 protected TagsSourcePersistence tagsSourcePersistence;
397 protected CounterLocalService counterLocalService;
398 protected CounterService counterService;
399 protected UserLocalService userLocalService;
400 protected UserService userService;
401 protected UserPersistence userPersistence;
402 protected UserFinder userFinder;
403 }