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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025 import com.liferay.portal.kernel.exception.PortalException;
026 import com.liferay.portal.kernel.exception.SystemException;
027 import com.liferay.portal.kernel.search.Indexable;
028 import com.liferay.portal.kernel.search.IndexableType;
029 import com.liferay.portal.kernel.util.OrderByComparator;
030 import com.liferay.portal.model.PersistedModel;
031 import com.liferay.portal.service.BaseLocalServiceImpl;
032 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033 import com.liferay.portal.service.ResourceLocalService;
034 import com.liferay.portal.service.UserLocalService;
035 import com.liferay.portal.service.UserService;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038
039 import com.liferay.portlet.asset.model.AssetTagProperty;
040 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
041 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
042 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
043 import com.liferay.portlet.asset.service.AssetCategoryService;
044 import com.liferay.portlet.asset.service.AssetEntryLocalService;
045 import com.liferay.portlet.asset.service.AssetEntryService;
046 import com.liferay.portlet.asset.service.AssetLinkLocalService;
047 import com.liferay.portlet.asset.service.AssetTagLocalService;
048 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
049 import com.liferay.portlet.asset.service.AssetTagPropertyService;
050 import com.liferay.portlet.asset.service.AssetTagService;
051 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
052 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
053 import com.liferay.portlet.asset.service.AssetVocabularyService;
054 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
055 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
056 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
057 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
058 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060 import com.liferay.portlet.asset.service.persistence.AssetLinkFinder;
061 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
062 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
063 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
064 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
065 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
066 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
067 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
068 import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
069 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
070
071 import java.io.Serializable;
072
073 import java.util.List;
074
075 import javax.sql.DataSource;
076
077
089 public abstract class AssetTagPropertyLocalServiceBaseImpl
090 extends BaseLocalServiceImpl implements AssetTagPropertyLocalService,
091 IdentifiableBean {
092
097
098
105 @Indexable(type = IndexableType.REINDEX)
106 public AssetTagProperty addAssetTagProperty(
107 AssetTagProperty assetTagProperty) throws SystemException {
108 assetTagProperty.setNew(true);
109
110 return assetTagPropertyPersistence.update(assetTagProperty);
111 }
112
113
119 public AssetTagProperty createAssetTagProperty(long tagPropertyId) {
120 return assetTagPropertyPersistence.create(tagPropertyId);
121 }
122
123
131 @Indexable(type = IndexableType.DELETE)
132 public AssetTagProperty deleteAssetTagProperty(long tagPropertyId)
133 throws PortalException, SystemException {
134 return assetTagPropertyPersistence.remove(tagPropertyId);
135 }
136
137
144 @Indexable(type = IndexableType.DELETE)
145 public AssetTagProperty deleteAssetTagProperty(
146 AssetTagProperty assetTagProperty) throws SystemException {
147 return assetTagPropertyPersistence.remove(assetTagProperty);
148 }
149
150 public DynamicQuery dynamicQuery() {
151 Class<?> clazz = getClass();
152
153 return DynamicQueryFactoryUtil.forClass(AssetTagProperty.class,
154 clazz.getClassLoader());
155 }
156
157
164 @SuppressWarnings("rawtypes")
165 public List dynamicQuery(DynamicQuery dynamicQuery)
166 throws SystemException {
167 return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery);
168 }
169
170
183 @SuppressWarnings("rawtypes")
184 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
185 throws SystemException {
186 return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery,
187 start, end);
188 }
189
190
204 @SuppressWarnings("rawtypes")
205 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
206 OrderByComparator orderByComparator) throws SystemException {
207 return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery,
208 start, end, orderByComparator);
209 }
210
211
218 public long dynamicQueryCount(DynamicQuery dynamicQuery)
219 throws SystemException {
220 return assetTagPropertyPersistence.countWithDynamicQuery(dynamicQuery);
221 }
222
223 public AssetTagProperty fetchAssetTagProperty(long tagPropertyId)
224 throws SystemException {
225 return assetTagPropertyPersistence.fetchByPrimaryKey(tagPropertyId);
226 }
227
228
236 public AssetTagProperty getAssetTagProperty(long tagPropertyId)
237 throws PortalException, SystemException {
238 return assetTagPropertyPersistence.findByPrimaryKey(tagPropertyId);
239 }
240
241 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
242 throws PortalException, SystemException {
243 return assetTagPropertyPersistence.findByPrimaryKey(primaryKeyObj);
244 }
245
246
258 public List<AssetTagProperty> getAssetTagProperties(int start, int end)
259 throws SystemException {
260 return assetTagPropertyPersistence.findAll(start, end);
261 }
262
263
269 public int getAssetTagPropertiesCount() throws SystemException {
270 return assetTagPropertyPersistence.countAll();
271 }
272
273
280 @Indexable(type = IndexableType.REINDEX)
281 public AssetTagProperty updateAssetTagProperty(
282 AssetTagProperty assetTagProperty) throws SystemException {
283 return assetTagPropertyPersistence.update(assetTagProperty);
284 }
285
286
291 public AssetCategoryLocalService getAssetCategoryLocalService() {
292 return assetCategoryLocalService;
293 }
294
295
300 public void setAssetCategoryLocalService(
301 AssetCategoryLocalService assetCategoryLocalService) {
302 this.assetCategoryLocalService = assetCategoryLocalService;
303 }
304
305
310 public AssetCategoryService getAssetCategoryService() {
311 return assetCategoryService;
312 }
313
314
319 public void setAssetCategoryService(
320 AssetCategoryService assetCategoryService) {
321 this.assetCategoryService = assetCategoryService;
322 }
323
324
329 public AssetCategoryPersistence getAssetCategoryPersistence() {
330 return assetCategoryPersistence;
331 }
332
333
338 public void setAssetCategoryPersistence(
339 AssetCategoryPersistence assetCategoryPersistence) {
340 this.assetCategoryPersistence = assetCategoryPersistence;
341 }
342
343
348 public AssetCategoryFinder getAssetCategoryFinder() {
349 return assetCategoryFinder;
350 }
351
352
357 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
358 this.assetCategoryFinder = assetCategoryFinder;
359 }
360
361
366 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
367 return assetCategoryPropertyLocalService;
368 }
369
370
375 public void setAssetCategoryPropertyLocalService(
376 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
377 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
378 }
379
380
385 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
386 return assetCategoryPropertyService;
387 }
388
389
394 public void setAssetCategoryPropertyService(
395 AssetCategoryPropertyService assetCategoryPropertyService) {
396 this.assetCategoryPropertyService = assetCategoryPropertyService;
397 }
398
399
404 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
405 return assetCategoryPropertyPersistence;
406 }
407
408
413 public void setAssetCategoryPropertyPersistence(
414 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
415 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
416 }
417
418
423 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
424 return assetCategoryPropertyFinder;
425 }
426
427
432 public void setAssetCategoryPropertyFinder(
433 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
434 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
435 }
436
437
442 public AssetEntryLocalService getAssetEntryLocalService() {
443 return assetEntryLocalService;
444 }
445
446
451 public void setAssetEntryLocalService(
452 AssetEntryLocalService assetEntryLocalService) {
453 this.assetEntryLocalService = assetEntryLocalService;
454 }
455
456
461 public AssetEntryService getAssetEntryService() {
462 return assetEntryService;
463 }
464
465
470 public void setAssetEntryService(AssetEntryService assetEntryService) {
471 this.assetEntryService = assetEntryService;
472 }
473
474
479 public AssetEntryPersistence getAssetEntryPersistence() {
480 return assetEntryPersistence;
481 }
482
483
488 public void setAssetEntryPersistence(
489 AssetEntryPersistence assetEntryPersistence) {
490 this.assetEntryPersistence = assetEntryPersistence;
491 }
492
493
498 public AssetEntryFinder getAssetEntryFinder() {
499 return assetEntryFinder;
500 }
501
502
507 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
508 this.assetEntryFinder = assetEntryFinder;
509 }
510
511
516 public AssetLinkLocalService getAssetLinkLocalService() {
517 return assetLinkLocalService;
518 }
519
520
525 public void setAssetLinkLocalService(
526 AssetLinkLocalService assetLinkLocalService) {
527 this.assetLinkLocalService = assetLinkLocalService;
528 }
529
530
535 public AssetLinkPersistence getAssetLinkPersistence() {
536 return assetLinkPersistence;
537 }
538
539
544 public void setAssetLinkPersistence(
545 AssetLinkPersistence assetLinkPersistence) {
546 this.assetLinkPersistence = assetLinkPersistence;
547 }
548
549
554 public AssetLinkFinder getAssetLinkFinder() {
555 return assetLinkFinder;
556 }
557
558
563 public void setAssetLinkFinder(AssetLinkFinder assetLinkFinder) {
564 this.assetLinkFinder = assetLinkFinder;
565 }
566
567
572 public AssetTagLocalService getAssetTagLocalService() {
573 return assetTagLocalService;
574 }
575
576
581 public void setAssetTagLocalService(
582 AssetTagLocalService assetTagLocalService) {
583 this.assetTagLocalService = assetTagLocalService;
584 }
585
586
591 public AssetTagService getAssetTagService() {
592 return assetTagService;
593 }
594
595
600 public void setAssetTagService(AssetTagService assetTagService) {
601 this.assetTagService = assetTagService;
602 }
603
604
609 public AssetTagPersistence getAssetTagPersistence() {
610 return assetTagPersistence;
611 }
612
613
618 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
619 this.assetTagPersistence = assetTagPersistence;
620 }
621
622
627 public AssetTagFinder getAssetTagFinder() {
628 return assetTagFinder;
629 }
630
631
636 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
637 this.assetTagFinder = assetTagFinder;
638 }
639
640
645 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
646 return assetTagPropertyLocalService;
647 }
648
649
654 public void setAssetTagPropertyLocalService(
655 AssetTagPropertyLocalService assetTagPropertyLocalService) {
656 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
657 }
658
659
664 public AssetTagPropertyService getAssetTagPropertyService() {
665 return assetTagPropertyService;
666 }
667
668
673 public void setAssetTagPropertyService(
674 AssetTagPropertyService assetTagPropertyService) {
675 this.assetTagPropertyService = assetTagPropertyService;
676 }
677
678
683 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
684 return assetTagPropertyPersistence;
685 }
686
687
692 public void setAssetTagPropertyPersistence(
693 AssetTagPropertyPersistence assetTagPropertyPersistence) {
694 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
695 }
696
697
702 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
703 return assetTagPropertyFinder;
704 }
705
706
711 public void setAssetTagPropertyFinder(
712 AssetTagPropertyFinder assetTagPropertyFinder) {
713 this.assetTagPropertyFinder = assetTagPropertyFinder;
714 }
715
716
721 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
722 return assetTagPropertyKeyFinder;
723 }
724
725
730 public void setAssetTagPropertyKeyFinder(
731 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
732 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
733 }
734
735
740 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
741 return assetTagStatsLocalService;
742 }
743
744
749 public void setAssetTagStatsLocalService(
750 AssetTagStatsLocalService assetTagStatsLocalService) {
751 this.assetTagStatsLocalService = assetTagStatsLocalService;
752 }
753
754
759 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
760 return assetTagStatsPersistence;
761 }
762
763
768 public void setAssetTagStatsPersistence(
769 AssetTagStatsPersistence assetTagStatsPersistence) {
770 this.assetTagStatsPersistence = assetTagStatsPersistence;
771 }
772
773
778 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
779 return assetVocabularyLocalService;
780 }
781
782
787 public void setAssetVocabularyLocalService(
788 AssetVocabularyLocalService assetVocabularyLocalService) {
789 this.assetVocabularyLocalService = assetVocabularyLocalService;
790 }
791
792
797 public AssetVocabularyService getAssetVocabularyService() {
798 return assetVocabularyService;
799 }
800
801
806 public void setAssetVocabularyService(
807 AssetVocabularyService assetVocabularyService) {
808 this.assetVocabularyService = assetVocabularyService;
809 }
810
811
816 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
817 return assetVocabularyPersistence;
818 }
819
820
825 public void setAssetVocabularyPersistence(
826 AssetVocabularyPersistence assetVocabularyPersistence) {
827 this.assetVocabularyPersistence = assetVocabularyPersistence;
828 }
829
830
835 public AssetVocabularyFinder getAssetVocabularyFinder() {
836 return assetVocabularyFinder;
837 }
838
839
844 public void setAssetVocabularyFinder(
845 AssetVocabularyFinder assetVocabularyFinder) {
846 this.assetVocabularyFinder = assetVocabularyFinder;
847 }
848
849
854 public CounterLocalService getCounterLocalService() {
855 return counterLocalService;
856 }
857
858
863 public void setCounterLocalService(CounterLocalService counterLocalService) {
864 this.counterLocalService = counterLocalService;
865 }
866
867
872 public ResourceLocalService getResourceLocalService() {
873 return resourceLocalService;
874 }
875
876
881 public void setResourceLocalService(
882 ResourceLocalService resourceLocalService) {
883 this.resourceLocalService = resourceLocalService;
884 }
885
886
891 public UserLocalService getUserLocalService() {
892 return userLocalService;
893 }
894
895
900 public void setUserLocalService(UserLocalService userLocalService) {
901 this.userLocalService = userLocalService;
902 }
903
904
909 public UserService getUserService() {
910 return userService;
911 }
912
913
918 public void setUserService(UserService userService) {
919 this.userService = userService;
920 }
921
922
927 public UserPersistence getUserPersistence() {
928 return userPersistence;
929 }
930
931
936 public void setUserPersistence(UserPersistence userPersistence) {
937 this.userPersistence = userPersistence;
938 }
939
940
945 public UserFinder getUserFinder() {
946 return userFinder;
947 }
948
949
954 public void setUserFinder(UserFinder userFinder) {
955 this.userFinder = userFinder;
956 }
957
958 public void afterPropertiesSet() {
959 persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetTagProperty",
960 assetTagPropertyLocalService);
961 }
962
963 public void destroy() {
964 persistedModelLocalServiceRegistry.unregister(
965 "com.liferay.portlet.asset.model.AssetTagProperty");
966 }
967
968
973 public String getBeanIdentifier() {
974 return _beanIdentifier;
975 }
976
977
982 public void setBeanIdentifier(String beanIdentifier) {
983 _beanIdentifier = beanIdentifier;
984 }
985
986 protected Class<?> getModelClass() {
987 return AssetTagProperty.class;
988 }
989
990 protected String getModelClassName() {
991 return AssetTagProperty.class.getName();
992 }
993
994
999 protected void runSQL(String sql) throws SystemException {
1000 try {
1001 DataSource dataSource = assetTagPropertyPersistence.getDataSource();
1002
1003 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1004 sql, new int[0]);
1005
1006 sqlUpdate.update();
1007 }
1008 catch (Exception e) {
1009 throw new SystemException(e);
1010 }
1011 }
1012
1013 @BeanReference(type = AssetCategoryLocalService.class)
1014 protected AssetCategoryLocalService assetCategoryLocalService;
1015 @BeanReference(type = AssetCategoryService.class)
1016 protected AssetCategoryService assetCategoryService;
1017 @BeanReference(type = AssetCategoryPersistence.class)
1018 protected AssetCategoryPersistence assetCategoryPersistence;
1019 @BeanReference(type = AssetCategoryFinder.class)
1020 protected AssetCategoryFinder assetCategoryFinder;
1021 @BeanReference(type = AssetCategoryPropertyLocalService.class)
1022 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1023 @BeanReference(type = AssetCategoryPropertyService.class)
1024 protected AssetCategoryPropertyService assetCategoryPropertyService;
1025 @BeanReference(type = AssetCategoryPropertyPersistence.class)
1026 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1027 @BeanReference(type = AssetCategoryPropertyFinder.class)
1028 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1029 @BeanReference(type = AssetEntryLocalService.class)
1030 protected AssetEntryLocalService assetEntryLocalService;
1031 @BeanReference(type = AssetEntryService.class)
1032 protected AssetEntryService assetEntryService;
1033 @BeanReference(type = AssetEntryPersistence.class)
1034 protected AssetEntryPersistence assetEntryPersistence;
1035 @BeanReference(type = AssetEntryFinder.class)
1036 protected AssetEntryFinder assetEntryFinder;
1037 @BeanReference(type = AssetLinkLocalService.class)
1038 protected AssetLinkLocalService assetLinkLocalService;
1039 @BeanReference(type = AssetLinkPersistence.class)
1040 protected AssetLinkPersistence assetLinkPersistence;
1041 @BeanReference(type = AssetLinkFinder.class)
1042 protected AssetLinkFinder assetLinkFinder;
1043 @BeanReference(type = AssetTagLocalService.class)
1044 protected AssetTagLocalService assetTagLocalService;
1045 @BeanReference(type = AssetTagService.class)
1046 protected AssetTagService assetTagService;
1047 @BeanReference(type = AssetTagPersistence.class)
1048 protected AssetTagPersistence assetTagPersistence;
1049 @BeanReference(type = AssetTagFinder.class)
1050 protected AssetTagFinder assetTagFinder;
1051 @BeanReference(type = AssetTagPropertyLocalService.class)
1052 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1053 @BeanReference(type = AssetTagPropertyService.class)
1054 protected AssetTagPropertyService assetTagPropertyService;
1055 @BeanReference(type = AssetTagPropertyPersistence.class)
1056 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1057 @BeanReference(type = AssetTagPropertyFinder.class)
1058 protected AssetTagPropertyFinder assetTagPropertyFinder;
1059 @BeanReference(type = AssetTagPropertyKeyFinder.class)
1060 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1061 @BeanReference(type = AssetTagStatsLocalService.class)
1062 protected AssetTagStatsLocalService assetTagStatsLocalService;
1063 @BeanReference(type = AssetTagStatsPersistence.class)
1064 protected AssetTagStatsPersistence assetTagStatsPersistence;
1065 @BeanReference(type = AssetVocabularyLocalService.class)
1066 protected AssetVocabularyLocalService assetVocabularyLocalService;
1067 @BeanReference(type = AssetVocabularyService.class)
1068 protected AssetVocabularyService assetVocabularyService;
1069 @BeanReference(type = AssetVocabularyPersistence.class)
1070 protected AssetVocabularyPersistence assetVocabularyPersistence;
1071 @BeanReference(type = AssetVocabularyFinder.class)
1072 protected AssetVocabularyFinder assetVocabularyFinder;
1073 @BeanReference(type = CounterLocalService.class)
1074 protected CounterLocalService counterLocalService;
1075 @BeanReference(type = ResourceLocalService.class)
1076 protected ResourceLocalService resourceLocalService;
1077 @BeanReference(type = UserLocalService.class)
1078 protected UserLocalService userLocalService;
1079 @BeanReference(type = UserService.class)
1080 protected UserService userService;
1081 @BeanReference(type = UserPersistence.class)
1082 protected UserPersistence userPersistence;
1083 @BeanReference(type = UserFinder.class)
1084 protected UserFinder userFinder;
1085 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1086 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1087 private String _beanIdentifier;
1088 }