001
014
015 package com.liferay.portlet.asset.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023 import com.liferay.portal.kernel.exception.PortalException;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.kernel.util.OrderByComparator;
026 import com.liferay.portal.service.ResourceLocalService;
027 import com.liferay.portal.service.ResourceService;
028 import com.liferay.portal.service.UserLocalService;
029 import com.liferay.portal.service.UserService;
030 import com.liferay.portal.service.persistence.ResourceFinder;
031 import com.liferay.portal.service.persistence.ResourcePersistence;
032 import com.liferay.portal.service.persistence.UserFinder;
033 import com.liferay.portal.service.persistence.UserPersistence;
034
035 import com.liferay.portlet.asset.model.AssetTagProperty;
036 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
037 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
038 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
039 import com.liferay.portlet.asset.service.AssetCategoryService;
040 import com.liferay.portlet.asset.service.AssetEntryLocalService;
041 import com.liferay.portlet.asset.service.AssetEntryService;
042 import com.liferay.portlet.asset.service.AssetLinkLocalService;
043 import com.liferay.portlet.asset.service.AssetTagLocalService;
044 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
045 import com.liferay.portlet.asset.service.AssetTagPropertyService;
046 import com.liferay.portlet.asset.service.AssetTagService;
047 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
048 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
049 import com.liferay.portlet.asset.service.AssetVocabularyService;
050 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
051 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
052 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
053 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
054 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
055 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
056 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
057 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
058 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
059 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
060 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
061 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
062 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
063 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
064
065 import java.util.List;
066
067 import javax.sql.DataSource;
068
069
085 public abstract class AssetTagPropertyLocalServiceBaseImpl
086 implements AssetTagPropertyLocalService {
087
094 public AssetTagProperty addAssetTagProperty(
095 AssetTagProperty assetTagProperty) throws SystemException {
096 assetTagProperty.setNew(true);
097
098 return assetTagPropertyPersistence.update(assetTagProperty, false);
099 }
100
101
107 public AssetTagProperty createAssetTagProperty(long tagPropertyId) {
108 return assetTagPropertyPersistence.create(tagPropertyId);
109 }
110
111
118 public void deleteAssetTagProperty(long tagPropertyId)
119 throws PortalException, SystemException {
120 assetTagPropertyPersistence.remove(tagPropertyId);
121 }
122
123
129 public void deleteAssetTagProperty(AssetTagProperty assetTagProperty)
130 throws SystemException {
131 assetTagPropertyPersistence.remove(assetTagProperty);
132 }
133
134
141 @SuppressWarnings("rawtypes")
142 public List dynamicQuery(DynamicQuery dynamicQuery)
143 throws SystemException {
144 return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery);
145 }
146
147
160 @SuppressWarnings("rawtypes")
161 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
162 throws SystemException {
163 return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery,
164 start, end);
165 }
166
167
181 @SuppressWarnings("rawtypes")
182 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
183 OrderByComparator orderByComparator) throws SystemException {
184 return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery,
185 start, end, orderByComparator);
186 }
187
188
195 public long dynamicQueryCount(DynamicQuery dynamicQuery)
196 throws SystemException {
197 return assetTagPropertyPersistence.countWithDynamicQuery(dynamicQuery);
198 }
199
200
208 public AssetTagProperty getAssetTagProperty(long tagPropertyId)
209 throws PortalException, SystemException {
210 return assetTagPropertyPersistence.findByPrimaryKey(tagPropertyId);
211 }
212
213
225 public List<AssetTagProperty> getAssetTagProperties(int start, int end)
226 throws SystemException {
227 return assetTagPropertyPersistence.findAll(start, end);
228 }
229
230
236 public int getAssetTagPropertiesCount() throws SystemException {
237 return assetTagPropertyPersistence.countAll();
238 }
239
240
247 public AssetTagProperty updateAssetTagProperty(
248 AssetTagProperty assetTagProperty) throws SystemException {
249 assetTagProperty.setNew(false);
250
251 return assetTagPropertyPersistence.update(assetTagProperty, true);
252 }
253
254
262 public AssetTagProperty updateAssetTagProperty(
263 AssetTagProperty assetTagProperty, boolean merge)
264 throws SystemException {
265 assetTagProperty.setNew(false);
266
267 return assetTagPropertyPersistence.update(assetTagProperty, merge);
268 }
269
270
275 public AssetCategoryLocalService getAssetCategoryLocalService() {
276 return assetCategoryLocalService;
277 }
278
279
284 public void setAssetCategoryLocalService(
285 AssetCategoryLocalService assetCategoryLocalService) {
286 this.assetCategoryLocalService = assetCategoryLocalService;
287 }
288
289
294 public AssetCategoryService getAssetCategoryService() {
295 return assetCategoryService;
296 }
297
298
303 public void setAssetCategoryService(
304 AssetCategoryService assetCategoryService) {
305 this.assetCategoryService = assetCategoryService;
306 }
307
308
313 public AssetCategoryPersistence getAssetCategoryPersistence() {
314 return assetCategoryPersistence;
315 }
316
317
322 public void setAssetCategoryPersistence(
323 AssetCategoryPersistence assetCategoryPersistence) {
324 this.assetCategoryPersistence = assetCategoryPersistence;
325 }
326
327
332 public AssetCategoryFinder getAssetCategoryFinder() {
333 return assetCategoryFinder;
334 }
335
336
341 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
342 this.assetCategoryFinder = assetCategoryFinder;
343 }
344
345
350 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
351 return assetCategoryPropertyLocalService;
352 }
353
354
359 public void setAssetCategoryPropertyLocalService(
360 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
361 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
362 }
363
364
369 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
370 return assetCategoryPropertyService;
371 }
372
373
378 public void setAssetCategoryPropertyService(
379 AssetCategoryPropertyService assetCategoryPropertyService) {
380 this.assetCategoryPropertyService = assetCategoryPropertyService;
381 }
382
383
388 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
389 return assetCategoryPropertyPersistence;
390 }
391
392
397 public void setAssetCategoryPropertyPersistence(
398 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
399 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
400 }
401
402
407 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
408 return assetCategoryPropertyFinder;
409 }
410
411
416 public void setAssetCategoryPropertyFinder(
417 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
418 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
419 }
420
421
426 public AssetEntryLocalService getAssetEntryLocalService() {
427 return assetEntryLocalService;
428 }
429
430
435 public void setAssetEntryLocalService(
436 AssetEntryLocalService assetEntryLocalService) {
437 this.assetEntryLocalService = assetEntryLocalService;
438 }
439
440
445 public AssetEntryService getAssetEntryService() {
446 return assetEntryService;
447 }
448
449
454 public void setAssetEntryService(AssetEntryService assetEntryService) {
455 this.assetEntryService = assetEntryService;
456 }
457
458
463 public AssetEntryPersistence getAssetEntryPersistence() {
464 return assetEntryPersistence;
465 }
466
467
472 public void setAssetEntryPersistence(
473 AssetEntryPersistence assetEntryPersistence) {
474 this.assetEntryPersistence = assetEntryPersistence;
475 }
476
477
482 public AssetEntryFinder getAssetEntryFinder() {
483 return assetEntryFinder;
484 }
485
486
491 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
492 this.assetEntryFinder = assetEntryFinder;
493 }
494
495
500 public AssetLinkLocalService getAssetLinkLocalService() {
501 return assetLinkLocalService;
502 }
503
504
509 public void setAssetLinkLocalService(
510 AssetLinkLocalService assetLinkLocalService) {
511 this.assetLinkLocalService = assetLinkLocalService;
512 }
513
514
519 public AssetLinkPersistence getAssetLinkPersistence() {
520 return assetLinkPersistence;
521 }
522
523
528 public void setAssetLinkPersistence(
529 AssetLinkPersistence assetLinkPersistence) {
530 this.assetLinkPersistence = assetLinkPersistence;
531 }
532
533
538 public AssetTagLocalService getAssetTagLocalService() {
539 return assetTagLocalService;
540 }
541
542
547 public void setAssetTagLocalService(
548 AssetTagLocalService assetTagLocalService) {
549 this.assetTagLocalService = assetTagLocalService;
550 }
551
552
557 public AssetTagService getAssetTagService() {
558 return assetTagService;
559 }
560
561
566 public void setAssetTagService(AssetTagService assetTagService) {
567 this.assetTagService = assetTagService;
568 }
569
570
575 public AssetTagPersistence getAssetTagPersistence() {
576 return assetTagPersistence;
577 }
578
579
584 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
585 this.assetTagPersistence = assetTagPersistence;
586 }
587
588
593 public AssetTagFinder getAssetTagFinder() {
594 return assetTagFinder;
595 }
596
597
602 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
603 this.assetTagFinder = assetTagFinder;
604 }
605
606
611 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
612 return assetTagPropertyLocalService;
613 }
614
615
620 public void setAssetTagPropertyLocalService(
621 AssetTagPropertyLocalService assetTagPropertyLocalService) {
622 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
623 }
624
625
630 public AssetTagPropertyService getAssetTagPropertyService() {
631 return assetTagPropertyService;
632 }
633
634
639 public void setAssetTagPropertyService(
640 AssetTagPropertyService assetTagPropertyService) {
641 this.assetTagPropertyService = assetTagPropertyService;
642 }
643
644
649 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
650 return assetTagPropertyPersistence;
651 }
652
653
658 public void setAssetTagPropertyPersistence(
659 AssetTagPropertyPersistence assetTagPropertyPersistence) {
660 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
661 }
662
663
668 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
669 return assetTagPropertyFinder;
670 }
671
672
677 public void setAssetTagPropertyFinder(
678 AssetTagPropertyFinder assetTagPropertyFinder) {
679 this.assetTagPropertyFinder = assetTagPropertyFinder;
680 }
681
682
687 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
688 return assetTagPropertyKeyFinder;
689 }
690
691
696 public void setAssetTagPropertyKeyFinder(
697 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
698 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
699 }
700
701
706 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
707 return assetTagStatsLocalService;
708 }
709
710
715 public void setAssetTagStatsLocalService(
716 AssetTagStatsLocalService assetTagStatsLocalService) {
717 this.assetTagStatsLocalService = assetTagStatsLocalService;
718 }
719
720
725 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
726 return assetTagStatsPersistence;
727 }
728
729
734 public void setAssetTagStatsPersistence(
735 AssetTagStatsPersistence assetTagStatsPersistence) {
736 this.assetTagStatsPersistence = assetTagStatsPersistence;
737 }
738
739
744 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
745 return assetVocabularyLocalService;
746 }
747
748
753 public void setAssetVocabularyLocalService(
754 AssetVocabularyLocalService assetVocabularyLocalService) {
755 this.assetVocabularyLocalService = assetVocabularyLocalService;
756 }
757
758
763 public AssetVocabularyService getAssetVocabularyService() {
764 return assetVocabularyService;
765 }
766
767
772 public void setAssetVocabularyService(
773 AssetVocabularyService assetVocabularyService) {
774 this.assetVocabularyService = assetVocabularyService;
775 }
776
777
782 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
783 return assetVocabularyPersistence;
784 }
785
786
791 public void setAssetVocabularyPersistence(
792 AssetVocabularyPersistence assetVocabularyPersistence) {
793 this.assetVocabularyPersistence = assetVocabularyPersistence;
794 }
795
796
801 public CounterLocalService getCounterLocalService() {
802 return counterLocalService;
803 }
804
805
810 public void setCounterLocalService(CounterLocalService counterLocalService) {
811 this.counterLocalService = counterLocalService;
812 }
813
814
819 public ResourceLocalService getResourceLocalService() {
820 return resourceLocalService;
821 }
822
823
828 public void setResourceLocalService(
829 ResourceLocalService resourceLocalService) {
830 this.resourceLocalService = resourceLocalService;
831 }
832
833
838 public ResourceService getResourceService() {
839 return resourceService;
840 }
841
842
847 public void setResourceService(ResourceService resourceService) {
848 this.resourceService = resourceService;
849 }
850
851
856 public ResourcePersistence getResourcePersistence() {
857 return resourcePersistence;
858 }
859
860
865 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
866 this.resourcePersistence = resourcePersistence;
867 }
868
869
874 public ResourceFinder getResourceFinder() {
875 return resourceFinder;
876 }
877
878
883 public void setResourceFinder(ResourceFinder resourceFinder) {
884 this.resourceFinder = resourceFinder;
885 }
886
887
892 public UserLocalService getUserLocalService() {
893 return userLocalService;
894 }
895
896
901 public void setUserLocalService(UserLocalService userLocalService) {
902 this.userLocalService = userLocalService;
903 }
904
905
910 public UserService getUserService() {
911 return userService;
912 }
913
914
919 public void setUserService(UserService userService) {
920 this.userService = userService;
921 }
922
923
928 public UserPersistence getUserPersistence() {
929 return userPersistence;
930 }
931
932
937 public void setUserPersistence(UserPersistence userPersistence) {
938 this.userPersistence = userPersistence;
939 }
940
941
946 public UserFinder getUserFinder() {
947 return userFinder;
948 }
949
950
955 public void setUserFinder(UserFinder userFinder) {
956 this.userFinder = userFinder;
957 }
958
959
964 protected void runSQL(String sql) throws SystemException {
965 try {
966 DataSource dataSource = assetTagPropertyPersistence.getDataSource();
967
968 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
969 sql, new int[0]);
970
971 sqlUpdate.update();
972 }
973 catch (Exception e) {
974 throw new SystemException(e);
975 }
976 }
977
978 @BeanReference(type = AssetCategoryLocalService.class)
979 protected AssetCategoryLocalService assetCategoryLocalService;
980 @BeanReference(type = AssetCategoryService.class)
981 protected AssetCategoryService assetCategoryService;
982 @BeanReference(type = AssetCategoryPersistence.class)
983 protected AssetCategoryPersistence assetCategoryPersistence;
984 @BeanReference(type = AssetCategoryFinder.class)
985 protected AssetCategoryFinder assetCategoryFinder;
986 @BeanReference(type = AssetCategoryPropertyLocalService.class)
987 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
988 @BeanReference(type = AssetCategoryPropertyService.class)
989 protected AssetCategoryPropertyService assetCategoryPropertyService;
990 @BeanReference(type = AssetCategoryPropertyPersistence.class)
991 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
992 @BeanReference(type = AssetCategoryPropertyFinder.class)
993 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
994 @BeanReference(type = AssetEntryLocalService.class)
995 protected AssetEntryLocalService assetEntryLocalService;
996 @BeanReference(type = AssetEntryService.class)
997 protected AssetEntryService assetEntryService;
998 @BeanReference(type = AssetEntryPersistence.class)
999 protected AssetEntryPersistence assetEntryPersistence;
1000 @BeanReference(type = AssetEntryFinder.class)
1001 protected AssetEntryFinder assetEntryFinder;
1002 @BeanReference(type = AssetLinkLocalService.class)
1003 protected AssetLinkLocalService assetLinkLocalService;
1004 @BeanReference(type = AssetLinkPersistence.class)
1005 protected AssetLinkPersistence assetLinkPersistence;
1006 @BeanReference(type = AssetTagLocalService.class)
1007 protected AssetTagLocalService assetTagLocalService;
1008 @BeanReference(type = AssetTagService.class)
1009 protected AssetTagService assetTagService;
1010 @BeanReference(type = AssetTagPersistence.class)
1011 protected AssetTagPersistence assetTagPersistence;
1012 @BeanReference(type = AssetTagFinder.class)
1013 protected AssetTagFinder assetTagFinder;
1014 @BeanReference(type = AssetTagPropertyLocalService.class)
1015 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1016 @BeanReference(type = AssetTagPropertyService.class)
1017 protected AssetTagPropertyService assetTagPropertyService;
1018 @BeanReference(type = AssetTagPropertyPersistence.class)
1019 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1020 @BeanReference(type = AssetTagPropertyFinder.class)
1021 protected AssetTagPropertyFinder assetTagPropertyFinder;
1022 @BeanReference(type = AssetTagPropertyKeyFinder.class)
1023 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1024 @BeanReference(type = AssetTagStatsLocalService.class)
1025 protected AssetTagStatsLocalService assetTagStatsLocalService;
1026 @BeanReference(type = AssetTagStatsPersistence.class)
1027 protected AssetTagStatsPersistence assetTagStatsPersistence;
1028 @BeanReference(type = AssetVocabularyLocalService.class)
1029 protected AssetVocabularyLocalService assetVocabularyLocalService;
1030 @BeanReference(type = AssetVocabularyService.class)
1031 protected AssetVocabularyService assetVocabularyService;
1032 @BeanReference(type = AssetVocabularyPersistence.class)
1033 protected AssetVocabularyPersistence assetVocabularyPersistence;
1034 @BeanReference(type = CounterLocalService.class)
1035 protected CounterLocalService counterLocalService;
1036 @BeanReference(type = ResourceLocalService.class)
1037 protected ResourceLocalService resourceLocalService;
1038 @BeanReference(type = ResourceService.class)
1039 protected ResourceService resourceService;
1040 @BeanReference(type = ResourcePersistence.class)
1041 protected ResourcePersistence resourcePersistence;
1042 @BeanReference(type = ResourceFinder.class)
1043 protected ResourceFinder resourceFinder;
1044 @BeanReference(type = UserLocalService.class)
1045 protected UserLocalService userLocalService;
1046 @BeanReference(type = UserService.class)
1047 protected UserService userService;
1048 @BeanReference(type = UserPersistence.class)
1049 protected UserPersistence userPersistence;
1050 @BeanReference(type = UserFinder.class)
1051 protected UserFinder userFinder;
1052 }