001    /**
002     * Copyright (c) 2000-2012 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.flags.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.mail.service.MailService;
020    
021    import com.liferay.portal.kernel.bean.BeanReference;
022    import com.liferay.portal.kernel.bean.IdentifiableBean;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.util.InfrastructureUtil;
027    import com.liferay.portal.service.BaseServiceImpl;
028    import com.liferay.portal.service.CompanyLocalService;
029    import com.liferay.portal.service.CompanyService;
030    import com.liferay.portal.service.GroupLocalService;
031    import com.liferay.portal.service.GroupService;
032    import com.liferay.portal.service.LayoutLocalService;
033    import com.liferay.portal.service.LayoutService;
034    import com.liferay.portal.service.ResourceLocalService;
035    import com.liferay.portal.service.RoleLocalService;
036    import com.liferay.portal.service.RoleService;
037    import com.liferay.portal.service.UserGroupLocalService;
038    import com.liferay.portal.service.UserGroupRoleLocalService;
039    import com.liferay.portal.service.UserGroupRoleService;
040    import com.liferay.portal.service.UserGroupService;
041    import com.liferay.portal.service.UserLocalService;
042    import com.liferay.portal.service.UserService;
043    import com.liferay.portal.service.persistence.CompanyPersistence;
044    import com.liferay.portal.service.persistence.GroupFinder;
045    import com.liferay.portal.service.persistence.GroupPersistence;
046    import com.liferay.portal.service.persistence.LayoutFinder;
047    import com.liferay.portal.service.persistence.LayoutPersistence;
048    import com.liferay.portal.service.persistence.RoleFinder;
049    import com.liferay.portal.service.persistence.RolePersistence;
050    import com.liferay.portal.service.persistence.UserFinder;
051    import com.liferay.portal.service.persistence.UserGroupFinder;
052    import com.liferay.portal.service.persistence.UserGroupPersistence;
053    import com.liferay.portal.service.persistence.UserGroupRoleFinder;
054    import com.liferay.portal.service.persistence.UserGroupRolePersistence;
055    import com.liferay.portal.service.persistence.UserPersistence;
056    
057    import com.liferay.portlet.asset.service.AssetEntryLocalService;
058    import com.liferay.portlet.asset.service.AssetEntryService;
059    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
060    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
061    import com.liferay.portlet.flags.service.FlagsEntryService;
062    
063    import javax.sql.DataSource;
064    
065    /**
066     * The base implementation of the flags entry remote service.
067     *
068     * <p>
069     * 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.flags.service.impl.FlagsEntryServiceImpl}.
070     * </p>
071     *
072     * @author Brian Wing Shun Chan
073     * @see com.liferay.portlet.flags.service.impl.FlagsEntryServiceImpl
074     * @see com.liferay.portlet.flags.service.FlagsEntryServiceUtil
075     * @generated
076     */
077    public abstract class FlagsEntryServiceBaseImpl extends BaseServiceImpl
078            implements FlagsEntryService, IdentifiableBean {
079            /*
080             * NOTE FOR DEVELOPERS:
081             *
082             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.flags.service.FlagsEntryServiceUtil} to access the flags entry remote service.
083             */
084    
085            /**
086             * Returns the flags entry remote service.
087             *
088             * @return the flags entry remote service
089             */
090            public FlagsEntryService getFlagsEntryService() {
091                    return flagsEntryService;
092            }
093    
094            /**
095             * Sets the flags entry remote service.
096             *
097             * @param flagsEntryService the flags entry remote service
098             */
099            public void setFlagsEntryService(FlagsEntryService flagsEntryService) {
100                    this.flagsEntryService = flagsEntryService;
101            }
102    
103            /**
104             * Returns the counter local service.
105             *
106             * @return the counter local service
107             */
108            public CounterLocalService getCounterLocalService() {
109                    return counterLocalService;
110            }
111    
112            /**
113             * Sets the counter local service.
114             *
115             * @param counterLocalService the counter local service
116             */
117            public void setCounterLocalService(CounterLocalService counterLocalService) {
118                    this.counterLocalService = counterLocalService;
119            }
120    
121            /**
122             * Returns the mail remote service.
123             *
124             * @return the mail remote service
125             */
126            public MailService getMailService() {
127                    return mailService;
128            }
129    
130            /**
131             * Sets the mail remote service.
132             *
133             * @param mailService the mail remote service
134             */
135            public void setMailService(MailService mailService) {
136                    this.mailService = mailService;
137            }
138    
139            /**
140             * Returns the company local service.
141             *
142             * @return the company local service
143             */
144            public CompanyLocalService getCompanyLocalService() {
145                    return companyLocalService;
146            }
147    
148            /**
149             * Sets the company local service.
150             *
151             * @param companyLocalService the company local service
152             */
153            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
154                    this.companyLocalService = companyLocalService;
155            }
156    
157            /**
158             * Returns the company remote service.
159             *
160             * @return the company remote service
161             */
162            public CompanyService getCompanyService() {
163                    return companyService;
164            }
165    
166            /**
167             * Sets the company remote service.
168             *
169             * @param companyService the company remote service
170             */
171            public void setCompanyService(CompanyService companyService) {
172                    this.companyService = companyService;
173            }
174    
175            /**
176             * Returns the company persistence.
177             *
178             * @return the company persistence
179             */
180            public CompanyPersistence getCompanyPersistence() {
181                    return companyPersistence;
182            }
183    
184            /**
185             * Sets the company persistence.
186             *
187             * @param companyPersistence the company persistence
188             */
189            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
190                    this.companyPersistence = companyPersistence;
191            }
192    
193            /**
194             * Returns the group local service.
195             *
196             * @return the group local service
197             */
198            public GroupLocalService getGroupLocalService() {
199                    return groupLocalService;
200            }
201    
202            /**
203             * Sets the group local service.
204             *
205             * @param groupLocalService the group local service
206             */
207            public void setGroupLocalService(GroupLocalService groupLocalService) {
208                    this.groupLocalService = groupLocalService;
209            }
210    
211            /**
212             * Returns the group remote service.
213             *
214             * @return the group remote service
215             */
216            public GroupService getGroupService() {
217                    return groupService;
218            }
219    
220            /**
221             * Sets the group remote service.
222             *
223             * @param groupService the group remote service
224             */
225            public void setGroupService(GroupService groupService) {
226                    this.groupService = groupService;
227            }
228    
229            /**
230             * Returns the group persistence.
231             *
232             * @return the group persistence
233             */
234            public GroupPersistence getGroupPersistence() {
235                    return groupPersistence;
236            }
237    
238            /**
239             * Sets the group persistence.
240             *
241             * @param groupPersistence the group persistence
242             */
243            public void setGroupPersistence(GroupPersistence groupPersistence) {
244                    this.groupPersistence = groupPersistence;
245            }
246    
247            /**
248             * Returns the group finder.
249             *
250             * @return the group finder
251             */
252            public GroupFinder getGroupFinder() {
253                    return groupFinder;
254            }
255    
256            /**
257             * Sets the group finder.
258             *
259             * @param groupFinder the group finder
260             */
261            public void setGroupFinder(GroupFinder groupFinder) {
262                    this.groupFinder = groupFinder;
263            }
264    
265            /**
266             * Returns the layout local service.
267             *
268             * @return the layout local service
269             */
270            public LayoutLocalService getLayoutLocalService() {
271                    return layoutLocalService;
272            }
273    
274            /**
275             * Sets the layout local service.
276             *
277             * @param layoutLocalService the layout local service
278             */
279            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
280                    this.layoutLocalService = layoutLocalService;
281            }
282    
283            /**
284             * Returns the layout remote service.
285             *
286             * @return the layout remote service
287             */
288            public LayoutService getLayoutService() {
289                    return layoutService;
290            }
291    
292            /**
293             * Sets the layout remote service.
294             *
295             * @param layoutService the layout remote service
296             */
297            public void setLayoutService(LayoutService layoutService) {
298                    this.layoutService = layoutService;
299            }
300    
301            /**
302             * Returns the layout persistence.
303             *
304             * @return the layout persistence
305             */
306            public LayoutPersistence getLayoutPersistence() {
307                    return layoutPersistence;
308            }
309    
310            /**
311             * Sets the layout persistence.
312             *
313             * @param layoutPersistence the layout persistence
314             */
315            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
316                    this.layoutPersistence = layoutPersistence;
317            }
318    
319            /**
320             * Returns the layout finder.
321             *
322             * @return the layout finder
323             */
324            public LayoutFinder getLayoutFinder() {
325                    return layoutFinder;
326            }
327    
328            /**
329             * Sets the layout finder.
330             *
331             * @param layoutFinder the layout finder
332             */
333            public void setLayoutFinder(LayoutFinder layoutFinder) {
334                    this.layoutFinder = layoutFinder;
335            }
336    
337            /**
338             * Returns the resource local service.
339             *
340             * @return the resource local service
341             */
342            public ResourceLocalService getResourceLocalService() {
343                    return resourceLocalService;
344            }
345    
346            /**
347             * Sets the resource local service.
348             *
349             * @param resourceLocalService the resource local service
350             */
351            public void setResourceLocalService(
352                    ResourceLocalService resourceLocalService) {
353                    this.resourceLocalService = resourceLocalService;
354            }
355    
356            /**
357             * Returns the role local service.
358             *
359             * @return the role local service
360             */
361            public RoleLocalService getRoleLocalService() {
362                    return roleLocalService;
363            }
364    
365            /**
366             * Sets the role local service.
367             *
368             * @param roleLocalService the role local service
369             */
370            public void setRoleLocalService(RoleLocalService roleLocalService) {
371                    this.roleLocalService = roleLocalService;
372            }
373    
374            /**
375             * Returns the role remote service.
376             *
377             * @return the role remote service
378             */
379            public RoleService getRoleService() {
380                    return roleService;
381            }
382    
383            /**
384             * Sets the role remote service.
385             *
386             * @param roleService the role remote service
387             */
388            public void setRoleService(RoleService roleService) {
389                    this.roleService = roleService;
390            }
391    
392            /**
393             * Returns the role persistence.
394             *
395             * @return the role persistence
396             */
397            public RolePersistence getRolePersistence() {
398                    return rolePersistence;
399            }
400    
401            /**
402             * Sets the role persistence.
403             *
404             * @param rolePersistence the role persistence
405             */
406            public void setRolePersistence(RolePersistence rolePersistence) {
407                    this.rolePersistence = rolePersistence;
408            }
409    
410            /**
411             * Returns the role finder.
412             *
413             * @return the role finder
414             */
415            public RoleFinder getRoleFinder() {
416                    return roleFinder;
417            }
418    
419            /**
420             * Sets the role finder.
421             *
422             * @param roleFinder the role finder
423             */
424            public void setRoleFinder(RoleFinder roleFinder) {
425                    this.roleFinder = roleFinder;
426            }
427    
428            /**
429             * Returns the user local service.
430             *
431             * @return the user local service
432             */
433            public UserLocalService getUserLocalService() {
434                    return userLocalService;
435            }
436    
437            /**
438             * Sets the user local service.
439             *
440             * @param userLocalService the user local service
441             */
442            public void setUserLocalService(UserLocalService userLocalService) {
443                    this.userLocalService = userLocalService;
444            }
445    
446            /**
447             * Returns the user remote service.
448             *
449             * @return the user remote service
450             */
451            public UserService getUserService() {
452                    return userService;
453            }
454    
455            /**
456             * Sets the user remote service.
457             *
458             * @param userService the user remote service
459             */
460            public void setUserService(UserService userService) {
461                    this.userService = userService;
462            }
463    
464            /**
465             * Returns the user persistence.
466             *
467             * @return the user persistence
468             */
469            public UserPersistence getUserPersistence() {
470                    return userPersistence;
471            }
472    
473            /**
474             * Sets the user persistence.
475             *
476             * @param userPersistence the user persistence
477             */
478            public void setUserPersistence(UserPersistence userPersistence) {
479                    this.userPersistence = userPersistence;
480            }
481    
482            /**
483             * Returns the user finder.
484             *
485             * @return the user finder
486             */
487            public UserFinder getUserFinder() {
488                    return userFinder;
489            }
490    
491            /**
492             * Sets the user finder.
493             *
494             * @param userFinder the user finder
495             */
496            public void setUserFinder(UserFinder userFinder) {
497                    this.userFinder = userFinder;
498            }
499    
500            /**
501             * Returns the user group local service.
502             *
503             * @return the user group local service
504             */
505            public UserGroupLocalService getUserGroupLocalService() {
506                    return userGroupLocalService;
507            }
508    
509            /**
510             * Sets the user group local service.
511             *
512             * @param userGroupLocalService the user group local service
513             */
514            public void setUserGroupLocalService(
515                    UserGroupLocalService userGroupLocalService) {
516                    this.userGroupLocalService = userGroupLocalService;
517            }
518    
519            /**
520             * Returns the user group remote service.
521             *
522             * @return the user group remote service
523             */
524            public UserGroupService getUserGroupService() {
525                    return userGroupService;
526            }
527    
528            /**
529             * Sets the user group remote service.
530             *
531             * @param userGroupService the user group remote service
532             */
533            public void setUserGroupService(UserGroupService userGroupService) {
534                    this.userGroupService = userGroupService;
535            }
536    
537            /**
538             * Returns the user group persistence.
539             *
540             * @return the user group persistence
541             */
542            public UserGroupPersistence getUserGroupPersistence() {
543                    return userGroupPersistence;
544            }
545    
546            /**
547             * Sets the user group persistence.
548             *
549             * @param userGroupPersistence the user group persistence
550             */
551            public void setUserGroupPersistence(
552                    UserGroupPersistence userGroupPersistence) {
553                    this.userGroupPersistence = userGroupPersistence;
554            }
555    
556            /**
557             * Returns the user group finder.
558             *
559             * @return the user group finder
560             */
561            public UserGroupFinder getUserGroupFinder() {
562                    return userGroupFinder;
563            }
564    
565            /**
566             * Sets the user group finder.
567             *
568             * @param userGroupFinder the user group finder
569             */
570            public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
571                    this.userGroupFinder = userGroupFinder;
572            }
573    
574            /**
575             * Returns the user group role local service.
576             *
577             * @return the user group role local service
578             */
579            public UserGroupRoleLocalService getUserGroupRoleLocalService() {
580                    return userGroupRoleLocalService;
581            }
582    
583            /**
584             * Sets the user group role local service.
585             *
586             * @param userGroupRoleLocalService the user group role local service
587             */
588            public void setUserGroupRoleLocalService(
589                    UserGroupRoleLocalService userGroupRoleLocalService) {
590                    this.userGroupRoleLocalService = userGroupRoleLocalService;
591            }
592    
593            /**
594             * Returns the user group role remote service.
595             *
596             * @return the user group role remote service
597             */
598            public UserGroupRoleService getUserGroupRoleService() {
599                    return userGroupRoleService;
600            }
601    
602            /**
603             * Sets the user group role remote service.
604             *
605             * @param userGroupRoleService the user group role remote service
606             */
607            public void setUserGroupRoleService(
608                    UserGroupRoleService userGroupRoleService) {
609                    this.userGroupRoleService = userGroupRoleService;
610            }
611    
612            /**
613             * Returns the user group role persistence.
614             *
615             * @return the user group role persistence
616             */
617            public UserGroupRolePersistence getUserGroupRolePersistence() {
618                    return userGroupRolePersistence;
619            }
620    
621            /**
622             * Sets the user group role persistence.
623             *
624             * @param userGroupRolePersistence the user group role persistence
625             */
626            public void setUserGroupRolePersistence(
627                    UserGroupRolePersistence userGroupRolePersistence) {
628                    this.userGroupRolePersistence = userGroupRolePersistence;
629            }
630    
631            /**
632             * Returns the user group role finder.
633             *
634             * @return the user group role finder
635             */
636            public UserGroupRoleFinder getUserGroupRoleFinder() {
637                    return userGroupRoleFinder;
638            }
639    
640            /**
641             * Sets the user group role finder.
642             *
643             * @param userGroupRoleFinder the user group role finder
644             */
645            public void setUserGroupRoleFinder(UserGroupRoleFinder userGroupRoleFinder) {
646                    this.userGroupRoleFinder = userGroupRoleFinder;
647            }
648    
649            /**
650             * Returns the asset entry local service.
651             *
652             * @return the asset entry local service
653             */
654            public AssetEntryLocalService getAssetEntryLocalService() {
655                    return assetEntryLocalService;
656            }
657    
658            /**
659             * Sets the asset entry local service.
660             *
661             * @param assetEntryLocalService the asset entry local service
662             */
663            public void setAssetEntryLocalService(
664                    AssetEntryLocalService assetEntryLocalService) {
665                    this.assetEntryLocalService = assetEntryLocalService;
666            }
667    
668            /**
669             * Returns the asset entry remote service.
670             *
671             * @return the asset entry remote service
672             */
673            public AssetEntryService getAssetEntryService() {
674                    return assetEntryService;
675            }
676    
677            /**
678             * Sets the asset entry remote service.
679             *
680             * @param assetEntryService the asset entry remote service
681             */
682            public void setAssetEntryService(AssetEntryService assetEntryService) {
683                    this.assetEntryService = assetEntryService;
684            }
685    
686            /**
687             * Returns the asset entry persistence.
688             *
689             * @return the asset entry persistence
690             */
691            public AssetEntryPersistence getAssetEntryPersistence() {
692                    return assetEntryPersistence;
693            }
694    
695            /**
696             * Sets the asset entry persistence.
697             *
698             * @param assetEntryPersistence the asset entry persistence
699             */
700            public void setAssetEntryPersistence(
701                    AssetEntryPersistence assetEntryPersistence) {
702                    this.assetEntryPersistence = assetEntryPersistence;
703            }
704    
705            /**
706             * Returns the asset entry finder.
707             *
708             * @return the asset entry finder
709             */
710            public AssetEntryFinder getAssetEntryFinder() {
711                    return assetEntryFinder;
712            }
713    
714            /**
715             * Sets the asset entry finder.
716             *
717             * @param assetEntryFinder the asset entry finder
718             */
719            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
720                    this.assetEntryFinder = assetEntryFinder;
721            }
722    
723            public void afterPropertiesSet() {
724            }
725    
726            public void destroy() {
727            }
728    
729            /**
730             * Returns the Spring bean ID for this bean.
731             *
732             * @return the Spring bean ID for this bean
733             */
734            public String getBeanIdentifier() {
735                    return _beanIdentifier;
736            }
737    
738            /**
739             * Sets the Spring bean ID for this bean.
740             *
741             * @param beanIdentifier the Spring bean ID for this bean
742             */
743            public void setBeanIdentifier(String beanIdentifier) {
744                    _beanIdentifier = beanIdentifier;
745            }
746    
747            /**
748             * Performs an SQL query.
749             *
750             * @param sql the sql query
751             */
752            protected void runSQL(String sql) throws SystemException {
753                    try {
754                            DataSource dataSource = InfrastructureUtil.getDataSource();
755    
756                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
757                                            sql, new int[0]);
758    
759                            sqlUpdate.update();
760                    }
761                    catch (Exception e) {
762                            throw new SystemException(e);
763                    }
764            }
765    
766            @BeanReference(type = FlagsEntryService.class)
767            protected FlagsEntryService flagsEntryService;
768            @BeanReference(type = CounterLocalService.class)
769            protected CounterLocalService counterLocalService;
770            @BeanReference(type = MailService.class)
771            protected MailService mailService;
772            @BeanReference(type = CompanyLocalService.class)
773            protected CompanyLocalService companyLocalService;
774            @BeanReference(type = CompanyService.class)
775            protected CompanyService companyService;
776            @BeanReference(type = CompanyPersistence.class)
777            protected CompanyPersistence companyPersistence;
778            @BeanReference(type = GroupLocalService.class)
779            protected GroupLocalService groupLocalService;
780            @BeanReference(type = GroupService.class)
781            protected GroupService groupService;
782            @BeanReference(type = GroupPersistence.class)
783            protected GroupPersistence groupPersistence;
784            @BeanReference(type = GroupFinder.class)
785            protected GroupFinder groupFinder;
786            @BeanReference(type = LayoutLocalService.class)
787            protected LayoutLocalService layoutLocalService;
788            @BeanReference(type = LayoutService.class)
789            protected LayoutService layoutService;
790            @BeanReference(type = LayoutPersistence.class)
791            protected LayoutPersistence layoutPersistence;
792            @BeanReference(type = LayoutFinder.class)
793            protected LayoutFinder layoutFinder;
794            @BeanReference(type = ResourceLocalService.class)
795            protected ResourceLocalService resourceLocalService;
796            @BeanReference(type = RoleLocalService.class)
797            protected RoleLocalService roleLocalService;
798            @BeanReference(type = RoleService.class)
799            protected RoleService roleService;
800            @BeanReference(type = RolePersistence.class)
801            protected RolePersistence rolePersistence;
802            @BeanReference(type = RoleFinder.class)
803            protected RoleFinder roleFinder;
804            @BeanReference(type = UserLocalService.class)
805            protected UserLocalService userLocalService;
806            @BeanReference(type = UserService.class)
807            protected UserService userService;
808            @BeanReference(type = UserPersistence.class)
809            protected UserPersistence userPersistence;
810            @BeanReference(type = UserFinder.class)
811            protected UserFinder userFinder;
812            @BeanReference(type = UserGroupLocalService.class)
813            protected UserGroupLocalService userGroupLocalService;
814            @BeanReference(type = UserGroupService.class)
815            protected UserGroupService userGroupService;
816            @BeanReference(type = UserGroupPersistence.class)
817            protected UserGroupPersistence userGroupPersistence;
818            @BeanReference(type = UserGroupFinder.class)
819            protected UserGroupFinder userGroupFinder;
820            @BeanReference(type = UserGroupRoleLocalService.class)
821            protected UserGroupRoleLocalService userGroupRoleLocalService;
822            @BeanReference(type = UserGroupRoleService.class)
823            protected UserGroupRoleService userGroupRoleService;
824            @BeanReference(type = UserGroupRolePersistence.class)
825            protected UserGroupRolePersistence userGroupRolePersistence;
826            @BeanReference(type = UserGroupRoleFinder.class)
827            protected UserGroupRoleFinder userGroupRoleFinder;
828            @BeanReference(type = AssetEntryLocalService.class)
829            protected AssetEntryLocalService assetEntryLocalService;
830            @BeanReference(type = AssetEntryService.class)
831            protected AssetEntryService assetEntryService;
832            @BeanReference(type = AssetEntryPersistence.class)
833            protected AssetEntryPersistence assetEntryPersistence;
834            @BeanReference(type = AssetEntryFinder.class)
835            protected AssetEntryFinder assetEntryFinder;
836            private String _beanIdentifier;
837    }