1
14
15 package com.liferay.portlet.asset.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18
19 import com.liferay.portal.kernel.annotation.BeanReference;
20 import com.liferay.portal.kernel.dao.db.DB;
21 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
22 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
23 import com.liferay.portal.kernel.exception.PortalException;
24 import com.liferay.portal.kernel.exception.SystemException;
25 import com.liferay.portal.kernel.util.OrderByComparator;
26 import com.liferay.portal.service.ResourceLocalService;
27 import com.liferay.portal.service.ResourceService;
28 import com.liferay.portal.service.UserLocalService;
29 import com.liferay.portal.service.UserService;
30 import com.liferay.portal.service.persistence.ResourceFinder;
31 import com.liferay.portal.service.persistence.ResourcePersistence;
32 import com.liferay.portal.service.persistence.UserFinder;
33 import com.liferay.portal.service.persistence.UserPersistence;
34
35 import com.liferay.portlet.asset.model.AssetTag;
36 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
37 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
38 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
39 import com.liferay.portlet.asset.service.AssetCategoryService;
40 import com.liferay.portlet.asset.service.AssetEntryLocalService;
41 import com.liferay.portlet.asset.service.AssetEntryService;
42 import com.liferay.portlet.asset.service.AssetLinkLocalService;
43 import com.liferay.portlet.asset.service.AssetTagLocalService;
44 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
45 import com.liferay.portlet.asset.service.AssetTagPropertyService;
46 import com.liferay.portlet.asset.service.AssetTagService;
47 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
48 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
49 import com.liferay.portlet.asset.service.AssetVocabularyService;
50 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
51 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
52 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
53 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
54 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
55 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
56 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
57 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
58 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
59 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
60 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
61 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
62 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
63 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
64
65 import java.util.List;
66
67
73 public abstract class AssetTagLocalServiceBaseImpl
74 implements AssetTagLocalService {
75 public AssetTag addAssetTag(AssetTag assetTag) throws SystemException {
76 assetTag.setNew(true);
77
78 return assetTagPersistence.update(assetTag, false);
79 }
80
81 public AssetTag createAssetTag(long tagId) {
82 return assetTagPersistence.create(tagId);
83 }
84
85 public void deleteAssetTag(long tagId)
86 throws PortalException, SystemException {
87 assetTagPersistence.remove(tagId);
88 }
89
90 public void deleteAssetTag(AssetTag assetTag) throws SystemException {
91 assetTagPersistence.remove(assetTag);
92 }
93
94 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
95 throws SystemException {
96 return assetTagPersistence.findWithDynamicQuery(dynamicQuery);
97 }
98
99 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
100 int end) throws SystemException {
101 return assetTagPersistence.findWithDynamicQuery(dynamicQuery, start, end);
102 }
103
104 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
105 int end, OrderByComparator orderByComparator) throws SystemException {
106 return assetTagPersistence.findWithDynamicQuery(dynamicQuery, start,
107 end, orderByComparator);
108 }
109
110 public int dynamicQueryCount(DynamicQuery dynamicQuery)
111 throws SystemException {
112 return assetTagPersistence.countWithDynamicQuery(dynamicQuery);
113 }
114
115 public AssetTag getAssetTag(long tagId)
116 throws PortalException, SystemException {
117 return assetTagPersistence.findByPrimaryKey(tagId);
118 }
119
120 public List<AssetTag> getAssetTags(int start, int end)
121 throws SystemException {
122 return assetTagPersistence.findAll(start, end);
123 }
124
125 public int getAssetTagsCount() throws SystemException {
126 return assetTagPersistence.countAll();
127 }
128
129 public AssetTag updateAssetTag(AssetTag assetTag) throws SystemException {
130 assetTag.setNew(false);
131
132 return assetTagPersistence.update(assetTag, true);
133 }
134
135 public AssetTag updateAssetTag(AssetTag assetTag, boolean merge)
136 throws SystemException {
137 assetTag.setNew(false);
138
139 return assetTagPersistence.update(assetTag, merge);
140 }
141
142 public AssetCategoryLocalService getAssetCategoryLocalService() {
143 return assetCategoryLocalService;
144 }
145
146 public void setAssetCategoryLocalService(
147 AssetCategoryLocalService assetCategoryLocalService) {
148 this.assetCategoryLocalService = assetCategoryLocalService;
149 }
150
151 public AssetCategoryService getAssetCategoryService() {
152 return assetCategoryService;
153 }
154
155 public void setAssetCategoryService(
156 AssetCategoryService assetCategoryService) {
157 this.assetCategoryService = assetCategoryService;
158 }
159
160 public AssetCategoryPersistence getAssetCategoryPersistence() {
161 return assetCategoryPersistence;
162 }
163
164 public void setAssetCategoryPersistence(
165 AssetCategoryPersistence assetCategoryPersistence) {
166 this.assetCategoryPersistence = assetCategoryPersistence;
167 }
168
169 public AssetCategoryFinder getAssetCategoryFinder() {
170 return assetCategoryFinder;
171 }
172
173 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
174 this.assetCategoryFinder = assetCategoryFinder;
175 }
176
177 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
178 return assetCategoryPropertyLocalService;
179 }
180
181 public void setAssetCategoryPropertyLocalService(
182 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
183 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
184 }
185
186 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
187 return assetCategoryPropertyService;
188 }
189
190 public void setAssetCategoryPropertyService(
191 AssetCategoryPropertyService assetCategoryPropertyService) {
192 this.assetCategoryPropertyService = assetCategoryPropertyService;
193 }
194
195 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
196 return assetCategoryPropertyPersistence;
197 }
198
199 public void setAssetCategoryPropertyPersistence(
200 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
201 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
202 }
203
204 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
205 return assetCategoryPropertyFinder;
206 }
207
208 public void setAssetCategoryPropertyFinder(
209 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
210 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
211 }
212
213 public AssetEntryLocalService getAssetEntryLocalService() {
214 return assetEntryLocalService;
215 }
216
217 public void setAssetEntryLocalService(
218 AssetEntryLocalService assetEntryLocalService) {
219 this.assetEntryLocalService = assetEntryLocalService;
220 }
221
222 public AssetEntryService getAssetEntryService() {
223 return assetEntryService;
224 }
225
226 public void setAssetEntryService(AssetEntryService assetEntryService) {
227 this.assetEntryService = assetEntryService;
228 }
229
230 public AssetEntryPersistence getAssetEntryPersistence() {
231 return assetEntryPersistence;
232 }
233
234 public void setAssetEntryPersistence(
235 AssetEntryPersistence assetEntryPersistence) {
236 this.assetEntryPersistence = assetEntryPersistence;
237 }
238
239 public AssetEntryFinder getAssetEntryFinder() {
240 return assetEntryFinder;
241 }
242
243 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
244 this.assetEntryFinder = assetEntryFinder;
245 }
246
247 public AssetLinkLocalService getAssetLinkLocalService() {
248 return assetLinkLocalService;
249 }
250
251 public void setAssetLinkLocalService(
252 AssetLinkLocalService assetLinkLocalService) {
253 this.assetLinkLocalService = assetLinkLocalService;
254 }
255
256 public AssetLinkPersistence getAssetLinkPersistence() {
257 return assetLinkPersistence;
258 }
259
260 public void setAssetLinkPersistence(
261 AssetLinkPersistence assetLinkPersistence) {
262 this.assetLinkPersistence = assetLinkPersistence;
263 }
264
265 public AssetTagLocalService getAssetTagLocalService() {
266 return assetTagLocalService;
267 }
268
269 public void setAssetTagLocalService(
270 AssetTagLocalService assetTagLocalService) {
271 this.assetTagLocalService = assetTagLocalService;
272 }
273
274 public AssetTagService getAssetTagService() {
275 return assetTagService;
276 }
277
278 public void setAssetTagService(AssetTagService assetTagService) {
279 this.assetTagService = assetTagService;
280 }
281
282 public AssetTagPersistence getAssetTagPersistence() {
283 return assetTagPersistence;
284 }
285
286 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
287 this.assetTagPersistence = assetTagPersistence;
288 }
289
290 public AssetTagFinder getAssetTagFinder() {
291 return assetTagFinder;
292 }
293
294 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
295 this.assetTagFinder = assetTagFinder;
296 }
297
298 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
299 return assetTagPropertyLocalService;
300 }
301
302 public void setAssetTagPropertyLocalService(
303 AssetTagPropertyLocalService assetTagPropertyLocalService) {
304 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
305 }
306
307 public AssetTagPropertyService getAssetTagPropertyService() {
308 return assetTagPropertyService;
309 }
310
311 public void setAssetTagPropertyService(
312 AssetTagPropertyService assetTagPropertyService) {
313 this.assetTagPropertyService = assetTagPropertyService;
314 }
315
316 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
317 return assetTagPropertyPersistence;
318 }
319
320 public void setAssetTagPropertyPersistence(
321 AssetTagPropertyPersistence assetTagPropertyPersistence) {
322 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
323 }
324
325 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
326 return assetTagPropertyFinder;
327 }
328
329 public void setAssetTagPropertyFinder(
330 AssetTagPropertyFinder assetTagPropertyFinder) {
331 this.assetTagPropertyFinder = assetTagPropertyFinder;
332 }
333
334 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
335 return assetTagPropertyKeyFinder;
336 }
337
338 public void setAssetTagPropertyKeyFinder(
339 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
340 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
341 }
342
343 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
344 return assetTagStatsLocalService;
345 }
346
347 public void setAssetTagStatsLocalService(
348 AssetTagStatsLocalService assetTagStatsLocalService) {
349 this.assetTagStatsLocalService = assetTagStatsLocalService;
350 }
351
352 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
353 return assetTagStatsPersistence;
354 }
355
356 public void setAssetTagStatsPersistence(
357 AssetTagStatsPersistence assetTagStatsPersistence) {
358 this.assetTagStatsPersistence = assetTagStatsPersistence;
359 }
360
361 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
362 return assetVocabularyLocalService;
363 }
364
365 public void setAssetVocabularyLocalService(
366 AssetVocabularyLocalService assetVocabularyLocalService) {
367 this.assetVocabularyLocalService = assetVocabularyLocalService;
368 }
369
370 public AssetVocabularyService getAssetVocabularyService() {
371 return assetVocabularyService;
372 }
373
374 public void setAssetVocabularyService(
375 AssetVocabularyService assetVocabularyService) {
376 this.assetVocabularyService = assetVocabularyService;
377 }
378
379 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
380 return assetVocabularyPersistence;
381 }
382
383 public void setAssetVocabularyPersistence(
384 AssetVocabularyPersistence assetVocabularyPersistence) {
385 this.assetVocabularyPersistence = assetVocabularyPersistence;
386 }
387
388 public CounterLocalService getCounterLocalService() {
389 return counterLocalService;
390 }
391
392 public void setCounterLocalService(CounterLocalService counterLocalService) {
393 this.counterLocalService = counterLocalService;
394 }
395
396 public ResourceLocalService getResourceLocalService() {
397 return resourceLocalService;
398 }
399
400 public void setResourceLocalService(
401 ResourceLocalService resourceLocalService) {
402 this.resourceLocalService = resourceLocalService;
403 }
404
405 public ResourceService getResourceService() {
406 return resourceService;
407 }
408
409 public void setResourceService(ResourceService resourceService) {
410 this.resourceService = resourceService;
411 }
412
413 public ResourcePersistence getResourcePersistence() {
414 return resourcePersistence;
415 }
416
417 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
418 this.resourcePersistence = resourcePersistence;
419 }
420
421 public ResourceFinder getResourceFinder() {
422 return resourceFinder;
423 }
424
425 public void setResourceFinder(ResourceFinder resourceFinder) {
426 this.resourceFinder = resourceFinder;
427 }
428
429 public UserLocalService getUserLocalService() {
430 return userLocalService;
431 }
432
433 public void setUserLocalService(UserLocalService userLocalService) {
434 this.userLocalService = userLocalService;
435 }
436
437 public UserService getUserService() {
438 return userService;
439 }
440
441 public void setUserService(UserService userService) {
442 this.userService = userService;
443 }
444
445 public UserPersistence getUserPersistence() {
446 return userPersistence;
447 }
448
449 public void setUserPersistence(UserPersistence userPersistence) {
450 this.userPersistence = userPersistence;
451 }
452
453 public UserFinder getUserFinder() {
454 return userFinder;
455 }
456
457 public void setUserFinder(UserFinder userFinder) {
458 this.userFinder = userFinder;
459 }
460
461 protected void runSQL(String sql) throws SystemException {
462 try {
463 DB db = DBFactoryUtil.getDB();
464
465 db.runSQL(sql);
466 }
467 catch (Exception e) {
468 throw new SystemException(e);
469 }
470 }
471
472 @BeanReference(type = AssetCategoryLocalService.class)
473 protected AssetCategoryLocalService assetCategoryLocalService;
474 @BeanReference(type = AssetCategoryService.class)
475 protected AssetCategoryService assetCategoryService;
476 @BeanReference(type = AssetCategoryPersistence.class)
477 protected AssetCategoryPersistence assetCategoryPersistence;
478 @BeanReference(type = AssetCategoryFinder.class)
479 protected AssetCategoryFinder assetCategoryFinder;
480 @BeanReference(type = AssetCategoryPropertyLocalService.class)
481 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
482 @BeanReference(type = AssetCategoryPropertyService.class)
483 protected AssetCategoryPropertyService assetCategoryPropertyService;
484 @BeanReference(type = AssetCategoryPropertyPersistence.class)
485 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
486 @BeanReference(type = AssetCategoryPropertyFinder.class)
487 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
488 @BeanReference(type = AssetEntryLocalService.class)
489 protected AssetEntryLocalService assetEntryLocalService;
490 @BeanReference(type = AssetEntryService.class)
491 protected AssetEntryService assetEntryService;
492 @BeanReference(type = AssetEntryPersistence.class)
493 protected AssetEntryPersistence assetEntryPersistence;
494 @BeanReference(type = AssetEntryFinder.class)
495 protected AssetEntryFinder assetEntryFinder;
496 @BeanReference(type = AssetLinkLocalService.class)
497 protected AssetLinkLocalService assetLinkLocalService;
498 @BeanReference(type = AssetLinkPersistence.class)
499 protected AssetLinkPersistence assetLinkPersistence;
500 @BeanReference(type = AssetTagLocalService.class)
501 protected AssetTagLocalService assetTagLocalService;
502 @BeanReference(type = AssetTagService.class)
503 protected AssetTagService assetTagService;
504 @BeanReference(type = AssetTagPersistence.class)
505 protected AssetTagPersistence assetTagPersistence;
506 @BeanReference(type = AssetTagFinder.class)
507 protected AssetTagFinder assetTagFinder;
508 @BeanReference(type = AssetTagPropertyLocalService.class)
509 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
510 @BeanReference(type = AssetTagPropertyService.class)
511 protected AssetTagPropertyService assetTagPropertyService;
512 @BeanReference(type = AssetTagPropertyPersistence.class)
513 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
514 @BeanReference(type = AssetTagPropertyFinder.class)
515 protected AssetTagPropertyFinder assetTagPropertyFinder;
516 @BeanReference(type = AssetTagPropertyKeyFinder.class)
517 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
518 @BeanReference(type = AssetTagStatsLocalService.class)
519 protected AssetTagStatsLocalService assetTagStatsLocalService;
520 @BeanReference(type = AssetTagStatsPersistence.class)
521 protected AssetTagStatsPersistence assetTagStatsPersistence;
522 @BeanReference(type = AssetVocabularyLocalService.class)
523 protected AssetVocabularyLocalService assetVocabularyLocalService;
524 @BeanReference(type = AssetVocabularyService.class)
525 protected AssetVocabularyService assetVocabularyService;
526 @BeanReference(type = AssetVocabularyPersistence.class)
527 protected AssetVocabularyPersistence assetVocabularyPersistence;
528 @BeanReference(type = CounterLocalService.class)
529 protected CounterLocalService counterLocalService;
530 @BeanReference(type = ResourceLocalService.class)
531 protected ResourceLocalService resourceLocalService;
532 @BeanReference(type = ResourceService.class)
533 protected ResourceService resourceService;
534 @BeanReference(type = ResourcePersistence.class)
535 protected ResourcePersistence resourcePersistence;
536 @BeanReference(type = ResourceFinder.class)
537 protected ResourceFinder resourceFinder;
538 @BeanReference(type = UserLocalService.class)
539 protected UserLocalService userLocalService;
540 @BeanReference(type = UserService.class)
541 protected UserService userService;
542 @BeanReference(type = UserPersistence.class)
543 protected UserPersistence userPersistence;
544 @BeanReference(type = UserFinder.class)
545 protected UserFinder userFinder;
546 }