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