1
19
20 package com.liferay.portlet.tags.service.base;
21
22 import com.liferay.counter.service.CounterLocalService;
23 import com.liferay.counter.service.CounterService;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
29 import com.liferay.portal.service.ResourceLocalService;
30 import com.liferay.portal.service.ResourceService;
31 import com.liferay.portal.service.UserLocalService;
32 import com.liferay.portal.service.UserService;
33 import com.liferay.portal.service.persistence.ResourceFinder;
34 import com.liferay.portal.service.persistence.ResourcePersistence;
35 import com.liferay.portal.service.persistence.UserFinder;
36 import com.liferay.portal.service.persistence.UserPersistence;
37 import com.liferay.portal.util.PortalUtil;
38
39 import com.liferay.portlet.tags.model.TagsEntry;
40 import com.liferay.portlet.tags.service.TagsAssetLocalService;
41 import com.liferay.portlet.tags.service.TagsAssetService;
42 import com.liferay.portlet.tags.service.TagsEntryLocalService;
43 import com.liferay.portlet.tags.service.TagsEntryService;
44 import com.liferay.portlet.tags.service.TagsPropertyLocalService;
45 import com.liferay.portlet.tags.service.TagsPropertyService;
46 import com.liferay.portlet.tags.service.TagsSourceLocalService;
47 import com.liferay.portlet.tags.service.TagsSourceService;
48 import com.liferay.portlet.tags.service.TagsVocabularyLocalService;
49 import com.liferay.portlet.tags.service.TagsVocabularyService;
50 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
51 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
52 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
53 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
54 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
55 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
56 import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
57 import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
58 import com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence;
59
60 import java.util.List;
61
62
68 public abstract class TagsEntryLocalServiceBaseImpl
69 implements TagsEntryLocalService {
70 public TagsEntry addTagsEntry(TagsEntry tagsEntry)
71 throws SystemException {
72 tagsEntry.setNew(true);
73
74 return tagsEntryPersistence.update(tagsEntry, false);
75 }
76
77 public TagsEntry createTagsEntry(long entryId) {
78 return tagsEntryPersistence.create(entryId);
79 }
80
81 public void deleteTagsEntry(long entryId)
82 throws PortalException, SystemException {
83 tagsEntryPersistence.remove(entryId);
84 }
85
86 public void deleteTagsEntry(TagsEntry tagsEntry) throws SystemException {
87 tagsEntryPersistence.remove(tagsEntry);
88 }
89
90 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
91 throws SystemException {
92 return tagsEntryPersistence.findWithDynamicQuery(dynamicQuery);
93 }
94
95 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
96 int end) throws SystemException {
97 return tagsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
98 end);
99 }
100
101 public TagsEntry getTagsEntry(long entryId)
102 throws PortalException, SystemException {
103 return tagsEntryPersistence.findByPrimaryKey(entryId);
104 }
105
106 public List<TagsEntry> getTagsEntries(int start, int end)
107 throws SystemException {
108 return tagsEntryPersistence.findAll(start, end);
109 }
110
111 public int getTagsEntriesCount() throws SystemException {
112 return tagsEntryPersistence.countAll();
113 }
114
115 public TagsEntry updateTagsEntry(TagsEntry tagsEntry)
116 throws SystemException {
117 tagsEntry.setNew(false);
118
119 return tagsEntryPersistence.update(tagsEntry, true);
120 }
121
122 public TagsEntry updateTagsEntry(TagsEntry tagsEntry, boolean merge)
123 throws SystemException {
124 tagsEntry.setNew(false);
125
126 return tagsEntryPersistence.update(tagsEntry, merge);
127 }
128
129 public TagsAssetLocalService getTagsAssetLocalService() {
130 return tagsAssetLocalService;
131 }
132
133 public void setTagsAssetLocalService(
134 TagsAssetLocalService tagsAssetLocalService) {
135 this.tagsAssetLocalService = tagsAssetLocalService;
136 }
137
138 public TagsAssetService getTagsAssetService() {
139 return tagsAssetService;
140 }
141
142 public void setTagsAssetService(TagsAssetService tagsAssetService) {
143 this.tagsAssetService = tagsAssetService;
144 }
145
146 public TagsAssetPersistence getTagsAssetPersistence() {
147 return tagsAssetPersistence;
148 }
149
150 public void setTagsAssetPersistence(
151 TagsAssetPersistence tagsAssetPersistence) {
152 this.tagsAssetPersistence = tagsAssetPersistence;
153 }
154
155 public TagsAssetFinder getTagsAssetFinder() {
156 return tagsAssetFinder;
157 }
158
159 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
160 this.tagsAssetFinder = tagsAssetFinder;
161 }
162
163 public TagsEntryLocalService getTagsEntryLocalService() {
164 return tagsEntryLocalService;
165 }
166
167 public void setTagsEntryLocalService(
168 TagsEntryLocalService tagsEntryLocalService) {
169 this.tagsEntryLocalService = tagsEntryLocalService;
170 }
171
172 public TagsEntryService getTagsEntryService() {
173 return tagsEntryService;
174 }
175
176 public void setTagsEntryService(TagsEntryService tagsEntryService) {
177 this.tagsEntryService = tagsEntryService;
178 }
179
180 public TagsEntryPersistence getTagsEntryPersistence() {
181 return tagsEntryPersistence;
182 }
183
184 public void setTagsEntryPersistence(
185 TagsEntryPersistence tagsEntryPersistence) {
186 this.tagsEntryPersistence = tagsEntryPersistence;
187 }
188
189 public TagsEntryFinder getTagsEntryFinder() {
190 return tagsEntryFinder;
191 }
192
193 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
194 this.tagsEntryFinder = tagsEntryFinder;
195 }
196
197 public TagsPropertyLocalService getTagsPropertyLocalService() {
198 return tagsPropertyLocalService;
199 }
200
201 public void setTagsPropertyLocalService(
202 TagsPropertyLocalService tagsPropertyLocalService) {
203 this.tagsPropertyLocalService = tagsPropertyLocalService;
204 }
205
206 public TagsPropertyService getTagsPropertyService() {
207 return tagsPropertyService;
208 }
209
210 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
211 this.tagsPropertyService = tagsPropertyService;
212 }
213
214 public TagsPropertyPersistence getTagsPropertyPersistence() {
215 return tagsPropertyPersistence;
216 }
217
218 public void setTagsPropertyPersistence(
219 TagsPropertyPersistence tagsPropertyPersistence) {
220 this.tagsPropertyPersistence = tagsPropertyPersistence;
221 }
222
223 public TagsPropertyFinder getTagsPropertyFinder() {
224 return tagsPropertyFinder;
225 }
226
227 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
228 this.tagsPropertyFinder = tagsPropertyFinder;
229 }
230
231 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
232 return tagsPropertyKeyFinder;
233 }
234
235 public void setTagsPropertyKeyFinder(
236 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
237 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
238 }
239
240 public TagsSourceLocalService getTagsSourceLocalService() {
241 return tagsSourceLocalService;
242 }
243
244 public void setTagsSourceLocalService(
245 TagsSourceLocalService tagsSourceLocalService) {
246 this.tagsSourceLocalService = tagsSourceLocalService;
247 }
248
249 public TagsSourceService getTagsSourceService() {
250 return tagsSourceService;
251 }
252
253 public void setTagsSourceService(TagsSourceService tagsSourceService) {
254 this.tagsSourceService = tagsSourceService;
255 }
256
257 public TagsSourcePersistence getTagsSourcePersistence() {
258 return tagsSourcePersistence;
259 }
260
261 public void setTagsSourcePersistence(
262 TagsSourcePersistence tagsSourcePersistence) {
263 this.tagsSourcePersistence = tagsSourcePersistence;
264 }
265
266 public TagsVocabularyLocalService getTagsVocabularyLocalService() {
267 return tagsVocabularyLocalService;
268 }
269
270 public void setTagsVocabularyLocalService(
271 TagsVocabularyLocalService tagsVocabularyLocalService) {
272 this.tagsVocabularyLocalService = tagsVocabularyLocalService;
273 }
274
275 public TagsVocabularyService getTagsVocabularyService() {
276 return tagsVocabularyService;
277 }
278
279 public void setTagsVocabularyService(
280 TagsVocabularyService tagsVocabularyService) {
281 this.tagsVocabularyService = tagsVocabularyService;
282 }
283
284 public TagsVocabularyPersistence getTagsVocabularyPersistence() {
285 return tagsVocabularyPersistence;
286 }
287
288 public void setTagsVocabularyPersistence(
289 TagsVocabularyPersistence tagsVocabularyPersistence) {
290 this.tagsVocabularyPersistence = tagsVocabularyPersistence;
291 }
292
293 public CounterLocalService getCounterLocalService() {
294 return counterLocalService;
295 }
296
297 public void setCounterLocalService(CounterLocalService counterLocalService) {
298 this.counterLocalService = counterLocalService;
299 }
300
301 public CounterService getCounterService() {
302 return counterService;
303 }
304
305 public void setCounterService(CounterService counterService) {
306 this.counterService = counterService;
307 }
308
309 public ResourceLocalService getResourceLocalService() {
310 return resourceLocalService;
311 }
312
313 public void setResourceLocalService(
314 ResourceLocalService resourceLocalService) {
315 this.resourceLocalService = resourceLocalService;
316 }
317
318 public ResourceService getResourceService() {
319 return resourceService;
320 }
321
322 public void setResourceService(ResourceService resourceService) {
323 this.resourceService = resourceService;
324 }
325
326 public ResourcePersistence getResourcePersistence() {
327 return resourcePersistence;
328 }
329
330 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
331 this.resourcePersistence = resourcePersistence;
332 }
333
334 public ResourceFinder getResourceFinder() {
335 return resourceFinder;
336 }
337
338 public void setResourceFinder(ResourceFinder resourceFinder) {
339 this.resourceFinder = resourceFinder;
340 }
341
342 public UserLocalService getUserLocalService() {
343 return userLocalService;
344 }
345
346 public void setUserLocalService(UserLocalService userLocalService) {
347 this.userLocalService = userLocalService;
348 }
349
350 public UserService getUserService() {
351 return userService;
352 }
353
354 public void setUserService(UserService userService) {
355 this.userService = userService;
356 }
357
358 public UserPersistence getUserPersistence() {
359 return userPersistence;
360 }
361
362 public void setUserPersistence(UserPersistence userPersistence) {
363 this.userPersistence = userPersistence;
364 }
365
366 public UserFinder getUserFinder() {
367 return userFinder;
368 }
369
370 public void setUserFinder(UserFinder userFinder) {
371 this.userFinder = userFinder;
372 }
373
374 protected void runSQL(String sql) throws SystemException {
375 try {
376 PortalUtil.runSQL(sql);
377 }
378 catch (Exception e) {
379 throw new SystemException(e);
380 }
381 }
382
383 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
384 protected TagsAssetLocalService tagsAssetLocalService;
385 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
386 protected TagsAssetService tagsAssetService;
387 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
388 protected TagsAssetPersistence tagsAssetPersistence;
389 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
390 protected TagsAssetFinder tagsAssetFinder;
391 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
392 protected TagsEntryLocalService tagsEntryLocalService;
393 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
394 protected TagsEntryService tagsEntryService;
395 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
396 protected TagsEntryPersistence tagsEntryPersistence;
397 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
398 protected TagsEntryFinder tagsEntryFinder;
399 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
400 protected TagsPropertyLocalService tagsPropertyLocalService;
401 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
402 protected TagsPropertyService tagsPropertyService;
403 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
404 protected TagsPropertyPersistence tagsPropertyPersistence;
405 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
406 protected TagsPropertyFinder tagsPropertyFinder;
407 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
408 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
409 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
410 protected TagsSourceLocalService tagsSourceLocalService;
411 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
412 protected TagsSourceService tagsSourceService;
413 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
414 protected TagsSourcePersistence tagsSourcePersistence;
415 @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyLocalService.impl")
416 protected TagsVocabularyLocalService tagsVocabularyLocalService;
417 @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyService.impl")
418 protected TagsVocabularyService tagsVocabularyService;
419 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence.impl")
420 protected TagsVocabularyPersistence tagsVocabularyPersistence;
421 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
422 protected CounterLocalService counterLocalService;
423 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
424 protected CounterService counterService;
425 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService.impl")
426 protected ResourceLocalService resourceLocalService;
427 @BeanReference(name = "com.liferay.portal.service.ResourceService.impl")
428 protected ResourceService resourceService;
429 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
430 protected ResourcePersistence resourcePersistence;
431 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
432 protected ResourceFinder resourceFinder;
433 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
434 protected UserLocalService userLocalService;
435 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
436 protected UserService userService;
437 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
438 protected UserPersistence userPersistence;
439 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
440 protected UserFinder userFinder;
441 }