001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.service.ResourceLocalService;
024    import com.liferay.portal.service.ResourceService;
025    import com.liferay.portal.service.UserLocalService;
026    import com.liferay.portal.service.UserService;
027    import com.liferay.portal.service.base.PrincipalBean;
028    import com.liferay.portal.service.persistence.ResourceFinder;
029    import com.liferay.portal.service.persistence.ResourcePersistence;
030    import com.liferay.portal.service.persistence.UserFinder;
031    import com.liferay.portal.service.persistence.UserPersistence;
032    
033    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
034    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
035    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
036    import com.liferay.portlet.asset.service.AssetCategoryService;
037    import com.liferay.portlet.asset.service.AssetEntryLocalService;
038    import com.liferay.portlet.asset.service.AssetEntryService;
039    import com.liferay.portlet.asset.service.AssetLinkLocalService;
040    import com.liferay.portlet.asset.service.AssetTagLocalService;
041    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
042    import com.liferay.portlet.asset.service.AssetTagPropertyService;
043    import com.liferay.portlet.asset.service.AssetTagService;
044    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
045    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
046    import com.liferay.portlet.asset.service.AssetVocabularyService;
047    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
048    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
049    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
050    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
051    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
052    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
053    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
054    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
055    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
056    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
057    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
058    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
059    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
060    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
061    
062    import javax.sql.DataSource;
063    
064    /**
065     * @author Brian Wing Shun Chan
066     */
067    public abstract class AssetCategoryServiceBaseImpl extends PrincipalBean
068            implements AssetCategoryService {
069            public AssetCategoryLocalService getAssetCategoryLocalService() {
070                    return assetCategoryLocalService;
071            }
072    
073            public void setAssetCategoryLocalService(
074                    AssetCategoryLocalService assetCategoryLocalService) {
075                    this.assetCategoryLocalService = assetCategoryLocalService;
076            }
077    
078            public AssetCategoryService getAssetCategoryService() {
079                    return assetCategoryService;
080            }
081    
082            public void setAssetCategoryService(
083                    AssetCategoryService assetCategoryService) {
084                    this.assetCategoryService = assetCategoryService;
085            }
086    
087            public AssetCategoryPersistence getAssetCategoryPersistence() {
088                    return assetCategoryPersistence;
089            }
090    
091            public void setAssetCategoryPersistence(
092                    AssetCategoryPersistence assetCategoryPersistence) {
093                    this.assetCategoryPersistence = assetCategoryPersistence;
094            }
095    
096            public AssetCategoryFinder getAssetCategoryFinder() {
097                    return assetCategoryFinder;
098            }
099    
100            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
101                    this.assetCategoryFinder = assetCategoryFinder;
102            }
103    
104            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
105                    return assetCategoryPropertyLocalService;
106            }
107    
108            public void setAssetCategoryPropertyLocalService(
109                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
110                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
111            }
112    
113            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
114                    return assetCategoryPropertyService;
115            }
116    
117            public void setAssetCategoryPropertyService(
118                    AssetCategoryPropertyService assetCategoryPropertyService) {
119                    this.assetCategoryPropertyService = assetCategoryPropertyService;
120            }
121    
122            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
123                    return assetCategoryPropertyPersistence;
124            }
125    
126            public void setAssetCategoryPropertyPersistence(
127                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
128                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
129            }
130    
131            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
132                    return assetCategoryPropertyFinder;
133            }
134    
135            public void setAssetCategoryPropertyFinder(
136                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
137                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
138            }
139    
140            public AssetEntryLocalService getAssetEntryLocalService() {
141                    return assetEntryLocalService;
142            }
143    
144            public void setAssetEntryLocalService(
145                    AssetEntryLocalService assetEntryLocalService) {
146                    this.assetEntryLocalService = assetEntryLocalService;
147            }
148    
149            public AssetEntryService getAssetEntryService() {
150                    return assetEntryService;
151            }
152    
153            public void setAssetEntryService(AssetEntryService assetEntryService) {
154                    this.assetEntryService = assetEntryService;
155            }
156    
157            public AssetEntryPersistence getAssetEntryPersistence() {
158                    return assetEntryPersistence;
159            }
160    
161            public void setAssetEntryPersistence(
162                    AssetEntryPersistence assetEntryPersistence) {
163                    this.assetEntryPersistence = assetEntryPersistence;
164            }
165    
166            public AssetEntryFinder getAssetEntryFinder() {
167                    return assetEntryFinder;
168            }
169    
170            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
171                    this.assetEntryFinder = assetEntryFinder;
172            }
173    
174            public AssetLinkLocalService getAssetLinkLocalService() {
175                    return assetLinkLocalService;
176            }
177    
178            public void setAssetLinkLocalService(
179                    AssetLinkLocalService assetLinkLocalService) {
180                    this.assetLinkLocalService = assetLinkLocalService;
181            }
182    
183            public AssetLinkPersistence getAssetLinkPersistence() {
184                    return assetLinkPersistence;
185            }
186    
187            public void setAssetLinkPersistence(
188                    AssetLinkPersistence assetLinkPersistence) {
189                    this.assetLinkPersistence = assetLinkPersistence;
190            }
191    
192            public AssetTagLocalService getAssetTagLocalService() {
193                    return assetTagLocalService;
194            }
195    
196            public void setAssetTagLocalService(
197                    AssetTagLocalService assetTagLocalService) {
198                    this.assetTagLocalService = assetTagLocalService;
199            }
200    
201            public AssetTagService getAssetTagService() {
202                    return assetTagService;
203            }
204    
205            public void setAssetTagService(AssetTagService assetTagService) {
206                    this.assetTagService = assetTagService;
207            }
208    
209            public AssetTagPersistence getAssetTagPersistence() {
210                    return assetTagPersistence;
211            }
212    
213            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
214                    this.assetTagPersistence = assetTagPersistence;
215            }
216    
217            public AssetTagFinder getAssetTagFinder() {
218                    return assetTagFinder;
219            }
220    
221            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
222                    this.assetTagFinder = assetTagFinder;
223            }
224    
225            public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
226                    return assetTagPropertyLocalService;
227            }
228    
229            public void setAssetTagPropertyLocalService(
230                    AssetTagPropertyLocalService assetTagPropertyLocalService) {
231                    this.assetTagPropertyLocalService = assetTagPropertyLocalService;
232            }
233    
234            public AssetTagPropertyService getAssetTagPropertyService() {
235                    return assetTagPropertyService;
236            }
237    
238            public void setAssetTagPropertyService(
239                    AssetTagPropertyService assetTagPropertyService) {
240                    this.assetTagPropertyService = assetTagPropertyService;
241            }
242    
243            public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
244                    return assetTagPropertyPersistence;
245            }
246    
247            public void setAssetTagPropertyPersistence(
248                    AssetTagPropertyPersistence assetTagPropertyPersistence) {
249                    this.assetTagPropertyPersistence = assetTagPropertyPersistence;
250            }
251    
252            public AssetTagPropertyFinder getAssetTagPropertyFinder() {
253                    return assetTagPropertyFinder;
254            }
255    
256            public void setAssetTagPropertyFinder(
257                    AssetTagPropertyFinder assetTagPropertyFinder) {
258                    this.assetTagPropertyFinder = assetTagPropertyFinder;
259            }
260    
261            public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
262                    return assetTagPropertyKeyFinder;
263            }
264    
265            public void setAssetTagPropertyKeyFinder(
266                    AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
267                    this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
268            }
269    
270            public AssetTagStatsLocalService getAssetTagStatsLocalService() {
271                    return assetTagStatsLocalService;
272            }
273    
274            public void setAssetTagStatsLocalService(
275                    AssetTagStatsLocalService assetTagStatsLocalService) {
276                    this.assetTagStatsLocalService = assetTagStatsLocalService;
277            }
278    
279            public AssetTagStatsPersistence getAssetTagStatsPersistence() {
280                    return assetTagStatsPersistence;
281            }
282    
283            public void setAssetTagStatsPersistence(
284                    AssetTagStatsPersistence assetTagStatsPersistence) {
285                    this.assetTagStatsPersistence = assetTagStatsPersistence;
286            }
287    
288            public AssetVocabularyLocalService getAssetVocabularyLocalService() {
289                    return assetVocabularyLocalService;
290            }
291    
292            public void setAssetVocabularyLocalService(
293                    AssetVocabularyLocalService assetVocabularyLocalService) {
294                    this.assetVocabularyLocalService = assetVocabularyLocalService;
295            }
296    
297            public AssetVocabularyService getAssetVocabularyService() {
298                    return assetVocabularyService;
299            }
300    
301            public void setAssetVocabularyService(
302                    AssetVocabularyService assetVocabularyService) {
303                    this.assetVocabularyService = assetVocabularyService;
304            }
305    
306            public AssetVocabularyPersistence getAssetVocabularyPersistence() {
307                    return assetVocabularyPersistence;
308            }
309    
310            public void setAssetVocabularyPersistence(
311                    AssetVocabularyPersistence assetVocabularyPersistence) {
312                    this.assetVocabularyPersistence = assetVocabularyPersistence;
313            }
314    
315            public CounterLocalService getCounterLocalService() {
316                    return counterLocalService;
317            }
318    
319            public void setCounterLocalService(CounterLocalService counterLocalService) {
320                    this.counterLocalService = counterLocalService;
321            }
322    
323            public ResourceLocalService getResourceLocalService() {
324                    return resourceLocalService;
325            }
326    
327            public void setResourceLocalService(
328                    ResourceLocalService resourceLocalService) {
329                    this.resourceLocalService = resourceLocalService;
330            }
331    
332            public ResourceService getResourceService() {
333                    return resourceService;
334            }
335    
336            public void setResourceService(ResourceService resourceService) {
337                    this.resourceService = resourceService;
338            }
339    
340            public ResourcePersistence getResourcePersistence() {
341                    return resourcePersistence;
342            }
343    
344            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
345                    this.resourcePersistence = resourcePersistence;
346            }
347    
348            public ResourceFinder getResourceFinder() {
349                    return resourceFinder;
350            }
351    
352            public void setResourceFinder(ResourceFinder resourceFinder) {
353                    this.resourceFinder = resourceFinder;
354            }
355    
356            public UserLocalService getUserLocalService() {
357                    return userLocalService;
358            }
359    
360            public void setUserLocalService(UserLocalService userLocalService) {
361                    this.userLocalService = userLocalService;
362            }
363    
364            public UserService getUserService() {
365                    return userService;
366            }
367    
368            public void setUserService(UserService userService) {
369                    this.userService = userService;
370            }
371    
372            public UserPersistence getUserPersistence() {
373                    return userPersistence;
374            }
375    
376            public void setUserPersistence(UserPersistence userPersistence) {
377                    this.userPersistence = userPersistence;
378            }
379    
380            public UserFinder getUserFinder() {
381                    return userFinder;
382            }
383    
384            public void setUserFinder(UserFinder userFinder) {
385                    this.userFinder = userFinder;
386            }
387    
388            protected void runSQL(String sql) throws SystemException {
389                    try {
390                            DataSource dataSource = assetCategoryPersistence.getDataSource();
391    
392                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
393                                            sql, new int[0]);
394    
395                            sqlUpdate.update();
396                    }
397                    catch (Exception e) {
398                            throw new SystemException(e);
399                    }
400            }
401    
402            @BeanReference(type = AssetCategoryLocalService.class)
403            protected AssetCategoryLocalService assetCategoryLocalService;
404            @BeanReference(type = AssetCategoryService.class)
405            protected AssetCategoryService assetCategoryService;
406            @BeanReference(type = AssetCategoryPersistence.class)
407            protected AssetCategoryPersistence assetCategoryPersistence;
408            @BeanReference(type = AssetCategoryFinder.class)
409            protected AssetCategoryFinder assetCategoryFinder;
410            @BeanReference(type = AssetCategoryPropertyLocalService.class)
411            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
412            @BeanReference(type = AssetCategoryPropertyService.class)
413            protected AssetCategoryPropertyService assetCategoryPropertyService;
414            @BeanReference(type = AssetCategoryPropertyPersistence.class)
415            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
416            @BeanReference(type = AssetCategoryPropertyFinder.class)
417            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
418            @BeanReference(type = AssetEntryLocalService.class)
419            protected AssetEntryLocalService assetEntryLocalService;
420            @BeanReference(type = AssetEntryService.class)
421            protected AssetEntryService assetEntryService;
422            @BeanReference(type = AssetEntryPersistence.class)
423            protected AssetEntryPersistence assetEntryPersistence;
424            @BeanReference(type = AssetEntryFinder.class)
425            protected AssetEntryFinder assetEntryFinder;
426            @BeanReference(type = AssetLinkLocalService.class)
427            protected AssetLinkLocalService assetLinkLocalService;
428            @BeanReference(type = AssetLinkPersistence.class)
429            protected AssetLinkPersistence assetLinkPersistence;
430            @BeanReference(type = AssetTagLocalService.class)
431            protected AssetTagLocalService assetTagLocalService;
432            @BeanReference(type = AssetTagService.class)
433            protected AssetTagService assetTagService;
434            @BeanReference(type = AssetTagPersistence.class)
435            protected AssetTagPersistence assetTagPersistence;
436            @BeanReference(type = AssetTagFinder.class)
437            protected AssetTagFinder assetTagFinder;
438            @BeanReference(type = AssetTagPropertyLocalService.class)
439            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
440            @BeanReference(type = AssetTagPropertyService.class)
441            protected AssetTagPropertyService assetTagPropertyService;
442            @BeanReference(type = AssetTagPropertyPersistence.class)
443            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
444            @BeanReference(type = AssetTagPropertyFinder.class)
445            protected AssetTagPropertyFinder assetTagPropertyFinder;
446            @BeanReference(type = AssetTagPropertyKeyFinder.class)
447            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
448            @BeanReference(type = AssetTagStatsLocalService.class)
449            protected AssetTagStatsLocalService assetTagStatsLocalService;
450            @BeanReference(type = AssetTagStatsPersistence.class)
451            protected AssetTagStatsPersistence assetTagStatsPersistence;
452            @BeanReference(type = AssetVocabularyLocalService.class)
453            protected AssetVocabularyLocalService assetVocabularyLocalService;
454            @BeanReference(type = AssetVocabularyService.class)
455            protected AssetVocabularyService assetVocabularyService;
456            @BeanReference(type = AssetVocabularyPersistence.class)
457            protected AssetVocabularyPersistence assetVocabularyPersistence;
458            @BeanReference(type = CounterLocalService.class)
459            protected CounterLocalService counterLocalService;
460            @BeanReference(type = ResourceLocalService.class)
461            protected ResourceLocalService resourceLocalService;
462            @BeanReference(type = ResourceService.class)
463            protected ResourceService resourceService;
464            @BeanReference(type = ResourcePersistence.class)
465            protected ResourcePersistence resourcePersistence;
466            @BeanReference(type = ResourceFinder.class)
467            protected ResourceFinder resourceFinder;
468            @BeanReference(type = UserLocalService.class)
469            protected UserLocalService userLocalService;
470            @BeanReference(type = UserService.class)
471            protected UserService userService;
472            @BeanReference(type = UserPersistence.class)
473            protected UserPersistence userPersistence;
474            @BeanReference(type = UserFinder.class)
475            protected UserFinder userFinder;
476    }