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.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.LayoutLocalService;
035    import com.liferay.portal.service.LayoutService;
036    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
037    import com.liferay.portal.service.ResourceLocalService;
038    import com.liferay.portal.service.ResourceService;
039    import com.liferay.portal.service.UserLocalService;
040    import com.liferay.portal.service.UserService;
041    import com.liferay.portal.service.persistence.GroupFinder;
042    import com.liferay.portal.service.persistence.GroupPersistence;
043    import com.liferay.portal.service.persistence.LayoutFinder;
044    import com.liferay.portal.service.persistence.LayoutPersistence;
045    import com.liferay.portal.service.persistence.ResourceFinder;
046    import com.liferay.portal.service.persistence.ResourcePersistence;
047    import com.liferay.portal.service.persistence.UserFinder;
048    import com.liferay.portal.service.persistence.UserPersistence;
049    
050    import com.liferay.portlet.asset.service.AssetEntryLocalService;
051    import com.liferay.portlet.asset.service.AssetEntryService;
052    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
053    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
054    import com.liferay.portlet.social.model.SocialActivity;
055    import com.liferay.portlet.social.service.SocialActivityAchievementLocalService;
056    import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
057    import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
058    import com.liferay.portlet.social.service.SocialActivityLimitLocalService;
059    import com.liferay.portlet.social.service.SocialActivityLocalService;
060    import com.liferay.portlet.social.service.SocialActivitySettingLocalService;
061    import com.liferay.portlet.social.service.SocialActivitySettingService;
062    import com.liferay.portlet.social.service.SocialRelationLocalService;
063    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
064    import com.liferay.portlet.social.service.SocialRequestLocalService;
065    import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
066    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
067    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
068    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
069    import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
070    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
071    import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
072    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
073    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
074    
075    import java.io.Serializable;
076    
077    import java.util.List;
078    
079    import javax.sql.DataSource;
080    
081    /**
082     * The base implementation of the social activity local service.
083     *
084     * <p>
085     * 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.SocialActivityLocalServiceImpl}.
086     * </p>
087     *
088     * @author Brian Wing Shun Chan
089     * @see com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl
090     * @see com.liferay.portlet.social.service.SocialActivityLocalServiceUtil
091     * @generated
092     */
093    public abstract class SocialActivityLocalServiceBaseImpl
094            extends BaseLocalServiceImpl implements SocialActivityLocalService,
095                    IdentifiableBean {
096            /*
097             * NOTE FOR DEVELOPERS:
098             *
099             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialActivityLocalServiceUtil} to access the social activity local service.
100             */
101    
102            /**
103             * Adds the social activity to the database. Also notifies the appropriate model listeners.
104             *
105             * @param socialActivity the social activity
106             * @return the social activity that was added
107             * @throws SystemException if a system exception occurred
108             */
109            @Indexable(type = IndexableType.REINDEX)
110            public SocialActivity addSocialActivity(SocialActivity socialActivity)
111                    throws SystemException {
112                    socialActivity.setNew(true);
113    
114                    return socialActivityPersistence.update(socialActivity, false);
115            }
116    
117            /**
118             * Creates a new social activity with the primary key. Does not add the social activity to the database.
119             *
120             * @param activityId the primary key for the new social activity
121             * @return the new social activity
122             */
123            public SocialActivity createSocialActivity(long activityId) {
124                    return socialActivityPersistence.create(activityId);
125            }
126    
127            /**
128             * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
129             *
130             * @param activityId the primary key of the social activity
131             * @return the social activity that was removed
132             * @throws PortalException if a social activity with the primary key could not be found
133             * @throws SystemException if a system exception occurred
134             */
135            @Indexable(type = IndexableType.DELETE)
136            public SocialActivity deleteSocialActivity(long activityId)
137                    throws PortalException, SystemException {
138                    return socialActivityPersistence.remove(activityId);
139            }
140    
141            /**
142             * Deletes the social activity from the database. Also notifies the appropriate model listeners.
143             *
144             * @param socialActivity the social activity
145             * @return the social activity that was removed
146             * @throws SystemException if a system exception occurred
147             */
148            @Indexable(type = IndexableType.DELETE)
149            public SocialActivity deleteSocialActivity(SocialActivity socialActivity)
150                    throws SystemException {
151                    return socialActivityPersistence.remove(socialActivity);
152            }
153    
154            public DynamicQuery dynamicQuery() {
155                    Class<?> clazz = getClass();
156    
157                    return DynamicQueryFactoryUtil.forClass(SocialActivity.class,
158                            clazz.getClassLoader());
159            }
160    
161            /**
162             * Performs a dynamic query on the database and returns the matching rows.
163             *
164             * @param dynamicQuery the dynamic query
165             * @return the matching rows
166             * @throws SystemException if a system exception occurred
167             */
168            @SuppressWarnings("rawtypes")
169            public List dynamicQuery(DynamicQuery dynamicQuery)
170                    throws SystemException {
171                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery);
172            }
173    
174            /**
175             * Performs a dynamic query on the database and returns a range of the matching rows.
176             *
177             * <p>
178             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
179             * </p>
180             *
181             * @param dynamicQuery the dynamic query
182             * @param start the lower bound of the range of model instances
183             * @param end the upper bound of the range of model instances (not inclusive)
184             * @return the range of matching rows
185             * @throws SystemException if a system exception occurred
186             */
187            @SuppressWarnings("rawtypes")
188            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
189                    throws SystemException {
190                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery,
191                            start, end);
192            }
193    
194            /**
195             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
196             *
197             * <p>
198             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
199             * </p>
200             *
201             * @param dynamicQuery the dynamic query
202             * @param start the lower bound of the range of model instances
203             * @param end the upper bound of the range of model instances (not inclusive)
204             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
205             * @return the ordered range of matching rows
206             * @throws SystemException if a system exception occurred
207             */
208            @SuppressWarnings("rawtypes")
209            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
210                    OrderByComparator orderByComparator) throws SystemException {
211                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery,
212                            start, end, orderByComparator);
213            }
214    
215            /**
216             * Returns the number of rows that match the dynamic query.
217             *
218             * @param dynamicQuery the dynamic query
219             * @return the number of rows that match the dynamic query
220             * @throws SystemException if a system exception occurred
221             */
222            public long dynamicQueryCount(DynamicQuery dynamicQuery)
223                    throws SystemException {
224                    return socialActivityPersistence.countWithDynamicQuery(dynamicQuery);
225            }
226    
227            public SocialActivity fetchSocialActivity(long activityId)
228                    throws SystemException {
229                    return socialActivityPersistence.fetchByPrimaryKey(activityId);
230            }
231    
232            /**
233             * Returns the social activity with the primary key.
234             *
235             * @param activityId the primary key of the social activity
236             * @return the social activity
237             * @throws PortalException if a social activity with the primary key could not be found
238             * @throws SystemException if a system exception occurred
239             */
240            public SocialActivity getSocialActivity(long activityId)
241                    throws PortalException, SystemException {
242                    return socialActivityPersistence.findByPrimaryKey(activityId);
243            }
244    
245            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
246                    throws PortalException, SystemException {
247                    return socialActivityPersistence.findByPrimaryKey(primaryKeyObj);
248            }
249    
250            /**
251             * Returns a range of all the social activities.
252             *
253             * <p>
254             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
255             * </p>
256             *
257             * @param start the lower bound of the range of social activities
258             * @param end the upper bound of the range of social activities (not inclusive)
259             * @return the range of social activities
260             * @throws SystemException if a system exception occurred
261             */
262            public List<SocialActivity> getSocialActivities(int start, int end)
263                    throws SystemException {
264                    return socialActivityPersistence.findAll(start, end);
265            }
266    
267            /**
268             * Returns the number of social activities.
269             *
270             * @return the number of social activities
271             * @throws SystemException if a system exception occurred
272             */
273            public int getSocialActivitiesCount() throws SystemException {
274                    return socialActivityPersistence.countAll();
275            }
276    
277            /**
278             * Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
279             *
280             * @param socialActivity the social activity
281             * @return the social activity that was updated
282             * @throws SystemException if a system exception occurred
283             */
284            @Indexable(type = IndexableType.REINDEX)
285            public SocialActivity updateSocialActivity(SocialActivity socialActivity)
286                    throws SystemException {
287                    return updateSocialActivity(socialActivity, true);
288            }
289    
290            /**
291             * Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
292             *
293             * @param socialActivity the social activity
294             * @param merge whether to merge the social activity with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
295             * @return the social activity that was updated
296             * @throws SystemException if a system exception occurred
297             */
298            @Indexable(type = IndexableType.REINDEX)
299            public SocialActivity updateSocialActivity(SocialActivity socialActivity,
300                    boolean merge) throws SystemException {
301                    socialActivity.setNew(false);
302    
303                    return socialActivityPersistence.update(socialActivity, merge);
304            }
305    
306            /**
307             * Returns the social activity local service.
308             *
309             * @return the social activity local service
310             */
311            public SocialActivityLocalService getSocialActivityLocalService() {
312                    return socialActivityLocalService;
313            }
314    
315            /**
316             * Sets the social activity local service.
317             *
318             * @param socialActivityLocalService the social activity local service
319             */
320            public void setSocialActivityLocalService(
321                    SocialActivityLocalService socialActivityLocalService) {
322                    this.socialActivityLocalService = socialActivityLocalService;
323            }
324    
325            /**
326             * Returns the social activity persistence.
327             *
328             * @return the social activity persistence
329             */
330            public SocialActivityPersistence getSocialActivityPersistence() {
331                    return socialActivityPersistence;
332            }
333    
334            /**
335             * Sets the social activity persistence.
336             *
337             * @param socialActivityPersistence the social activity persistence
338             */
339            public void setSocialActivityPersistence(
340                    SocialActivityPersistence socialActivityPersistence) {
341                    this.socialActivityPersistence = socialActivityPersistence;
342            }
343    
344            /**
345             * Returns the social activity finder.
346             *
347             * @return the social activity finder
348             */
349            public SocialActivityFinder getSocialActivityFinder() {
350                    return socialActivityFinder;
351            }
352    
353            /**
354             * Sets the social activity finder.
355             *
356             * @param socialActivityFinder the social activity finder
357             */
358            public void setSocialActivityFinder(
359                    SocialActivityFinder socialActivityFinder) {
360                    this.socialActivityFinder = socialActivityFinder;
361            }
362    
363            /**
364             * Returns the social activity achievement local service.
365             *
366             * @return the social activity achievement local service
367             */
368            public SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
369                    return socialActivityAchievementLocalService;
370            }
371    
372            /**
373             * Sets the social activity achievement local service.
374             *
375             * @param socialActivityAchievementLocalService the social activity achievement local service
376             */
377            public void setSocialActivityAchievementLocalService(
378                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
379                    this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
380            }
381    
382            /**
383             * Returns the social activity achievement persistence.
384             *
385             * @return the social activity achievement persistence
386             */
387            public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
388                    return socialActivityAchievementPersistence;
389            }
390    
391            /**
392             * Sets the social activity achievement persistence.
393             *
394             * @param socialActivityAchievementPersistence the social activity achievement persistence
395             */
396            public void setSocialActivityAchievementPersistence(
397                    SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
398                    this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
399            }
400    
401            /**
402             * Returns the social activity counter local service.
403             *
404             * @return the social activity counter local service
405             */
406            public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
407                    return socialActivityCounterLocalService;
408            }
409    
410            /**
411             * Sets the social activity counter local service.
412             *
413             * @param socialActivityCounterLocalService the social activity counter local service
414             */
415            public void setSocialActivityCounterLocalService(
416                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
417                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
418            }
419    
420            /**
421             * Returns the social activity counter persistence.
422             *
423             * @return the social activity counter persistence
424             */
425            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
426                    return socialActivityCounterPersistence;
427            }
428    
429            /**
430             * Sets the social activity counter persistence.
431             *
432             * @param socialActivityCounterPersistence the social activity counter persistence
433             */
434            public void setSocialActivityCounterPersistence(
435                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
436                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
437            }
438    
439            /**
440             * Returns the social activity counter finder.
441             *
442             * @return the social activity counter finder
443             */
444            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
445                    return socialActivityCounterFinder;
446            }
447    
448            /**
449             * Sets the social activity counter finder.
450             *
451             * @param socialActivityCounterFinder the social activity counter finder
452             */
453            public void setSocialActivityCounterFinder(
454                    SocialActivityCounterFinder socialActivityCounterFinder) {
455                    this.socialActivityCounterFinder = socialActivityCounterFinder;
456            }
457    
458            /**
459             * Returns the social activity interpreter local service.
460             *
461             * @return the social activity interpreter local service
462             */
463            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
464                    return socialActivityInterpreterLocalService;
465            }
466    
467            /**
468             * Sets the social activity interpreter local service.
469             *
470             * @param socialActivityInterpreterLocalService the social activity interpreter local service
471             */
472            public void setSocialActivityInterpreterLocalService(
473                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
474                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
475            }
476    
477            /**
478             * Returns the social activity limit local service.
479             *
480             * @return the social activity limit local service
481             */
482            public SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
483                    return socialActivityLimitLocalService;
484            }
485    
486            /**
487             * Sets the social activity limit local service.
488             *
489             * @param socialActivityLimitLocalService the social activity limit local service
490             */
491            public void setSocialActivityLimitLocalService(
492                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
493                    this.socialActivityLimitLocalService = socialActivityLimitLocalService;
494            }
495    
496            /**
497             * Returns the social activity limit persistence.
498             *
499             * @return the social activity limit persistence
500             */
501            public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
502                    return socialActivityLimitPersistence;
503            }
504    
505            /**
506             * Sets the social activity limit persistence.
507             *
508             * @param socialActivityLimitPersistence the social activity limit persistence
509             */
510            public void setSocialActivityLimitPersistence(
511                    SocialActivityLimitPersistence socialActivityLimitPersistence) {
512                    this.socialActivityLimitPersistence = socialActivityLimitPersistence;
513            }
514    
515            /**
516             * Returns the social activity setting local service.
517             *
518             * @return the social activity setting local service
519             */
520            public SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
521                    return socialActivitySettingLocalService;
522            }
523    
524            /**
525             * Sets the social activity setting local service.
526             *
527             * @param socialActivitySettingLocalService the social activity setting local service
528             */
529            public void setSocialActivitySettingLocalService(
530                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
531                    this.socialActivitySettingLocalService = socialActivitySettingLocalService;
532            }
533    
534            /**
535             * Returns the social activity setting remote service.
536             *
537             * @return the social activity setting remote service
538             */
539            public SocialActivitySettingService getSocialActivitySettingService() {
540                    return socialActivitySettingService;
541            }
542    
543            /**
544             * Sets the social activity setting remote service.
545             *
546             * @param socialActivitySettingService the social activity setting remote service
547             */
548            public void setSocialActivitySettingService(
549                    SocialActivitySettingService socialActivitySettingService) {
550                    this.socialActivitySettingService = socialActivitySettingService;
551            }
552    
553            /**
554             * Returns the social activity setting persistence.
555             *
556             * @return the social activity setting persistence
557             */
558            public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
559                    return socialActivitySettingPersistence;
560            }
561    
562            /**
563             * Sets the social activity setting persistence.
564             *
565             * @param socialActivitySettingPersistence the social activity setting persistence
566             */
567            public void setSocialActivitySettingPersistence(
568                    SocialActivitySettingPersistence socialActivitySettingPersistence) {
569                    this.socialActivitySettingPersistence = socialActivitySettingPersistence;
570            }
571    
572            /**
573             * Returns the social relation local service.
574             *
575             * @return the social relation local service
576             */
577            public SocialRelationLocalService getSocialRelationLocalService() {
578                    return socialRelationLocalService;
579            }
580    
581            /**
582             * Sets the social relation local service.
583             *
584             * @param socialRelationLocalService the social relation local service
585             */
586            public void setSocialRelationLocalService(
587                    SocialRelationLocalService socialRelationLocalService) {
588                    this.socialRelationLocalService = socialRelationLocalService;
589            }
590    
591            /**
592             * Returns the social relation persistence.
593             *
594             * @return the social relation persistence
595             */
596            public SocialRelationPersistence getSocialRelationPersistence() {
597                    return socialRelationPersistence;
598            }
599    
600            /**
601             * Sets the social relation persistence.
602             *
603             * @param socialRelationPersistence the social relation persistence
604             */
605            public void setSocialRelationPersistence(
606                    SocialRelationPersistence socialRelationPersistence) {
607                    this.socialRelationPersistence = socialRelationPersistence;
608            }
609    
610            /**
611             * Returns the social request local service.
612             *
613             * @return the social request local service
614             */
615            public SocialRequestLocalService getSocialRequestLocalService() {
616                    return socialRequestLocalService;
617            }
618    
619            /**
620             * Sets the social request local service.
621             *
622             * @param socialRequestLocalService the social request local service
623             */
624            public void setSocialRequestLocalService(
625                    SocialRequestLocalService socialRequestLocalService) {
626                    this.socialRequestLocalService = socialRequestLocalService;
627            }
628    
629            /**
630             * Returns the social request persistence.
631             *
632             * @return the social request persistence
633             */
634            public SocialRequestPersistence getSocialRequestPersistence() {
635                    return socialRequestPersistence;
636            }
637    
638            /**
639             * Sets the social request persistence.
640             *
641             * @param socialRequestPersistence the social request persistence
642             */
643            public void setSocialRequestPersistence(
644                    SocialRequestPersistence socialRequestPersistence) {
645                    this.socialRequestPersistence = socialRequestPersistence;
646            }
647    
648            /**
649             * Returns the social request interpreter local service.
650             *
651             * @return the social request interpreter local service
652             */
653            public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
654                    return socialRequestInterpreterLocalService;
655            }
656    
657            /**
658             * Sets the social request interpreter local service.
659             *
660             * @param socialRequestInterpreterLocalService the social request interpreter local service
661             */
662            public void setSocialRequestInterpreterLocalService(
663                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
664                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
665            }
666    
667            /**
668             * Returns the counter local service.
669             *
670             * @return the counter local service
671             */
672            public CounterLocalService getCounterLocalService() {
673                    return counterLocalService;
674            }
675    
676            /**
677             * Sets the counter local service.
678             *
679             * @param counterLocalService the counter local service
680             */
681            public void setCounterLocalService(CounterLocalService counterLocalService) {
682                    this.counterLocalService = counterLocalService;
683            }
684    
685            /**
686             * Returns the group local service.
687             *
688             * @return the group local service
689             */
690            public GroupLocalService getGroupLocalService() {
691                    return groupLocalService;
692            }
693    
694            /**
695             * Sets the group local service.
696             *
697             * @param groupLocalService the group local service
698             */
699            public void setGroupLocalService(GroupLocalService groupLocalService) {
700                    this.groupLocalService = groupLocalService;
701            }
702    
703            /**
704             * Returns the group remote service.
705             *
706             * @return the group remote service
707             */
708            public GroupService getGroupService() {
709                    return groupService;
710            }
711    
712            /**
713             * Sets the group remote service.
714             *
715             * @param groupService the group remote service
716             */
717            public void setGroupService(GroupService groupService) {
718                    this.groupService = groupService;
719            }
720    
721            /**
722             * Returns the group persistence.
723             *
724             * @return the group persistence
725             */
726            public GroupPersistence getGroupPersistence() {
727                    return groupPersistence;
728            }
729    
730            /**
731             * Sets the group persistence.
732             *
733             * @param groupPersistence the group persistence
734             */
735            public void setGroupPersistence(GroupPersistence groupPersistence) {
736                    this.groupPersistence = groupPersistence;
737            }
738    
739            /**
740             * Returns the group finder.
741             *
742             * @return the group finder
743             */
744            public GroupFinder getGroupFinder() {
745                    return groupFinder;
746            }
747    
748            /**
749             * Sets the group finder.
750             *
751             * @param groupFinder the group finder
752             */
753            public void setGroupFinder(GroupFinder groupFinder) {
754                    this.groupFinder = groupFinder;
755            }
756    
757            /**
758             * Returns the layout local service.
759             *
760             * @return the layout local service
761             */
762            public LayoutLocalService getLayoutLocalService() {
763                    return layoutLocalService;
764            }
765    
766            /**
767             * Sets the layout local service.
768             *
769             * @param layoutLocalService the layout local service
770             */
771            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
772                    this.layoutLocalService = layoutLocalService;
773            }
774    
775            /**
776             * Returns the layout remote service.
777             *
778             * @return the layout remote service
779             */
780            public LayoutService getLayoutService() {
781                    return layoutService;
782            }
783    
784            /**
785             * Sets the layout remote service.
786             *
787             * @param layoutService the layout remote service
788             */
789            public void setLayoutService(LayoutService layoutService) {
790                    this.layoutService = layoutService;
791            }
792    
793            /**
794             * Returns the layout persistence.
795             *
796             * @return the layout persistence
797             */
798            public LayoutPersistence getLayoutPersistence() {
799                    return layoutPersistence;
800            }
801    
802            /**
803             * Sets the layout persistence.
804             *
805             * @param layoutPersistence the layout persistence
806             */
807            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
808                    this.layoutPersistence = layoutPersistence;
809            }
810    
811            /**
812             * Returns the layout finder.
813             *
814             * @return the layout finder
815             */
816            public LayoutFinder getLayoutFinder() {
817                    return layoutFinder;
818            }
819    
820            /**
821             * Sets the layout finder.
822             *
823             * @param layoutFinder the layout finder
824             */
825            public void setLayoutFinder(LayoutFinder layoutFinder) {
826                    this.layoutFinder = layoutFinder;
827            }
828    
829            /**
830             * Returns the resource local service.
831             *
832             * @return the resource local service
833             */
834            public ResourceLocalService getResourceLocalService() {
835                    return resourceLocalService;
836            }
837    
838            /**
839             * Sets the resource local service.
840             *
841             * @param resourceLocalService the resource local service
842             */
843            public void setResourceLocalService(
844                    ResourceLocalService resourceLocalService) {
845                    this.resourceLocalService = resourceLocalService;
846            }
847    
848            /**
849             * Returns the resource remote service.
850             *
851             * @return the resource remote service
852             */
853            public ResourceService getResourceService() {
854                    return resourceService;
855            }
856    
857            /**
858             * Sets the resource remote service.
859             *
860             * @param resourceService the resource remote service
861             */
862            public void setResourceService(ResourceService resourceService) {
863                    this.resourceService = resourceService;
864            }
865    
866            /**
867             * Returns the resource persistence.
868             *
869             * @return the resource persistence
870             */
871            public ResourcePersistence getResourcePersistence() {
872                    return resourcePersistence;
873            }
874    
875            /**
876             * Sets the resource persistence.
877             *
878             * @param resourcePersistence the resource persistence
879             */
880            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
881                    this.resourcePersistence = resourcePersistence;
882            }
883    
884            /**
885             * Returns the resource finder.
886             *
887             * @return the resource finder
888             */
889            public ResourceFinder getResourceFinder() {
890                    return resourceFinder;
891            }
892    
893            /**
894             * Sets the resource finder.
895             *
896             * @param resourceFinder the resource finder
897             */
898            public void setResourceFinder(ResourceFinder resourceFinder) {
899                    this.resourceFinder = resourceFinder;
900            }
901    
902            /**
903             * Returns the user local service.
904             *
905             * @return the user local service
906             */
907            public UserLocalService getUserLocalService() {
908                    return userLocalService;
909            }
910    
911            /**
912             * Sets the user local service.
913             *
914             * @param userLocalService the user local service
915             */
916            public void setUserLocalService(UserLocalService userLocalService) {
917                    this.userLocalService = userLocalService;
918            }
919    
920            /**
921             * Returns the user remote service.
922             *
923             * @return the user remote service
924             */
925            public UserService getUserService() {
926                    return userService;
927            }
928    
929            /**
930             * Sets the user remote service.
931             *
932             * @param userService the user remote service
933             */
934            public void setUserService(UserService userService) {
935                    this.userService = userService;
936            }
937    
938            /**
939             * Returns the user persistence.
940             *
941             * @return the user persistence
942             */
943            public UserPersistence getUserPersistence() {
944                    return userPersistence;
945            }
946    
947            /**
948             * Sets the user persistence.
949             *
950             * @param userPersistence the user persistence
951             */
952            public void setUserPersistence(UserPersistence userPersistence) {
953                    this.userPersistence = userPersistence;
954            }
955    
956            /**
957             * Returns the user finder.
958             *
959             * @return the user finder
960             */
961            public UserFinder getUserFinder() {
962                    return userFinder;
963            }
964    
965            /**
966             * Sets the user finder.
967             *
968             * @param userFinder the user finder
969             */
970            public void setUserFinder(UserFinder userFinder) {
971                    this.userFinder = userFinder;
972            }
973    
974            /**
975             * Returns the asset entry local service.
976             *
977             * @return the asset entry local service
978             */
979            public AssetEntryLocalService getAssetEntryLocalService() {
980                    return assetEntryLocalService;
981            }
982    
983            /**
984             * Sets the asset entry local service.
985             *
986             * @param assetEntryLocalService the asset entry local service
987             */
988            public void setAssetEntryLocalService(
989                    AssetEntryLocalService assetEntryLocalService) {
990                    this.assetEntryLocalService = assetEntryLocalService;
991            }
992    
993            /**
994             * Returns the asset entry remote service.
995             *
996             * @return the asset entry remote service
997             */
998            public AssetEntryService getAssetEntryService() {
999                    return assetEntryService;
1000            }
1001    
1002            /**
1003             * Sets the asset entry remote service.
1004             *
1005             * @param assetEntryService the asset entry remote service
1006             */
1007            public void setAssetEntryService(AssetEntryService assetEntryService) {
1008                    this.assetEntryService = assetEntryService;
1009            }
1010    
1011            /**
1012             * Returns the asset entry persistence.
1013             *
1014             * @return the asset entry persistence
1015             */
1016            public AssetEntryPersistence getAssetEntryPersistence() {
1017                    return assetEntryPersistence;
1018            }
1019    
1020            /**
1021             * Sets the asset entry persistence.
1022             *
1023             * @param assetEntryPersistence the asset entry persistence
1024             */
1025            public void setAssetEntryPersistence(
1026                    AssetEntryPersistence assetEntryPersistence) {
1027                    this.assetEntryPersistence = assetEntryPersistence;
1028            }
1029    
1030            /**
1031             * Returns the asset entry finder.
1032             *
1033             * @return the asset entry finder
1034             */
1035            public AssetEntryFinder getAssetEntryFinder() {
1036                    return assetEntryFinder;
1037            }
1038    
1039            /**
1040             * Sets the asset entry finder.
1041             *
1042             * @param assetEntryFinder the asset entry finder
1043             */
1044            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1045                    this.assetEntryFinder = assetEntryFinder;
1046            }
1047    
1048            public void afterPropertiesSet() {
1049                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialActivity",
1050                            socialActivityLocalService);
1051            }
1052    
1053            public void destroy() {
1054                    persistedModelLocalServiceRegistry.unregister(
1055                            "com.liferay.portlet.social.model.SocialActivity");
1056            }
1057    
1058            /**
1059             * Returns the Spring bean ID for this bean.
1060             *
1061             * @return the Spring bean ID for this bean
1062             */
1063            public String getBeanIdentifier() {
1064                    return _beanIdentifier;
1065            }
1066    
1067            /**
1068             * Sets the Spring bean ID for this bean.
1069             *
1070             * @param beanIdentifier the Spring bean ID for this bean
1071             */
1072            public void setBeanIdentifier(String beanIdentifier) {
1073                    _beanIdentifier = beanIdentifier;
1074            }
1075    
1076            protected Class<?> getModelClass() {
1077                    return SocialActivity.class;
1078            }
1079    
1080            protected String getModelClassName() {
1081                    return SocialActivity.class.getName();
1082            }
1083    
1084            /**
1085             * Performs an SQL query.
1086             *
1087             * @param sql the sql query
1088             */
1089            protected void runSQL(String sql) throws SystemException {
1090                    try {
1091                            DataSource dataSource = socialActivityPersistence.getDataSource();
1092    
1093                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1094                                            sql, new int[0]);
1095    
1096                            sqlUpdate.update();
1097                    }
1098                    catch (Exception e) {
1099                            throw new SystemException(e);
1100                    }
1101            }
1102    
1103            @BeanReference(type = SocialActivityLocalService.class)
1104            protected SocialActivityLocalService socialActivityLocalService;
1105            @BeanReference(type = SocialActivityPersistence.class)
1106            protected SocialActivityPersistence socialActivityPersistence;
1107            @BeanReference(type = SocialActivityFinder.class)
1108            protected SocialActivityFinder socialActivityFinder;
1109            @BeanReference(type = SocialActivityAchievementLocalService.class)
1110            protected SocialActivityAchievementLocalService socialActivityAchievementLocalService;
1111            @BeanReference(type = SocialActivityAchievementPersistence.class)
1112            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
1113            @BeanReference(type = SocialActivityCounterLocalService.class)
1114            protected SocialActivityCounterLocalService socialActivityCounterLocalService;
1115            @BeanReference(type = SocialActivityCounterPersistence.class)
1116            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1117            @BeanReference(type = SocialActivityCounterFinder.class)
1118            protected SocialActivityCounterFinder socialActivityCounterFinder;
1119            @BeanReference(type = SocialActivityInterpreterLocalService.class)
1120            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
1121            @BeanReference(type = SocialActivityLimitLocalService.class)
1122            protected SocialActivityLimitLocalService socialActivityLimitLocalService;
1123            @BeanReference(type = SocialActivityLimitPersistence.class)
1124            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
1125            @BeanReference(type = SocialActivitySettingLocalService.class)
1126            protected SocialActivitySettingLocalService socialActivitySettingLocalService;
1127            @BeanReference(type = SocialActivitySettingService.class)
1128            protected SocialActivitySettingService socialActivitySettingService;
1129            @BeanReference(type = SocialActivitySettingPersistence.class)
1130            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
1131            @BeanReference(type = SocialRelationLocalService.class)
1132            protected SocialRelationLocalService socialRelationLocalService;
1133            @BeanReference(type = SocialRelationPersistence.class)
1134            protected SocialRelationPersistence socialRelationPersistence;
1135            @BeanReference(type = SocialRequestLocalService.class)
1136            protected SocialRequestLocalService socialRequestLocalService;
1137            @BeanReference(type = SocialRequestPersistence.class)
1138            protected SocialRequestPersistence socialRequestPersistence;
1139            @BeanReference(type = SocialRequestInterpreterLocalService.class)
1140            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
1141            @BeanReference(type = CounterLocalService.class)
1142            protected CounterLocalService counterLocalService;
1143            @BeanReference(type = GroupLocalService.class)
1144            protected GroupLocalService groupLocalService;
1145            @BeanReference(type = GroupService.class)
1146            protected GroupService groupService;
1147            @BeanReference(type = GroupPersistence.class)
1148            protected GroupPersistence groupPersistence;
1149            @BeanReference(type = GroupFinder.class)
1150            protected GroupFinder groupFinder;
1151            @BeanReference(type = LayoutLocalService.class)
1152            protected LayoutLocalService layoutLocalService;
1153            @BeanReference(type = LayoutService.class)
1154            protected LayoutService layoutService;
1155            @BeanReference(type = LayoutPersistence.class)
1156            protected LayoutPersistence layoutPersistence;
1157            @BeanReference(type = LayoutFinder.class)
1158            protected LayoutFinder layoutFinder;
1159            @BeanReference(type = ResourceLocalService.class)
1160            protected ResourceLocalService resourceLocalService;
1161            @BeanReference(type = ResourceService.class)
1162            protected ResourceService resourceService;
1163            @BeanReference(type = ResourcePersistence.class)
1164            protected ResourcePersistence resourcePersistence;
1165            @BeanReference(type = ResourceFinder.class)
1166            protected ResourceFinder resourceFinder;
1167            @BeanReference(type = UserLocalService.class)
1168            protected UserLocalService userLocalService;
1169            @BeanReference(type = UserService.class)
1170            protected UserService userService;
1171            @BeanReference(type = UserPersistence.class)
1172            protected UserPersistence userPersistence;
1173            @BeanReference(type = UserFinder.class)
1174            protected UserFinder userFinder;
1175            @BeanReference(type = AssetEntryLocalService.class)
1176            protected AssetEntryLocalService assetEntryLocalService;
1177            @BeanReference(type = AssetEntryService.class)
1178            protected AssetEntryService assetEntryService;
1179            @BeanReference(type = AssetEntryPersistence.class)
1180            protected AssetEntryPersistence assetEntryPersistence;
1181            @BeanReference(type = AssetEntryFinder.class)
1182            protected AssetEntryFinder assetEntryFinder;
1183            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1184            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1185            private String _beanIdentifier;
1186    }