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