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.social.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.kernel.util.InfrastructureUtil;
024    import com.liferay.portal.service.ResourceLocalService;
025    import com.liferay.portal.service.ResourceService;
026    import com.liferay.portal.service.UserLocalService;
027    import com.liferay.portal.service.UserService;
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.social.service.SocialActivityInterpreterLocalService;
034    import com.liferay.portlet.social.service.SocialActivityLocalService;
035    import com.liferay.portlet.social.service.SocialEquityHistoryLocalService;
036    import com.liferay.portlet.social.service.SocialEquityLogLocalService;
037    import com.liferay.portlet.social.service.SocialEquitySettingLocalService;
038    import com.liferay.portlet.social.service.SocialEquityUserLocalService;
039    import com.liferay.portlet.social.service.SocialRelationLocalService;
040    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
041    import com.liferay.portlet.social.service.SocialRequestLocalService;
042    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
043    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
044    import com.liferay.portlet.social.service.persistence.SocialEquityAssetEntryPersistence;
045    import com.liferay.portlet.social.service.persistence.SocialEquityHistoryPersistence;
046    import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
047    import com.liferay.portlet.social.service.persistence.SocialEquitySettingPersistence;
048    import com.liferay.portlet.social.service.persistence.SocialEquityUserPersistence;
049    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
050    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
051    
052    import javax.sql.DataSource;
053    
054    /**
055     * The base implementation of the social activity interpreter local service.
056     *
057     * <p>
058     * 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.SocialActivityInterpreterLocalServiceImpl}.
059     * </p>
060     *
061     * <p>
062     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialActivityInterpreterLocalServiceUtil} to access the social activity interpreter local service.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl
067     * @see com.liferay.portlet.social.service.SocialActivityInterpreterLocalServiceUtil
068     * @generated
069     */
070    public abstract class SocialActivityInterpreterLocalServiceBaseImpl
071            implements SocialActivityInterpreterLocalService {
072            /**
073             * Gets the social activity local service.
074             *
075             * @return the social activity local service
076             */
077            public SocialActivityLocalService getSocialActivityLocalService() {
078                    return socialActivityLocalService;
079            }
080    
081            /**
082             * Sets the social activity local service.
083             *
084             * @param socialActivityLocalService the social activity local service
085             */
086            public void setSocialActivityLocalService(
087                    SocialActivityLocalService socialActivityLocalService) {
088                    this.socialActivityLocalService = socialActivityLocalService;
089            }
090    
091            /**
092             * Gets the social activity persistence.
093             *
094             * @return the social activity persistence
095             */
096            public SocialActivityPersistence getSocialActivityPersistence() {
097                    return socialActivityPersistence;
098            }
099    
100            /**
101             * Sets the social activity persistence.
102             *
103             * @param socialActivityPersistence the social activity persistence
104             */
105            public void setSocialActivityPersistence(
106                    SocialActivityPersistence socialActivityPersistence) {
107                    this.socialActivityPersistence = socialActivityPersistence;
108            }
109    
110            /**
111             * Gets the social activity finder.
112             *
113             * @return the social activity finder
114             */
115            public SocialActivityFinder getSocialActivityFinder() {
116                    return socialActivityFinder;
117            }
118    
119            /**
120             * Sets the social activity finder.
121             *
122             * @param socialActivityFinder the social activity finder
123             */
124            public void setSocialActivityFinder(
125                    SocialActivityFinder socialActivityFinder) {
126                    this.socialActivityFinder = socialActivityFinder;
127            }
128    
129            /**
130             * Gets the social activity interpreter local service.
131             *
132             * @return the social activity interpreter local service
133             */
134            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
135                    return socialActivityInterpreterLocalService;
136            }
137    
138            /**
139             * Sets the social activity interpreter local service.
140             *
141             * @param socialActivityInterpreterLocalService the social activity interpreter local service
142             */
143            public void setSocialActivityInterpreterLocalService(
144                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
145                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
146            }
147    
148            /**
149             * Gets the social equity asset entry persistence.
150             *
151             * @return the social equity asset entry persistence
152             */
153            public SocialEquityAssetEntryPersistence getSocialEquityAssetEntryPersistence() {
154                    return socialEquityAssetEntryPersistence;
155            }
156    
157            /**
158             * Sets the social equity asset entry persistence.
159             *
160             * @param socialEquityAssetEntryPersistence the social equity asset entry persistence
161             */
162            public void setSocialEquityAssetEntryPersistence(
163                    SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence) {
164                    this.socialEquityAssetEntryPersistence = socialEquityAssetEntryPersistence;
165            }
166    
167            /**
168             * Gets the social equity history local service.
169             *
170             * @return the social equity history local service
171             */
172            public SocialEquityHistoryLocalService getSocialEquityHistoryLocalService() {
173                    return socialEquityHistoryLocalService;
174            }
175    
176            /**
177             * Sets the social equity history local service.
178             *
179             * @param socialEquityHistoryLocalService the social equity history local service
180             */
181            public void setSocialEquityHistoryLocalService(
182                    SocialEquityHistoryLocalService socialEquityHistoryLocalService) {
183                    this.socialEquityHistoryLocalService = socialEquityHistoryLocalService;
184            }
185    
186            /**
187             * Gets the social equity history persistence.
188             *
189             * @return the social equity history persistence
190             */
191            public SocialEquityHistoryPersistence getSocialEquityHistoryPersistence() {
192                    return socialEquityHistoryPersistence;
193            }
194    
195            /**
196             * Sets the social equity history persistence.
197             *
198             * @param socialEquityHistoryPersistence the social equity history persistence
199             */
200            public void setSocialEquityHistoryPersistence(
201                    SocialEquityHistoryPersistence socialEquityHistoryPersistence) {
202                    this.socialEquityHistoryPersistence = socialEquityHistoryPersistence;
203            }
204    
205            /**
206             * Gets the social equity log local service.
207             *
208             * @return the social equity log local service
209             */
210            public SocialEquityLogLocalService getSocialEquityLogLocalService() {
211                    return socialEquityLogLocalService;
212            }
213    
214            /**
215             * Sets the social equity log local service.
216             *
217             * @param socialEquityLogLocalService the social equity log local service
218             */
219            public void setSocialEquityLogLocalService(
220                    SocialEquityLogLocalService socialEquityLogLocalService) {
221                    this.socialEquityLogLocalService = socialEquityLogLocalService;
222            }
223    
224            /**
225             * Gets the social equity log persistence.
226             *
227             * @return the social equity log persistence
228             */
229            public SocialEquityLogPersistence getSocialEquityLogPersistence() {
230                    return socialEquityLogPersistence;
231            }
232    
233            /**
234             * Sets the social equity log persistence.
235             *
236             * @param socialEquityLogPersistence the social equity log persistence
237             */
238            public void setSocialEquityLogPersistence(
239                    SocialEquityLogPersistence socialEquityLogPersistence) {
240                    this.socialEquityLogPersistence = socialEquityLogPersistence;
241            }
242    
243            /**
244             * Gets the social equity setting local service.
245             *
246             * @return the social equity setting local service
247             */
248            public SocialEquitySettingLocalService getSocialEquitySettingLocalService() {
249                    return socialEquitySettingLocalService;
250            }
251    
252            /**
253             * Sets the social equity setting local service.
254             *
255             * @param socialEquitySettingLocalService the social equity setting local service
256             */
257            public void setSocialEquitySettingLocalService(
258                    SocialEquitySettingLocalService socialEquitySettingLocalService) {
259                    this.socialEquitySettingLocalService = socialEquitySettingLocalService;
260            }
261    
262            /**
263             * Gets the social equity setting persistence.
264             *
265             * @return the social equity setting persistence
266             */
267            public SocialEquitySettingPersistence getSocialEquitySettingPersistence() {
268                    return socialEquitySettingPersistence;
269            }
270    
271            /**
272             * Sets the social equity setting persistence.
273             *
274             * @param socialEquitySettingPersistence the social equity setting persistence
275             */
276            public void setSocialEquitySettingPersistence(
277                    SocialEquitySettingPersistence socialEquitySettingPersistence) {
278                    this.socialEquitySettingPersistence = socialEquitySettingPersistence;
279            }
280    
281            /**
282             * Gets the social equity user local service.
283             *
284             * @return the social equity user local service
285             */
286            public SocialEquityUserLocalService getSocialEquityUserLocalService() {
287                    return socialEquityUserLocalService;
288            }
289    
290            /**
291             * Sets the social equity user local service.
292             *
293             * @param socialEquityUserLocalService the social equity user local service
294             */
295            public void setSocialEquityUserLocalService(
296                    SocialEquityUserLocalService socialEquityUserLocalService) {
297                    this.socialEquityUserLocalService = socialEquityUserLocalService;
298            }
299    
300            /**
301             * Gets the social equity user persistence.
302             *
303             * @return the social equity user persistence
304             */
305            public SocialEquityUserPersistence getSocialEquityUserPersistence() {
306                    return socialEquityUserPersistence;
307            }
308    
309            /**
310             * Sets the social equity user persistence.
311             *
312             * @param socialEquityUserPersistence the social equity user persistence
313             */
314            public void setSocialEquityUserPersistence(
315                    SocialEquityUserPersistence socialEquityUserPersistence) {
316                    this.socialEquityUserPersistence = socialEquityUserPersistence;
317            }
318    
319            /**
320             * Gets the social relation local service.
321             *
322             * @return the social relation local service
323             */
324            public SocialRelationLocalService getSocialRelationLocalService() {
325                    return socialRelationLocalService;
326            }
327    
328            /**
329             * Sets the social relation local service.
330             *
331             * @param socialRelationLocalService the social relation local service
332             */
333            public void setSocialRelationLocalService(
334                    SocialRelationLocalService socialRelationLocalService) {
335                    this.socialRelationLocalService = socialRelationLocalService;
336            }
337    
338            /**
339             * Gets the social relation persistence.
340             *
341             * @return the social relation persistence
342             */
343            public SocialRelationPersistence getSocialRelationPersistence() {
344                    return socialRelationPersistence;
345            }
346    
347            /**
348             * Sets the social relation persistence.
349             *
350             * @param socialRelationPersistence the social relation persistence
351             */
352            public void setSocialRelationPersistence(
353                    SocialRelationPersistence socialRelationPersistence) {
354                    this.socialRelationPersistence = socialRelationPersistence;
355            }
356    
357            /**
358             * Gets the social request local service.
359             *
360             * @return the social request local service
361             */
362            public SocialRequestLocalService getSocialRequestLocalService() {
363                    return socialRequestLocalService;
364            }
365    
366            /**
367             * Sets the social request local service.
368             *
369             * @param socialRequestLocalService the social request local service
370             */
371            public void setSocialRequestLocalService(
372                    SocialRequestLocalService socialRequestLocalService) {
373                    this.socialRequestLocalService = socialRequestLocalService;
374            }
375    
376            /**
377             * Gets the social request persistence.
378             *
379             * @return the social request persistence
380             */
381            public SocialRequestPersistence getSocialRequestPersistence() {
382                    return socialRequestPersistence;
383            }
384    
385            /**
386             * Sets the social request persistence.
387             *
388             * @param socialRequestPersistence the social request persistence
389             */
390            public void setSocialRequestPersistence(
391                    SocialRequestPersistence socialRequestPersistence) {
392                    this.socialRequestPersistence = socialRequestPersistence;
393            }
394    
395            /**
396             * Gets the social request interpreter local service.
397             *
398             * @return the social request interpreter local service
399             */
400            public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
401                    return socialRequestInterpreterLocalService;
402            }
403    
404            /**
405             * Sets the social request interpreter local service.
406             *
407             * @param socialRequestInterpreterLocalService the social request interpreter local service
408             */
409            public void setSocialRequestInterpreterLocalService(
410                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
411                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
412            }
413    
414            /**
415             * Gets the counter local service.
416             *
417             * @return the counter local service
418             */
419            public CounterLocalService getCounterLocalService() {
420                    return counterLocalService;
421            }
422    
423            /**
424             * Sets the counter local service.
425             *
426             * @param counterLocalService the counter local service
427             */
428            public void setCounterLocalService(CounterLocalService counterLocalService) {
429                    this.counterLocalService = counterLocalService;
430            }
431    
432            /**
433             * Gets the resource local service.
434             *
435             * @return the resource local service
436             */
437            public ResourceLocalService getResourceLocalService() {
438                    return resourceLocalService;
439            }
440    
441            /**
442             * Sets the resource local service.
443             *
444             * @param resourceLocalService the resource local service
445             */
446            public void setResourceLocalService(
447                    ResourceLocalService resourceLocalService) {
448                    this.resourceLocalService = resourceLocalService;
449            }
450    
451            /**
452             * Gets the resource remote service.
453             *
454             * @return the resource remote service
455             */
456            public ResourceService getResourceService() {
457                    return resourceService;
458            }
459    
460            /**
461             * Sets the resource remote service.
462             *
463             * @param resourceService the resource remote service
464             */
465            public void setResourceService(ResourceService resourceService) {
466                    this.resourceService = resourceService;
467            }
468    
469            /**
470             * Gets the resource persistence.
471             *
472             * @return the resource persistence
473             */
474            public ResourcePersistence getResourcePersistence() {
475                    return resourcePersistence;
476            }
477    
478            /**
479             * Sets the resource persistence.
480             *
481             * @param resourcePersistence the resource persistence
482             */
483            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
484                    this.resourcePersistence = resourcePersistence;
485            }
486    
487            /**
488             * Gets the resource finder.
489             *
490             * @return the resource finder
491             */
492            public ResourceFinder getResourceFinder() {
493                    return resourceFinder;
494            }
495    
496            /**
497             * Sets the resource finder.
498             *
499             * @param resourceFinder the resource finder
500             */
501            public void setResourceFinder(ResourceFinder resourceFinder) {
502                    this.resourceFinder = resourceFinder;
503            }
504    
505            /**
506             * Gets the user local service.
507             *
508             * @return the user local service
509             */
510            public UserLocalService getUserLocalService() {
511                    return userLocalService;
512            }
513    
514            /**
515             * Sets the user local service.
516             *
517             * @param userLocalService the user local service
518             */
519            public void setUserLocalService(UserLocalService userLocalService) {
520                    this.userLocalService = userLocalService;
521            }
522    
523            /**
524             * Gets the user remote service.
525             *
526             * @return the user remote service
527             */
528            public UserService getUserService() {
529                    return userService;
530            }
531    
532            /**
533             * Sets the user remote service.
534             *
535             * @param userService the user remote service
536             */
537            public void setUserService(UserService userService) {
538                    this.userService = userService;
539            }
540    
541            /**
542             * Gets the user persistence.
543             *
544             * @return the user persistence
545             */
546            public UserPersistence getUserPersistence() {
547                    return userPersistence;
548            }
549    
550            /**
551             * Sets the user persistence.
552             *
553             * @param userPersistence the user persistence
554             */
555            public void setUserPersistence(UserPersistence userPersistence) {
556                    this.userPersistence = userPersistence;
557            }
558    
559            /**
560             * Gets the user finder.
561             *
562             * @return the user finder
563             */
564            public UserFinder getUserFinder() {
565                    return userFinder;
566            }
567    
568            /**
569             * Sets the user finder.
570             *
571             * @param userFinder the user finder
572             */
573            public void setUserFinder(UserFinder userFinder) {
574                    this.userFinder = userFinder;
575            }
576    
577            /**
578             * Performs an SQL query.
579             *
580             * @param sql the sql query to perform
581             */
582            protected void runSQL(String sql) throws SystemException {
583                    try {
584                            DataSource dataSource = InfrastructureUtil.getDataSource();
585    
586                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
587                                            sql, new int[0]);
588    
589                            sqlUpdate.update();
590                    }
591                    catch (Exception e) {
592                            throw new SystemException(e);
593                    }
594            }
595    
596            @BeanReference(type = SocialActivityLocalService.class)
597            protected SocialActivityLocalService socialActivityLocalService;
598            @BeanReference(type = SocialActivityPersistence.class)
599            protected SocialActivityPersistence socialActivityPersistence;
600            @BeanReference(type = SocialActivityFinder.class)
601            protected SocialActivityFinder socialActivityFinder;
602            @BeanReference(type = SocialActivityInterpreterLocalService.class)
603            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
604            @BeanReference(type = SocialEquityAssetEntryPersistence.class)
605            protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence;
606            @BeanReference(type = SocialEquityHistoryLocalService.class)
607            protected SocialEquityHistoryLocalService socialEquityHistoryLocalService;
608            @BeanReference(type = SocialEquityHistoryPersistence.class)
609            protected SocialEquityHistoryPersistence socialEquityHistoryPersistence;
610            @BeanReference(type = SocialEquityLogLocalService.class)
611            protected SocialEquityLogLocalService socialEquityLogLocalService;
612            @BeanReference(type = SocialEquityLogPersistence.class)
613            protected SocialEquityLogPersistence socialEquityLogPersistence;
614            @BeanReference(type = SocialEquitySettingLocalService.class)
615            protected SocialEquitySettingLocalService socialEquitySettingLocalService;
616            @BeanReference(type = SocialEquitySettingPersistence.class)
617            protected SocialEquitySettingPersistence socialEquitySettingPersistence;
618            @BeanReference(type = SocialEquityUserLocalService.class)
619            protected SocialEquityUserLocalService socialEquityUserLocalService;
620            @BeanReference(type = SocialEquityUserPersistence.class)
621            protected SocialEquityUserPersistence socialEquityUserPersistence;
622            @BeanReference(type = SocialRelationLocalService.class)
623            protected SocialRelationLocalService socialRelationLocalService;
624            @BeanReference(type = SocialRelationPersistence.class)
625            protected SocialRelationPersistence socialRelationPersistence;
626            @BeanReference(type = SocialRequestLocalService.class)
627            protected SocialRequestLocalService socialRequestLocalService;
628            @BeanReference(type = SocialRequestPersistence.class)
629            protected SocialRequestPersistence socialRequestPersistence;
630            @BeanReference(type = SocialRequestInterpreterLocalService.class)
631            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
632            @BeanReference(type = CounterLocalService.class)
633            protected CounterLocalService counterLocalService;
634            @BeanReference(type = ResourceLocalService.class)
635            protected ResourceLocalService resourceLocalService;
636            @BeanReference(type = ResourceService.class)
637            protected ResourceService resourceService;
638            @BeanReference(type = ResourcePersistence.class)
639            protected ResourcePersistence resourcePersistence;
640            @BeanReference(type = ResourceFinder.class)
641            protected ResourceFinder resourceFinder;
642            @BeanReference(type = UserLocalService.class)
643            protected UserLocalService userLocalService;
644            @BeanReference(type = UserService.class)
645            protected UserService userService;
646            @BeanReference(type = UserPersistence.class)
647            protected UserPersistence userPersistence;
648            @BeanReference(type = UserFinder.class)
649            protected UserFinder userFinder;
650    }