1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  
19  import com.liferay.portal.kernel.annotation.BeanReference;
20  import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
21  import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
22  import com.liferay.portal.kernel.exception.SystemException;
23  import com.liferay.portal.service.ResourceLocalService;
24  import com.liferay.portal.service.ResourceService;
25  import com.liferay.portal.service.UserLocalService;
26  import com.liferay.portal.service.UserService;
27  import com.liferay.portal.service.base.PrincipalBean;
28  import com.liferay.portal.service.persistence.ResourceFinder;
29  import com.liferay.portal.service.persistence.ResourcePersistence;
30  import com.liferay.portal.service.persistence.UserFinder;
31  import com.liferay.portal.service.persistence.UserPersistence;
32  
33  import com.liferay.portlet.asset.service.AssetCategoryLocalService;
34  import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
35  import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
36  import com.liferay.portlet.asset.service.AssetCategoryService;
37  import com.liferay.portlet.asset.service.AssetEntryLocalService;
38  import com.liferay.portlet.asset.service.AssetEntryService;
39  import com.liferay.portlet.asset.service.AssetLinkLocalService;
40  import com.liferay.portlet.asset.service.AssetTagLocalService;
41  import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
42  import com.liferay.portlet.asset.service.AssetTagPropertyService;
43  import com.liferay.portlet.asset.service.AssetTagService;
44  import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
45  import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
46  import com.liferay.portlet.asset.service.AssetVocabularyService;
47  import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
48  import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
49  import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
50  import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
51  import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
52  import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
53  import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
54  import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
55  import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
56  import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
57  import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
58  import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
59  import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
60  import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
61  
62  import javax.sql.DataSource;
63  
64  /**
65   * <a href="AssetTagServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
66   *
67   * @author Brian Wing Shun Chan
68   */
69  public abstract class AssetTagServiceBaseImpl extends PrincipalBean
70      implements AssetTagService {
71      public AssetCategoryLocalService getAssetCategoryLocalService() {
72          return assetCategoryLocalService;
73      }
74  
75      public void setAssetCategoryLocalService(
76          AssetCategoryLocalService assetCategoryLocalService) {
77          this.assetCategoryLocalService = assetCategoryLocalService;
78      }
79  
80      public AssetCategoryService getAssetCategoryService() {
81          return assetCategoryService;
82      }
83  
84      public void setAssetCategoryService(
85          AssetCategoryService assetCategoryService) {
86          this.assetCategoryService = assetCategoryService;
87      }
88  
89      public AssetCategoryPersistence getAssetCategoryPersistence() {
90          return assetCategoryPersistence;
91      }
92  
93      public void setAssetCategoryPersistence(
94          AssetCategoryPersistence assetCategoryPersistence) {
95          this.assetCategoryPersistence = assetCategoryPersistence;
96      }
97  
98      public AssetCategoryFinder getAssetCategoryFinder() {
99          return assetCategoryFinder;
100     }
101 
102     public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
103         this.assetCategoryFinder = assetCategoryFinder;
104     }
105 
106     public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
107         return assetCategoryPropertyLocalService;
108     }
109 
110     public void setAssetCategoryPropertyLocalService(
111         AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
112         this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
113     }
114 
115     public AssetCategoryPropertyService getAssetCategoryPropertyService() {
116         return assetCategoryPropertyService;
117     }
118 
119     public void setAssetCategoryPropertyService(
120         AssetCategoryPropertyService assetCategoryPropertyService) {
121         this.assetCategoryPropertyService = assetCategoryPropertyService;
122     }
123 
124     public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
125         return assetCategoryPropertyPersistence;
126     }
127 
128     public void setAssetCategoryPropertyPersistence(
129         AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
130         this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
131     }
132 
133     public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
134         return assetCategoryPropertyFinder;
135     }
136 
137     public void setAssetCategoryPropertyFinder(
138         AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
139         this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
140     }
141 
142     public AssetEntryLocalService getAssetEntryLocalService() {
143         return assetEntryLocalService;
144     }
145 
146     public void setAssetEntryLocalService(
147         AssetEntryLocalService assetEntryLocalService) {
148         this.assetEntryLocalService = assetEntryLocalService;
149     }
150 
151     public AssetEntryService getAssetEntryService() {
152         return assetEntryService;
153     }
154 
155     public void setAssetEntryService(AssetEntryService assetEntryService) {
156         this.assetEntryService = assetEntryService;
157     }
158 
159     public AssetEntryPersistence getAssetEntryPersistence() {
160         return assetEntryPersistence;
161     }
162 
163     public void setAssetEntryPersistence(
164         AssetEntryPersistence assetEntryPersistence) {
165         this.assetEntryPersistence = assetEntryPersistence;
166     }
167 
168     public AssetEntryFinder getAssetEntryFinder() {
169         return assetEntryFinder;
170     }
171 
172     public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
173         this.assetEntryFinder = assetEntryFinder;
174     }
175 
176     public AssetLinkLocalService getAssetLinkLocalService() {
177         return assetLinkLocalService;
178     }
179 
180     public void setAssetLinkLocalService(
181         AssetLinkLocalService assetLinkLocalService) {
182         this.assetLinkLocalService = assetLinkLocalService;
183     }
184 
185     public AssetLinkPersistence getAssetLinkPersistence() {
186         return assetLinkPersistence;
187     }
188 
189     public void setAssetLinkPersistence(
190         AssetLinkPersistence assetLinkPersistence) {
191         this.assetLinkPersistence = assetLinkPersistence;
192     }
193 
194     public AssetTagLocalService getAssetTagLocalService() {
195         return assetTagLocalService;
196     }
197 
198     public void setAssetTagLocalService(
199         AssetTagLocalService assetTagLocalService) {
200         this.assetTagLocalService = assetTagLocalService;
201     }
202 
203     public AssetTagService getAssetTagService() {
204         return assetTagService;
205     }
206 
207     public void setAssetTagService(AssetTagService assetTagService) {
208         this.assetTagService = assetTagService;
209     }
210 
211     public AssetTagPersistence getAssetTagPersistence() {
212         return assetTagPersistence;
213     }
214 
215     public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
216         this.assetTagPersistence = assetTagPersistence;
217     }
218 
219     public AssetTagFinder getAssetTagFinder() {
220         return assetTagFinder;
221     }
222 
223     public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
224         this.assetTagFinder = assetTagFinder;
225     }
226 
227     public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
228         return assetTagPropertyLocalService;
229     }
230 
231     public void setAssetTagPropertyLocalService(
232         AssetTagPropertyLocalService assetTagPropertyLocalService) {
233         this.assetTagPropertyLocalService = assetTagPropertyLocalService;
234     }
235 
236     public AssetTagPropertyService getAssetTagPropertyService() {
237         return assetTagPropertyService;
238     }
239 
240     public void setAssetTagPropertyService(
241         AssetTagPropertyService assetTagPropertyService) {
242         this.assetTagPropertyService = assetTagPropertyService;
243     }
244 
245     public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
246         return assetTagPropertyPersistence;
247     }
248 
249     public void setAssetTagPropertyPersistence(
250         AssetTagPropertyPersistence assetTagPropertyPersistence) {
251         this.assetTagPropertyPersistence = assetTagPropertyPersistence;
252     }
253 
254     public AssetTagPropertyFinder getAssetTagPropertyFinder() {
255         return assetTagPropertyFinder;
256     }
257 
258     public void setAssetTagPropertyFinder(
259         AssetTagPropertyFinder assetTagPropertyFinder) {
260         this.assetTagPropertyFinder = assetTagPropertyFinder;
261     }
262 
263     public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
264         return assetTagPropertyKeyFinder;
265     }
266 
267     public void setAssetTagPropertyKeyFinder(
268         AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
269         this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
270     }
271 
272     public AssetTagStatsLocalService getAssetTagStatsLocalService() {
273         return assetTagStatsLocalService;
274     }
275 
276     public void setAssetTagStatsLocalService(
277         AssetTagStatsLocalService assetTagStatsLocalService) {
278         this.assetTagStatsLocalService = assetTagStatsLocalService;
279     }
280 
281     public AssetTagStatsPersistence getAssetTagStatsPersistence() {
282         return assetTagStatsPersistence;
283     }
284 
285     public void setAssetTagStatsPersistence(
286         AssetTagStatsPersistence assetTagStatsPersistence) {
287         this.assetTagStatsPersistence = assetTagStatsPersistence;
288     }
289 
290     public AssetVocabularyLocalService getAssetVocabularyLocalService() {
291         return assetVocabularyLocalService;
292     }
293 
294     public void setAssetVocabularyLocalService(
295         AssetVocabularyLocalService assetVocabularyLocalService) {
296         this.assetVocabularyLocalService = assetVocabularyLocalService;
297     }
298 
299     public AssetVocabularyService getAssetVocabularyService() {
300         return assetVocabularyService;
301     }
302 
303     public void setAssetVocabularyService(
304         AssetVocabularyService assetVocabularyService) {
305         this.assetVocabularyService = assetVocabularyService;
306     }
307 
308     public AssetVocabularyPersistence getAssetVocabularyPersistence() {
309         return assetVocabularyPersistence;
310     }
311 
312     public void setAssetVocabularyPersistence(
313         AssetVocabularyPersistence assetVocabularyPersistence) {
314         this.assetVocabularyPersistence = assetVocabularyPersistence;
315     }
316 
317     public CounterLocalService getCounterLocalService() {
318         return counterLocalService;
319     }
320 
321     public void setCounterLocalService(CounterLocalService counterLocalService) {
322         this.counterLocalService = counterLocalService;
323     }
324 
325     public ResourceLocalService getResourceLocalService() {
326         return resourceLocalService;
327     }
328 
329     public void setResourceLocalService(
330         ResourceLocalService resourceLocalService) {
331         this.resourceLocalService = resourceLocalService;
332     }
333 
334     public ResourceService getResourceService() {
335         return resourceService;
336     }
337 
338     public void setResourceService(ResourceService resourceService) {
339         this.resourceService = resourceService;
340     }
341 
342     public ResourcePersistence getResourcePersistence() {
343         return resourcePersistence;
344     }
345 
346     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
347         this.resourcePersistence = resourcePersistence;
348     }
349 
350     public ResourceFinder getResourceFinder() {
351         return resourceFinder;
352     }
353 
354     public void setResourceFinder(ResourceFinder resourceFinder) {
355         this.resourceFinder = resourceFinder;
356     }
357 
358     public UserLocalService getUserLocalService() {
359         return userLocalService;
360     }
361 
362     public void setUserLocalService(UserLocalService userLocalService) {
363         this.userLocalService = userLocalService;
364     }
365 
366     public UserService getUserService() {
367         return userService;
368     }
369 
370     public void setUserService(UserService userService) {
371         this.userService = userService;
372     }
373 
374     public UserPersistence getUserPersistence() {
375         return userPersistence;
376     }
377 
378     public void setUserPersistence(UserPersistence userPersistence) {
379         this.userPersistence = userPersistence;
380     }
381 
382     public UserFinder getUserFinder() {
383         return userFinder;
384     }
385 
386     public void setUserFinder(UserFinder userFinder) {
387         this.userFinder = userFinder;
388     }
389 
390     protected void runSQL(String sql) throws SystemException {
391         try {
392             DataSource dataSource = assetTagPersistence.getDataSource();
393 
394             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
395                     sql, new int[0]);
396 
397             sqlUpdate.update();
398         }
399         catch (Exception e) {
400             throw new SystemException(e);
401         }
402     }
403 
404     @BeanReference(type = AssetCategoryLocalService.class)
405     protected AssetCategoryLocalService assetCategoryLocalService;
406     @BeanReference(type = AssetCategoryService.class)
407     protected AssetCategoryService assetCategoryService;
408     @BeanReference(type = AssetCategoryPersistence.class)
409     protected AssetCategoryPersistence assetCategoryPersistence;
410     @BeanReference(type = AssetCategoryFinder.class)
411     protected AssetCategoryFinder assetCategoryFinder;
412     @BeanReference(type = AssetCategoryPropertyLocalService.class)
413     protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
414     @BeanReference(type = AssetCategoryPropertyService.class)
415     protected AssetCategoryPropertyService assetCategoryPropertyService;
416     @BeanReference(type = AssetCategoryPropertyPersistence.class)
417     protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
418     @BeanReference(type = AssetCategoryPropertyFinder.class)
419     protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
420     @BeanReference(type = AssetEntryLocalService.class)
421     protected AssetEntryLocalService assetEntryLocalService;
422     @BeanReference(type = AssetEntryService.class)
423     protected AssetEntryService assetEntryService;
424     @BeanReference(type = AssetEntryPersistence.class)
425     protected AssetEntryPersistence assetEntryPersistence;
426     @BeanReference(type = AssetEntryFinder.class)
427     protected AssetEntryFinder assetEntryFinder;
428     @BeanReference(type = AssetLinkLocalService.class)
429     protected AssetLinkLocalService assetLinkLocalService;
430     @BeanReference(type = AssetLinkPersistence.class)
431     protected AssetLinkPersistence assetLinkPersistence;
432     @BeanReference(type = AssetTagLocalService.class)
433     protected AssetTagLocalService assetTagLocalService;
434     @BeanReference(type = AssetTagService.class)
435     protected AssetTagService assetTagService;
436     @BeanReference(type = AssetTagPersistence.class)
437     protected AssetTagPersistence assetTagPersistence;
438     @BeanReference(type = AssetTagFinder.class)
439     protected AssetTagFinder assetTagFinder;
440     @BeanReference(type = AssetTagPropertyLocalService.class)
441     protected AssetTagPropertyLocalService assetTagPropertyLocalService;
442     @BeanReference(type = AssetTagPropertyService.class)
443     protected AssetTagPropertyService assetTagPropertyService;
444     @BeanReference(type = AssetTagPropertyPersistence.class)
445     protected AssetTagPropertyPersistence assetTagPropertyPersistence;
446     @BeanReference(type = AssetTagPropertyFinder.class)
447     protected AssetTagPropertyFinder assetTagPropertyFinder;
448     @BeanReference(type = AssetTagPropertyKeyFinder.class)
449     protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
450     @BeanReference(type = AssetTagStatsLocalService.class)
451     protected AssetTagStatsLocalService assetTagStatsLocalService;
452     @BeanReference(type = AssetTagStatsPersistence.class)
453     protected AssetTagStatsPersistence assetTagStatsPersistence;
454     @BeanReference(type = AssetVocabularyLocalService.class)
455     protected AssetVocabularyLocalService assetVocabularyLocalService;
456     @BeanReference(type = AssetVocabularyService.class)
457     protected AssetVocabularyService assetVocabularyService;
458     @BeanReference(type = AssetVocabularyPersistence.class)
459     protected AssetVocabularyPersistence assetVocabularyPersistence;
460     @BeanReference(type = CounterLocalService.class)
461     protected CounterLocalService counterLocalService;
462     @BeanReference(type = ResourceLocalService.class)
463     protected ResourceLocalService resourceLocalService;
464     @BeanReference(type = ResourceService.class)
465     protected ResourceService resourceService;
466     @BeanReference(type = ResourcePersistence.class)
467     protected ResourcePersistence resourcePersistence;
468     @BeanReference(type = ResourceFinder.class)
469     protected ResourceFinder resourceFinder;
470     @BeanReference(type = UserLocalService.class)
471     protected UserLocalService userLocalService;
472     @BeanReference(type = UserService.class)
473     protected UserService userService;
474     @BeanReference(type = UserPersistence.class)
475     protected UserPersistence userPersistence;
476     @BeanReference(type = UserFinder.class)
477     protected UserFinder userFinder;
478 }