1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class TagsSourceLocalServiceUtil {
42 public static com.liferay.portlet.tags.model.TagsSource addTagsSource(
43 com.liferay.portlet.tags.model.TagsSource tagsSource)
44 throws com.liferay.portal.SystemException {
45 return getService().addTagsSource(tagsSource);
46 }
47
48 public static com.liferay.portlet.tags.model.TagsSource createTagsSource(
49 long sourceId) {
50 return getService().createTagsSource(sourceId);
51 }
52
53 public static void deleteTagsSource(long sourceId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteTagsSource(sourceId);
57 }
58
59 public static void deleteTagsSource(
60 com.liferay.portlet.tags.model.TagsSource tagsSource)
61 throws com.liferay.portal.SystemException {
62 getService().deleteTagsSource(tagsSource);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.tags.model.TagsSource getTagsSource(
96 long sourceId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getTagsSource(sourceId);
100 }
101
102 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> getTagsSources(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getTagsSources(start, end);
105 }
106
107 public static int getTagsSourcesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getTagsSourcesCount();
110 }
111
112 public static com.liferay.portlet.tags.model.TagsSource updateTagsSource(
113 com.liferay.portlet.tags.model.TagsSource tagsSource)
114 throws com.liferay.portal.SystemException {
115 return getService().updateTagsSource(tagsSource);
116 }
117
118 public static com.liferay.portlet.tags.model.TagsSource updateTagsSource(
119 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updateTagsSource(tagsSource, merge);
122 }
123
124 public static TagsSourceLocalService getService() {
125 if (_service == null) {
126 _service = (TagsSourceLocalService)PortalBeanLocatorUtil.locate(TagsSourceLocalService.class.getName());
127
128 ReferenceRegistry.registerReference(TagsSourceLocalServiceUtil.class,
129 "_service");
130 MethodCache.remove(TagsSourceLocalService.class);
131 }
132
133 return _service;
134 }
135
136 public void setService(TagsSourceLocalService service) {
137 MethodCache.remove(TagsSourceLocalService.class);
138
139 _service = service;
140
141 ReferenceRegistry.registerReference(TagsSourceLocalServiceUtil.class,
142 "_service");
143 MethodCache.remove(TagsSourceLocalService.class);
144 }
145
146 private static TagsSourceLocalService _service;
147 }