001    /**
002     * Copyright (c) 2000-2013 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.social.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.kernel.util.InfrastructureUtil;
025    import com.liferay.portal.service.BaseLocalServiceImpl;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.social.service.SocialActivityAchievementLocalService;
036    import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
037    import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
038    import com.liferay.portlet.social.service.SocialActivityLimitLocalService;
039    import com.liferay.portlet.social.service.SocialActivityLocalService;
040    import com.liferay.portlet.social.service.SocialActivitySettingLocalService;
041    import com.liferay.portlet.social.service.SocialActivitySettingService;
042    import com.liferay.portlet.social.service.SocialRelationLocalService;
043    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
044    import com.liferay.portlet.social.service.SocialRequestLocalService;
045    import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
046    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
047    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
048    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
049    import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
050    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
051    import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
052    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
053    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
054    
055    import javax.sql.DataSource;
056    
057    /**
058     * The base implementation of the social request interpreter local service.
059     *
060     * <p>
061     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.social.service.impl.SocialRequestInterpreterLocalServiceImpl}.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see com.liferay.portlet.social.service.impl.SocialRequestInterpreterLocalServiceImpl
066     * @see com.liferay.portlet.social.service.SocialRequestInterpreterLocalServiceUtil
067     * @generated
068     */
069    public abstract class SocialRequestInterpreterLocalServiceBaseImpl
070            extends BaseLocalServiceImpl implements SocialRequestInterpreterLocalService,
071                    IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialRequestInterpreterLocalServiceUtil} to access the social request interpreter local service.
076             */
077    
078            /**
079             * Returns the social activity local service.
080             *
081             * @return the social activity local service
082             */
083            public SocialActivityLocalService getSocialActivityLocalService() {
084                    return socialActivityLocalService;
085            }
086    
087            /**
088             * Sets the social activity local service.
089             *
090             * @param socialActivityLocalService the social activity local service
091             */
092            public void setSocialActivityLocalService(
093                    SocialActivityLocalService socialActivityLocalService) {
094                    this.socialActivityLocalService = socialActivityLocalService;
095            }
096    
097            /**
098             * Returns the social activity persistence.
099             *
100             * @return the social activity persistence
101             */
102            public SocialActivityPersistence getSocialActivityPersistence() {
103                    return socialActivityPersistence;
104            }
105    
106            /**
107             * Sets the social activity persistence.
108             *
109             * @param socialActivityPersistence the social activity persistence
110             */
111            public void setSocialActivityPersistence(
112                    SocialActivityPersistence socialActivityPersistence) {
113                    this.socialActivityPersistence = socialActivityPersistence;
114            }
115    
116            /**
117             * Returns the social activity finder.
118             *
119             * @return the social activity finder
120             */
121            public SocialActivityFinder getSocialActivityFinder() {
122                    return socialActivityFinder;
123            }
124    
125            /**
126             * Sets the social activity finder.
127             *
128             * @param socialActivityFinder the social activity finder
129             */
130            public void setSocialActivityFinder(
131                    SocialActivityFinder socialActivityFinder) {
132                    this.socialActivityFinder = socialActivityFinder;
133            }
134    
135            /**
136             * Returns the social activity achievement local service.
137             *
138             * @return the social activity achievement local service
139             */
140            public SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
141                    return socialActivityAchievementLocalService;
142            }
143    
144            /**
145             * Sets the social activity achievement local service.
146             *
147             * @param socialActivityAchievementLocalService the social activity achievement local service
148             */
149            public void setSocialActivityAchievementLocalService(
150                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
151                    this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
152            }
153    
154            /**
155             * Returns the social activity achievement persistence.
156             *
157             * @return the social activity achievement persistence
158             */
159            public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
160                    return socialActivityAchievementPersistence;
161            }
162    
163            /**
164             * Sets the social activity achievement persistence.
165             *
166             * @param socialActivityAchievementPersistence the social activity achievement persistence
167             */
168            public void setSocialActivityAchievementPersistence(
169                    SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
170                    this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
171            }
172    
173            /**
174             * Returns the social activity counter local service.
175             *
176             * @return the social activity counter local service
177             */
178            public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
179                    return socialActivityCounterLocalService;
180            }
181    
182            /**
183             * Sets the social activity counter local service.
184             *
185             * @param socialActivityCounterLocalService the social activity counter local service
186             */
187            public void setSocialActivityCounterLocalService(
188                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
189                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
190            }
191    
192            /**
193             * Returns the social activity counter persistence.
194             *
195             * @return the social activity counter persistence
196             */
197            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
198                    return socialActivityCounterPersistence;
199            }
200    
201            /**
202             * Sets the social activity counter persistence.
203             *
204             * @param socialActivityCounterPersistence the social activity counter persistence
205             */
206            public void setSocialActivityCounterPersistence(
207                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
208                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
209            }
210    
211            /**
212             * Returns the social activity counter finder.
213             *
214             * @return the social activity counter finder
215             */
216            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
217                    return socialActivityCounterFinder;
218            }
219    
220            /**
221             * Sets the social activity counter finder.
222             *
223             * @param socialActivityCounterFinder the social activity counter finder
224             */
225            public void setSocialActivityCounterFinder(
226                    SocialActivityCounterFinder socialActivityCounterFinder) {
227                    this.socialActivityCounterFinder = socialActivityCounterFinder;
228            }
229    
230            /**
231             * Returns the social activity interpreter local service.
232             *
233             * @return the social activity interpreter local service
234             */
235            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
236                    return socialActivityInterpreterLocalService;
237            }
238    
239            /**
240             * Sets the social activity interpreter local service.
241             *
242             * @param socialActivityInterpreterLocalService the social activity interpreter local service
243             */
244            public void setSocialActivityInterpreterLocalService(
245                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
246                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
247            }
248    
249            /**
250             * Returns the social activity limit local service.
251             *
252             * @return the social activity limit local service
253             */
254            public SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
255                    return socialActivityLimitLocalService;
256            }
257    
258            /**
259             * Sets the social activity limit local service.
260             *
261             * @param socialActivityLimitLocalService the social activity limit local service
262             */
263            public void setSocialActivityLimitLocalService(
264                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
265                    this.socialActivityLimitLocalService = socialActivityLimitLocalService;
266            }
267    
268            /**
269             * Returns the social activity limit persistence.
270             *
271             * @return the social activity limit persistence
272             */
273            public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
274                    return socialActivityLimitPersistence;
275            }
276    
277            /**
278             * Sets the social activity limit persistence.
279             *
280             * @param socialActivityLimitPersistence the social activity limit persistence
281             */
282            public void setSocialActivityLimitPersistence(
283                    SocialActivityLimitPersistence socialActivityLimitPersistence) {
284                    this.socialActivityLimitPersistence = socialActivityLimitPersistence;
285            }
286    
287            /**
288             * Returns the social activity setting local service.
289             *
290             * @return the social activity setting local service
291             */
292            public SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
293                    return socialActivitySettingLocalService;
294            }
295    
296            /**
297             * Sets the social activity setting local service.
298             *
299             * @param socialActivitySettingLocalService the social activity setting local service
300             */
301            public void setSocialActivitySettingLocalService(
302                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
303                    this.socialActivitySettingLocalService = socialActivitySettingLocalService;
304            }
305    
306            /**
307             * Returns the social activity setting remote service.
308             *
309             * @return the social activity setting remote service
310             */
311            public SocialActivitySettingService getSocialActivitySettingService() {
312                    return socialActivitySettingService;
313            }
314    
315            /**
316             * Sets the social activity setting remote service.
317             *
318             * @param socialActivitySettingService the social activity setting remote service
319             */
320            public void setSocialActivitySettingService(
321                    SocialActivitySettingService socialActivitySettingService) {
322                    this.socialActivitySettingService = socialActivitySettingService;
323            }
324    
325            /**
326             * Returns the social activity setting persistence.
327             *
328             * @return the social activity setting persistence
329             */
330            public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
331                    return socialActivitySettingPersistence;
332            }
333    
334            /**
335             * Sets the social activity setting persistence.
336             *
337             * @param socialActivitySettingPersistence the social activity setting persistence
338             */
339            public void setSocialActivitySettingPersistence(
340                    SocialActivitySettingPersistence socialActivitySettingPersistence) {
341                    this.socialActivitySettingPersistence = socialActivitySettingPersistence;
342            }
343    
344            /**
345             * Returns the social relation local service.
346             *
347             * @return the social relation local service
348             */
349            public SocialRelationLocalService getSocialRelationLocalService() {
350                    return socialRelationLocalService;
351            }
352    
353            /**
354             * Sets the social relation local service.
355             *
356             * @param socialRelationLocalService the social relation local service
357             */
358            public void setSocialRelationLocalService(
359                    SocialRelationLocalService socialRelationLocalService) {
360                    this.socialRelationLocalService = socialRelationLocalService;
361            }
362    
363            /**
364             * Returns the social relation persistence.
365             *
366             * @return the social relation persistence
367             */
368            public SocialRelationPersistence getSocialRelationPersistence() {
369                    return socialRelationPersistence;
370            }
371    
372            /**
373             * Sets the social relation persistence.
374             *
375             * @param socialRelationPersistence the social relation persistence
376             */
377            public void setSocialRelationPersistence(
378                    SocialRelationPersistence socialRelationPersistence) {
379                    this.socialRelationPersistence = socialRelationPersistence;
380            }
381    
382            /**
383             * Returns the social request local service.
384             *
385             * @return the social request local service
386             */
387            public SocialRequestLocalService getSocialRequestLocalService() {
388                    return socialRequestLocalService;
389            }
390    
391            /**
392             * Sets the social request local service.
393             *
394             * @param socialRequestLocalService the social request local service
395             */
396            public void setSocialRequestLocalService(
397                    SocialRequestLocalService socialRequestLocalService) {
398                    this.socialRequestLocalService = socialRequestLocalService;
399            }
400    
401            /**
402             * Returns the social request persistence.
403             *
404             * @return the social request persistence
405             */
406            public SocialRequestPersistence getSocialRequestPersistence() {
407                    return socialRequestPersistence;
408            }
409    
410            /**
411             * Sets the social request persistence.
412             *
413             * @param socialRequestPersistence the social request persistence
414             */
415            public void setSocialRequestPersistence(
416                    SocialRequestPersistence socialRequestPersistence) {
417                    this.socialRequestPersistence = socialRequestPersistence;
418            }
419    
420            /**
421             * Returns the social request interpreter local service.
422             *
423             * @return the social request interpreter local service
424             */
425            public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
426                    return socialRequestInterpreterLocalService;
427            }
428    
429            /**
430             * Sets the social request interpreter local service.
431             *
432             * @param socialRequestInterpreterLocalService the social request interpreter local service
433             */
434            public void setSocialRequestInterpreterLocalService(
435                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
436                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
437            }
438    
439            /**
440             * Returns the counter local service.
441             *
442             * @return the counter local service
443             */
444            public CounterLocalService getCounterLocalService() {
445                    return counterLocalService;
446            }
447    
448            /**
449             * Sets the counter local service.
450             *
451             * @param counterLocalService the counter local service
452             */
453            public void setCounterLocalService(CounterLocalService counterLocalService) {
454                    this.counterLocalService = counterLocalService;
455            }
456    
457            /**
458             * Returns the resource local service.
459             *
460             * @return the resource local service
461             */
462            public ResourceLocalService getResourceLocalService() {
463                    return resourceLocalService;
464            }
465    
466            /**
467             * Sets the resource local service.
468             *
469             * @param resourceLocalService the resource local service
470             */
471            public void setResourceLocalService(
472                    ResourceLocalService resourceLocalService) {
473                    this.resourceLocalService = resourceLocalService;
474            }
475    
476            /**
477             * Returns the resource remote service.
478             *
479             * @return the resource remote service
480             */
481            public ResourceService getResourceService() {
482                    return resourceService;
483            }
484    
485            /**
486             * Sets the resource remote service.
487             *
488             * @param resourceService the resource remote service
489             */
490            public void setResourceService(ResourceService resourceService) {
491                    this.resourceService = resourceService;
492            }
493    
494            /**
495             * Returns the resource persistence.
496             *
497             * @return the resource persistence
498             */
499            public ResourcePersistence getResourcePersistence() {
500                    return resourcePersistence;
501            }
502    
503            /**
504             * Sets the resource persistence.
505             *
506             * @param resourcePersistence the resource persistence
507             */
508            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
509                    this.resourcePersistence = resourcePersistence;
510            }
511    
512            /**
513             * Returns the resource finder.
514             *
515             * @return the resource finder
516             */
517            public ResourceFinder getResourceFinder() {
518                    return resourceFinder;
519            }
520    
521            /**
522             * Sets the resource finder.
523             *
524             * @param resourceFinder the resource finder
525             */
526            public void setResourceFinder(ResourceFinder resourceFinder) {
527                    this.resourceFinder = resourceFinder;
528            }
529    
530            /**
531             * Returns the user local service.
532             *
533             * @return the user local service
534             */
535            public UserLocalService getUserLocalService() {
536                    return userLocalService;
537            }
538    
539            /**
540             * Sets the user local service.
541             *
542             * @param userLocalService the user local service
543             */
544            public void setUserLocalService(UserLocalService userLocalService) {
545                    this.userLocalService = userLocalService;
546            }
547    
548            /**
549             * Returns the user remote service.
550             *
551             * @return the user remote service
552             */
553            public UserService getUserService() {
554                    return userService;
555            }
556    
557            /**
558             * Sets the user remote service.
559             *
560             * @param userService the user remote service
561             */
562            public void setUserService(UserService userService) {
563                    this.userService = userService;
564            }
565    
566            /**
567             * Returns the user persistence.
568             *
569             * @return the user persistence
570             */
571            public UserPersistence getUserPersistence() {
572                    return userPersistence;
573            }
574    
575            /**
576             * Sets the user persistence.
577             *
578             * @param userPersistence the user persistence
579             */
580            public void setUserPersistence(UserPersistence userPersistence) {
581                    this.userPersistence = userPersistence;
582            }
583    
584            /**
585             * Returns the user finder.
586             *
587             * @return the user finder
588             */
589            public UserFinder getUserFinder() {
590                    return userFinder;
591            }
592    
593            /**
594             * Sets the user finder.
595             *
596             * @param userFinder the user finder
597             */
598            public void setUserFinder(UserFinder userFinder) {
599                    this.userFinder = userFinder;
600            }
601    
602            public void afterPropertiesSet() {
603            }
604    
605            public void destroy() {
606            }
607    
608            /**
609             * Returns the Spring bean ID for this bean.
610             *
611             * @return the Spring bean ID for this bean
612             */
613            public String getBeanIdentifier() {
614                    return _beanIdentifier;
615            }
616    
617            /**
618             * Sets the Spring bean ID for this bean.
619             *
620             * @param beanIdentifier the Spring bean ID for this bean
621             */
622            public void setBeanIdentifier(String beanIdentifier) {
623                    _beanIdentifier = beanIdentifier;
624            }
625    
626            /**
627             * Performs an SQL query.
628             *
629             * @param sql the sql query
630             */
631            protected void runSQL(String sql) throws SystemException {
632                    try {
633                            DataSource dataSource = InfrastructureUtil.getDataSource();
634    
635                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
636                                            sql, new int[0]);
637    
638                            sqlUpdate.update();
639                    }
640                    catch (Exception e) {
641                            throw new SystemException(e);
642                    }
643            }
644    
645            @BeanReference(type = SocialActivityLocalService.class)
646            protected SocialActivityLocalService socialActivityLocalService;
647            @BeanReference(type = SocialActivityPersistence.class)
648            protected SocialActivityPersistence socialActivityPersistence;
649            @BeanReference(type = SocialActivityFinder.class)
650            protected SocialActivityFinder socialActivityFinder;
651            @BeanReference(type = SocialActivityAchievementLocalService.class)
652            protected SocialActivityAchievementLocalService socialActivityAchievementLocalService;
653            @BeanReference(type = SocialActivityAchievementPersistence.class)
654            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
655            @BeanReference(type = SocialActivityCounterLocalService.class)
656            protected SocialActivityCounterLocalService socialActivityCounterLocalService;
657            @BeanReference(type = SocialActivityCounterPersistence.class)
658            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
659            @BeanReference(type = SocialActivityCounterFinder.class)
660            protected SocialActivityCounterFinder socialActivityCounterFinder;
661            @BeanReference(type = SocialActivityInterpreterLocalService.class)
662            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
663            @BeanReference(type = SocialActivityLimitLocalService.class)
664            protected SocialActivityLimitLocalService socialActivityLimitLocalService;
665            @BeanReference(type = SocialActivityLimitPersistence.class)
666            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
667            @BeanReference(type = SocialActivitySettingLocalService.class)
668            protected SocialActivitySettingLocalService socialActivitySettingLocalService;
669            @BeanReference(type = SocialActivitySettingService.class)
670            protected SocialActivitySettingService socialActivitySettingService;
671            @BeanReference(type = SocialActivitySettingPersistence.class)
672            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
673            @BeanReference(type = SocialRelationLocalService.class)
674            protected SocialRelationLocalService socialRelationLocalService;
675            @BeanReference(type = SocialRelationPersistence.class)
676            protected SocialRelationPersistence socialRelationPersistence;
677            @BeanReference(type = SocialRequestLocalService.class)
678            protected SocialRequestLocalService socialRequestLocalService;
679            @BeanReference(type = SocialRequestPersistence.class)
680            protected SocialRequestPersistence socialRequestPersistence;
681            @BeanReference(type = SocialRequestInterpreterLocalService.class)
682            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
683            @BeanReference(type = CounterLocalService.class)
684            protected CounterLocalService counterLocalService;
685            @BeanReference(type = ResourceLocalService.class)
686            protected ResourceLocalService resourceLocalService;
687            @BeanReference(type = ResourceService.class)
688            protected ResourceService resourceService;
689            @BeanReference(type = ResourcePersistence.class)
690            protected ResourcePersistence resourcePersistence;
691            @BeanReference(type = ResourceFinder.class)
692            protected ResourceFinder resourceFinder;
693            @BeanReference(type = UserLocalService.class)
694            protected UserLocalService userLocalService;
695            @BeanReference(type = UserService.class)
696            protected UserService userService;
697            @BeanReference(type = UserPersistence.class)
698            protected UserPersistence userPersistence;
699            @BeanReference(type = UserFinder.class)
700            protected UserFinder userFinder;
701            private String _beanIdentifier;
702    }