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