1
19
20 package com.liferay.portlet.tags.service.base;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.BeanReference;
25 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
26
27 import com.liferay.portlet.tags.model.TagsSource;
28 import com.liferay.portlet.tags.service.TagsAssetLocalService;
29 import com.liferay.portlet.tags.service.TagsAssetService;
30 import com.liferay.portlet.tags.service.TagsEntryLocalService;
31 import com.liferay.portlet.tags.service.TagsEntryService;
32 import com.liferay.portlet.tags.service.TagsPropertyLocalService;
33 import com.liferay.portlet.tags.service.TagsPropertyService;
34 import com.liferay.portlet.tags.service.TagsSourceLocalService;
35 import com.liferay.portlet.tags.service.TagsSourceService;
36 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
37 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
38 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
39 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
40 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
41 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
42 import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
43 import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
44
45 import java.util.List;
46
47
53 public abstract class TagsSourceLocalServiceBaseImpl
54 implements TagsSourceLocalService {
55 public TagsSource addTagsSource(TagsSource tagsSource)
56 throws SystemException {
57 tagsSource.setNew(true);
58
59 return tagsSourcePersistence.update(tagsSource, false);
60 }
61
62 public TagsSource createTagsSource(long sourceId) {
63 return tagsSourcePersistence.create(sourceId);
64 }
65
66 public void deleteTagsSource(long sourceId)
67 throws PortalException, SystemException {
68 tagsSourcePersistence.remove(sourceId);
69 }
70
71 public void deleteTagsSource(TagsSource tagsSource)
72 throws SystemException {
73 tagsSourcePersistence.remove(tagsSource);
74 }
75
76 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
77 throws SystemException {
78 return tagsSourcePersistence.findWithDynamicQuery(dynamicQuery);
79 }
80
81 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
82 int end) throws SystemException {
83 return tagsSourcePersistence.findWithDynamicQuery(dynamicQuery, start,
84 end);
85 }
86
87 public TagsSource getTagsSource(long sourceId)
88 throws PortalException, SystemException {
89 return tagsSourcePersistence.findByPrimaryKey(sourceId);
90 }
91
92 public List<TagsSource> getTagsSources(int start, int end)
93 throws SystemException {
94 return tagsSourcePersistence.findAll(start, end);
95 }
96
97 public int getTagsSourcesCount() throws SystemException {
98 return tagsSourcePersistence.countAll();
99 }
100
101 public TagsSource updateTagsSource(TagsSource tagsSource)
102 throws SystemException {
103 tagsSource.setNew(false);
104
105 return tagsSourcePersistence.update(tagsSource, true);
106 }
107
108 public TagsAssetLocalService getTagsAssetLocalService() {
109 return tagsAssetLocalService;
110 }
111
112 public void setTagsAssetLocalService(
113 TagsAssetLocalService tagsAssetLocalService) {
114 this.tagsAssetLocalService = tagsAssetLocalService;
115 }
116
117 public TagsAssetService getTagsAssetService() {
118 return tagsAssetService;
119 }
120
121 public void setTagsAssetService(TagsAssetService tagsAssetService) {
122 this.tagsAssetService = tagsAssetService;
123 }
124
125 public TagsAssetPersistence getTagsAssetPersistence() {
126 return tagsAssetPersistence;
127 }
128
129 public void setTagsAssetPersistence(
130 TagsAssetPersistence tagsAssetPersistence) {
131 this.tagsAssetPersistence = tagsAssetPersistence;
132 }
133
134 public TagsAssetFinder getTagsAssetFinder() {
135 return tagsAssetFinder;
136 }
137
138 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
139 this.tagsAssetFinder = tagsAssetFinder;
140 }
141
142 public TagsEntryLocalService getTagsEntryLocalService() {
143 return tagsEntryLocalService;
144 }
145
146 public void setTagsEntryLocalService(
147 TagsEntryLocalService tagsEntryLocalService) {
148 this.tagsEntryLocalService = tagsEntryLocalService;
149 }
150
151 public TagsEntryService getTagsEntryService() {
152 return tagsEntryService;
153 }
154
155 public void setTagsEntryService(TagsEntryService tagsEntryService) {
156 this.tagsEntryService = tagsEntryService;
157 }
158
159 public TagsEntryPersistence getTagsEntryPersistence() {
160 return tagsEntryPersistence;
161 }
162
163 public void setTagsEntryPersistence(
164 TagsEntryPersistence tagsEntryPersistence) {
165 this.tagsEntryPersistence = tagsEntryPersistence;
166 }
167
168 public TagsEntryFinder getTagsEntryFinder() {
169 return tagsEntryFinder;
170 }
171
172 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
173 this.tagsEntryFinder = tagsEntryFinder;
174 }
175
176 public TagsPropertyLocalService getTagsPropertyLocalService() {
177 return tagsPropertyLocalService;
178 }
179
180 public void setTagsPropertyLocalService(
181 TagsPropertyLocalService tagsPropertyLocalService) {
182 this.tagsPropertyLocalService = tagsPropertyLocalService;
183 }
184
185 public TagsPropertyService getTagsPropertyService() {
186 return tagsPropertyService;
187 }
188
189 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
190 this.tagsPropertyService = tagsPropertyService;
191 }
192
193 public TagsPropertyPersistence getTagsPropertyPersistence() {
194 return tagsPropertyPersistence;
195 }
196
197 public void setTagsPropertyPersistence(
198 TagsPropertyPersistence tagsPropertyPersistence) {
199 this.tagsPropertyPersistence = tagsPropertyPersistence;
200 }
201
202 public TagsPropertyFinder getTagsPropertyFinder() {
203 return tagsPropertyFinder;
204 }
205
206 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
207 this.tagsPropertyFinder = tagsPropertyFinder;
208 }
209
210 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
211 return tagsPropertyKeyFinder;
212 }
213
214 public void setTagsPropertyKeyFinder(
215 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
216 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
217 }
218
219 public TagsSourceLocalService getTagsSourceLocalService() {
220 return tagsSourceLocalService;
221 }
222
223 public void setTagsSourceLocalService(
224 TagsSourceLocalService tagsSourceLocalService) {
225 this.tagsSourceLocalService = tagsSourceLocalService;
226 }
227
228 public TagsSourceService getTagsSourceService() {
229 return tagsSourceService;
230 }
231
232 public void setTagsSourceService(TagsSourceService tagsSourceService) {
233 this.tagsSourceService = tagsSourceService;
234 }
235
236 public TagsSourcePersistence getTagsSourcePersistence() {
237 return tagsSourcePersistence;
238 }
239
240 public void setTagsSourcePersistence(
241 TagsSourcePersistence tagsSourcePersistence) {
242 this.tagsSourcePersistence = tagsSourcePersistence;
243 }
244
245 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
246 protected TagsAssetLocalService tagsAssetLocalService;
247 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
248 protected TagsAssetService tagsAssetService;
249 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
250 protected TagsAssetPersistence tagsAssetPersistence;
251 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
252 protected TagsAssetFinder tagsAssetFinder;
253 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
254 protected TagsEntryLocalService tagsEntryLocalService;
255 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
256 protected TagsEntryService tagsEntryService;
257 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
258 protected TagsEntryPersistence tagsEntryPersistence;
259 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
260 protected TagsEntryFinder tagsEntryFinder;
261 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
262 protected TagsPropertyLocalService tagsPropertyLocalService;
263 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
264 protected TagsPropertyService tagsPropertyService;
265 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
266 protected TagsPropertyPersistence tagsPropertyPersistence;
267 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
268 protected TagsPropertyFinder tagsPropertyFinder;
269 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
270 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
271 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
272 protected TagsSourceLocalService tagsSourceLocalService;
273 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
274 protected TagsSourceService tagsSourceService;
275 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
276 protected TagsSourcePersistence tagsSourcePersistence;
277 }