001    /**
002     * Copyright (c) 2000-present 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.portal.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.dao.db.DB;
019    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
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.module.framework.service.IdentifiableOSGiService;
024    import com.liferay.portal.model.Role;
025    import com.liferay.portal.service.BaseServiceImpl;
026    import com.liferay.portal.service.RoleService;
027    import com.liferay.portal.service.persistence.ClassNamePersistence;
028    import com.liferay.portal.service.persistence.CompanyPersistence;
029    import com.liferay.portal.service.persistence.GroupFinder;
030    import com.liferay.portal.service.persistence.GroupPersistence;
031    import com.liferay.portal.service.persistence.LayoutFinder;
032    import com.liferay.portal.service.persistence.LayoutPersistence;
033    import com.liferay.portal.service.persistence.ResourceActionPersistence;
034    import com.liferay.portal.service.persistence.ResourceBlockFinder;
035    import com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence;
036    import com.liferay.portal.service.persistence.ResourceBlockPersistence;
037    import com.liferay.portal.service.persistence.ResourcePermissionFinder;
038    import com.liferay.portal.service.persistence.ResourcePermissionPersistence;
039    import com.liferay.portal.service.persistence.ResourceTypePermissionFinder;
040    import com.liferay.portal.service.persistence.ResourceTypePermissionPersistence;
041    import com.liferay.portal.service.persistence.RoleFinder;
042    import com.liferay.portal.service.persistence.RolePersistence;
043    import com.liferay.portal.service.persistence.TeamFinder;
044    import com.liferay.portal.service.persistence.TeamPersistence;
045    import com.liferay.portal.service.persistence.UserFinder;
046    import com.liferay.portal.service.persistence.UserGroupGroupRoleFinder;
047    import com.liferay.portal.service.persistence.UserGroupGroupRolePersistence;
048    import com.liferay.portal.service.persistence.UserGroupRoleFinder;
049    import com.liferay.portal.service.persistence.UserGroupRolePersistence;
050    import com.liferay.portal.service.persistence.UserPersistence;
051    import com.liferay.portal.util.PortalUtil;
052    
053    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
054    
055    import javax.sql.DataSource;
056    
057    /**
058     * Provides the base implementation for the role remote service.
059     *
060     * <p>
061     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portal.service.impl.RoleServiceImpl}.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see com.liferay.portal.service.impl.RoleServiceImpl
066     * @see com.liferay.portal.service.RoleServiceUtil
067     * @generated
068     */
069    public abstract class RoleServiceBaseImpl extends BaseServiceImpl
070            implements RoleService, IdentifiableOSGiService {
071            /*
072             * NOTE FOR DEVELOPERS:
073             *
074             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.RoleServiceUtil} to access the role remote service.
075             */
076    
077            /**
078             * Returns the role local service.
079             *
080             * @return the role local service
081             */
082            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
083                    return roleLocalService;
084            }
085    
086            /**
087             * Sets the role local service.
088             *
089             * @param roleLocalService the role local service
090             */
091            public void setRoleLocalService(
092                    com.liferay.portal.service.RoleLocalService roleLocalService) {
093                    this.roleLocalService = roleLocalService;
094            }
095    
096            /**
097             * Returns the role remote service.
098             *
099             * @return the role remote service
100             */
101            public RoleService getRoleService() {
102                    return roleService;
103            }
104    
105            /**
106             * Sets the role remote service.
107             *
108             * @param roleService the role remote service
109             */
110            public void setRoleService(RoleService roleService) {
111                    this.roleService = roleService;
112            }
113    
114            /**
115             * Returns the role persistence.
116             *
117             * @return the role persistence
118             */
119            public RolePersistence getRolePersistence() {
120                    return rolePersistence;
121            }
122    
123            /**
124             * Sets the role persistence.
125             *
126             * @param rolePersistence the role persistence
127             */
128            public void setRolePersistence(RolePersistence rolePersistence) {
129                    this.rolePersistence = rolePersistence;
130            }
131    
132            /**
133             * Returns the role finder.
134             *
135             * @return the role finder
136             */
137            public RoleFinder getRoleFinder() {
138                    return roleFinder;
139            }
140    
141            /**
142             * Sets the role finder.
143             *
144             * @param roleFinder the role finder
145             */
146            public void setRoleFinder(RoleFinder roleFinder) {
147                    this.roleFinder = roleFinder;
148            }
149    
150            /**
151             * Returns the counter local service.
152             *
153             * @return the counter local service
154             */
155            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
156                    return counterLocalService;
157            }
158    
159            /**
160             * Sets the counter local service.
161             *
162             * @param counterLocalService the counter local service
163             */
164            public void setCounterLocalService(
165                    com.liferay.counter.service.CounterLocalService counterLocalService) {
166                    this.counterLocalService = counterLocalService;
167            }
168    
169            /**
170             * Returns the class name local service.
171             *
172             * @return the class name local service
173             */
174            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
175                    return classNameLocalService;
176            }
177    
178            /**
179             * Sets the class name local service.
180             *
181             * @param classNameLocalService the class name local service
182             */
183            public void setClassNameLocalService(
184                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
185                    this.classNameLocalService = classNameLocalService;
186            }
187    
188            /**
189             * Returns the class name remote service.
190             *
191             * @return the class name remote service
192             */
193            public com.liferay.portal.service.ClassNameService getClassNameService() {
194                    return classNameService;
195            }
196    
197            /**
198             * Sets the class name remote service.
199             *
200             * @param classNameService the class name remote service
201             */
202            public void setClassNameService(
203                    com.liferay.portal.service.ClassNameService classNameService) {
204                    this.classNameService = classNameService;
205            }
206    
207            /**
208             * Returns the class name persistence.
209             *
210             * @return the class name persistence
211             */
212            public ClassNamePersistence getClassNamePersistence() {
213                    return classNamePersistence;
214            }
215    
216            /**
217             * Sets the class name persistence.
218             *
219             * @param classNamePersistence the class name persistence
220             */
221            public void setClassNamePersistence(
222                    ClassNamePersistence classNamePersistence) {
223                    this.classNamePersistence = classNamePersistence;
224            }
225    
226            /**
227             * Returns the company local service.
228             *
229             * @return the company local service
230             */
231            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
232                    return companyLocalService;
233            }
234    
235            /**
236             * Sets the company local service.
237             *
238             * @param companyLocalService the company local service
239             */
240            public void setCompanyLocalService(
241                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
242                    this.companyLocalService = companyLocalService;
243            }
244    
245            /**
246             * Returns the company remote service.
247             *
248             * @return the company remote service
249             */
250            public com.liferay.portal.service.CompanyService getCompanyService() {
251                    return companyService;
252            }
253    
254            /**
255             * Sets the company remote service.
256             *
257             * @param companyService the company remote service
258             */
259            public void setCompanyService(
260                    com.liferay.portal.service.CompanyService companyService) {
261                    this.companyService = companyService;
262            }
263    
264            /**
265             * Returns the company persistence.
266             *
267             * @return the company persistence
268             */
269            public CompanyPersistence getCompanyPersistence() {
270                    return companyPersistence;
271            }
272    
273            /**
274             * Sets the company persistence.
275             *
276             * @param companyPersistence the company persistence
277             */
278            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
279                    this.companyPersistence = companyPersistence;
280            }
281    
282            /**
283             * Returns the group local service.
284             *
285             * @return the group local service
286             */
287            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
288                    return groupLocalService;
289            }
290    
291            /**
292             * Sets the group local service.
293             *
294             * @param groupLocalService the group local service
295             */
296            public void setGroupLocalService(
297                    com.liferay.portal.service.GroupLocalService groupLocalService) {
298                    this.groupLocalService = groupLocalService;
299            }
300    
301            /**
302             * Returns the group remote service.
303             *
304             * @return the group remote service
305             */
306            public com.liferay.portal.service.GroupService getGroupService() {
307                    return groupService;
308            }
309    
310            /**
311             * Sets the group remote service.
312             *
313             * @param groupService the group remote service
314             */
315            public void setGroupService(
316                    com.liferay.portal.service.GroupService groupService) {
317                    this.groupService = groupService;
318            }
319    
320            /**
321             * Returns the group persistence.
322             *
323             * @return the group persistence
324             */
325            public GroupPersistence getGroupPersistence() {
326                    return groupPersistence;
327            }
328    
329            /**
330             * Sets the group persistence.
331             *
332             * @param groupPersistence the group persistence
333             */
334            public void setGroupPersistence(GroupPersistence groupPersistence) {
335                    this.groupPersistence = groupPersistence;
336            }
337    
338            /**
339             * Returns the group finder.
340             *
341             * @return the group finder
342             */
343            public GroupFinder getGroupFinder() {
344                    return groupFinder;
345            }
346    
347            /**
348             * Sets the group finder.
349             *
350             * @param groupFinder the group finder
351             */
352            public void setGroupFinder(GroupFinder groupFinder) {
353                    this.groupFinder = groupFinder;
354            }
355    
356            /**
357             * Returns the layout local service.
358             *
359             * @return the layout local service
360             */
361            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
362                    return layoutLocalService;
363            }
364    
365            /**
366             * Sets the layout local service.
367             *
368             * @param layoutLocalService the layout local service
369             */
370            public void setLayoutLocalService(
371                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
372                    this.layoutLocalService = layoutLocalService;
373            }
374    
375            /**
376             * Returns the layout remote service.
377             *
378             * @return the layout remote service
379             */
380            public com.liferay.portal.service.LayoutService getLayoutService() {
381                    return layoutService;
382            }
383    
384            /**
385             * Sets the layout remote service.
386             *
387             * @param layoutService the layout remote service
388             */
389            public void setLayoutService(
390                    com.liferay.portal.service.LayoutService layoutService) {
391                    this.layoutService = layoutService;
392            }
393    
394            /**
395             * Returns the layout persistence.
396             *
397             * @return the layout persistence
398             */
399            public LayoutPersistence getLayoutPersistence() {
400                    return layoutPersistence;
401            }
402    
403            /**
404             * Sets the layout persistence.
405             *
406             * @param layoutPersistence the layout persistence
407             */
408            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
409                    this.layoutPersistence = layoutPersistence;
410            }
411    
412            /**
413             * Returns the layout finder.
414             *
415             * @return the layout finder
416             */
417            public LayoutFinder getLayoutFinder() {
418                    return layoutFinder;
419            }
420    
421            /**
422             * Sets the layout finder.
423             *
424             * @param layoutFinder the layout finder
425             */
426            public void setLayoutFinder(LayoutFinder layoutFinder) {
427                    this.layoutFinder = layoutFinder;
428            }
429    
430            /**
431             * Returns the resource local service.
432             *
433             * @return the resource local service
434             */
435            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
436                    return resourceLocalService;
437            }
438    
439            /**
440             * Sets the resource local service.
441             *
442             * @param resourceLocalService the resource local service
443             */
444            public void setResourceLocalService(
445                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
446                    this.resourceLocalService = resourceLocalService;
447            }
448    
449            /**
450             * Returns the resource action local service.
451             *
452             * @return the resource action local service
453             */
454            public com.liferay.portal.service.ResourceActionLocalService getResourceActionLocalService() {
455                    return resourceActionLocalService;
456            }
457    
458            /**
459             * Sets the resource action local service.
460             *
461             * @param resourceActionLocalService the resource action local service
462             */
463            public void setResourceActionLocalService(
464                    com.liferay.portal.service.ResourceActionLocalService resourceActionLocalService) {
465                    this.resourceActionLocalService = resourceActionLocalService;
466            }
467    
468            /**
469             * Returns the resource action persistence.
470             *
471             * @return the resource action persistence
472             */
473            public ResourceActionPersistence getResourceActionPersistence() {
474                    return resourceActionPersistence;
475            }
476    
477            /**
478             * Sets the resource action persistence.
479             *
480             * @param resourceActionPersistence the resource action persistence
481             */
482            public void setResourceActionPersistence(
483                    ResourceActionPersistence resourceActionPersistence) {
484                    this.resourceActionPersistence = resourceActionPersistence;
485            }
486    
487            /**
488             * Returns the resource block local service.
489             *
490             * @return the resource block local service
491             */
492            public com.liferay.portal.service.ResourceBlockLocalService getResourceBlockLocalService() {
493                    return resourceBlockLocalService;
494            }
495    
496            /**
497             * Sets the resource block local service.
498             *
499             * @param resourceBlockLocalService the resource block local service
500             */
501            public void setResourceBlockLocalService(
502                    com.liferay.portal.service.ResourceBlockLocalService resourceBlockLocalService) {
503                    this.resourceBlockLocalService = resourceBlockLocalService;
504            }
505    
506            /**
507             * Returns the resource block remote service.
508             *
509             * @return the resource block remote service
510             */
511            public com.liferay.portal.service.ResourceBlockService getResourceBlockService() {
512                    return resourceBlockService;
513            }
514    
515            /**
516             * Sets the resource block remote service.
517             *
518             * @param resourceBlockService the resource block remote service
519             */
520            public void setResourceBlockService(
521                    com.liferay.portal.service.ResourceBlockService resourceBlockService) {
522                    this.resourceBlockService = resourceBlockService;
523            }
524    
525            /**
526             * Returns the resource block persistence.
527             *
528             * @return the resource block persistence
529             */
530            public ResourceBlockPersistence getResourceBlockPersistence() {
531                    return resourceBlockPersistence;
532            }
533    
534            /**
535             * Sets the resource block persistence.
536             *
537             * @param resourceBlockPersistence the resource block persistence
538             */
539            public void setResourceBlockPersistence(
540                    ResourceBlockPersistence resourceBlockPersistence) {
541                    this.resourceBlockPersistence = resourceBlockPersistence;
542            }
543    
544            /**
545             * Returns the resource block finder.
546             *
547             * @return the resource block finder
548             */
549            public ResourceBlockFinder getResourceBlockFinder() {
550                    return resourceBlockFinder;
551            }
552    
553            /**
554             * Sets the resource block finder.
555             *
556             * @param resourceBlockFinder the resource block finder
557             */
558            public void setResourceBlockFinder(ResourceBlockFinder resourceBlockFinder) {
559                    this.resourceBlockFinder = resourceBlockFinder;
560            }
561    
562            /**
563             * Returns the resource block permission local service.
564             *
565             * @return the resource block permission local service
566             */
567            public com.liferay.portal.service.ResourceBlockPermissionLocalService getResourceBlockPermissionLocalService() {
568                    return resourceBlockPermissionLocalService;
569            }
570    
571            /**
572             * Sets the resource block permission local service.
573             *
574             * @param resourceBlockPermissionLocalService the resource block permission local service
575             */
576            public void setResourceBlockPermissionLocalService(
577                    com.liferay.portal.service.ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
578                    this.resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
579            }
580    
581            /**
582             * Returns the resource block permission persistence.
583             *
584             * @return the resource block permission persistence
585             */
586            public ResourceBlockPermissionPersistence getResourceBlockPermissionPersistence() {
587                    return resourceBlockPermissionPersistence;
588            }
589    
590            /**
591             * Sets the resource block permission persistence.
592             *
593             * @param resourceBlockPermissionPersistence the resource block permission persistence
594             */
595            public void setResourceBlockPermissionPersistence(
596                    ResourceBlockPermissionPersistence resourceBlockPermissionPersistence) {
597                    this.resourceBlockPermissionPersistence = resourceBlockPermissionPersistence;
598            }
599    
600            /**
601             * Returns the resource permission local service.
602             *
603             * @return the resource permission local service
604             */
605            public com.liferay.portal.service.ResourcePermissionLocalService getResourcePermissionLocalService() {
606                    return resourcePermissionLocalService;
607            }
608    
609            /**
610             * Sets the resource permission local service.
611             *
612             * @param resourcePermissionLocalService the resource permission local service
613             */
614            public void setResourcePermissionLocalService(
615                    com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService) {
616                    this.resourcePermissionLocalService = resourcePermissionLocalService;
617            }
618    
619            /**
620             * Returns the resource permission remote service.
621             *
622             * @return the resource permission remote service
623             */
624            public com.liferay.portal.service.ResourcePermissionService getResourcePermissionService() {
625                    return resourcePermissionService;
626            }
627    
628            /**
629             * Sets the resource permission remote service.
630             *
631             * @param resourcePermissionService the resource permission remote service
632             */
633            public void setResourcePermissionService(
634                    com.liferay.portal.service.ResourcePermissionService resourcePermissionService) {
635                    this.resourcePermissionService = resourcePermissionService;
636            }
637    
638            /**
639             * Returns the resource permission persistence.
640             *
641             * @return the resource permission persistence
642             */
643            public ResourcePermissionPersistence getResourcePermissionPersistence() {
644                    return resourcePermissionPersistence;
645            }
646    
647            /**
648             * Sets the resource permission persistence.
649             *
650             * @param resourcePermissionPersistence the resource permission persistence
651             */
652            public void setResourcePermissionPersistence(
653                    ResourcePermissionPersistence resourcePermissionPersistence) {
654                    this.resourcePermissionPersistence = resourcePermissionPersistence;
655            }
656    
657            /**
658             * Returns the resource permission finder.
659             *
660             * @return the resource permission finder
661             */
662            public ResourcePermissionFinder getResourcePermissionFinder() {
663                    return resourcePermissionFinder;
664            }
665    
666            /**
667             * Sets the resource permission finder.
668             *
669             * @param resourcePermissionFinder the resource permission finder
670             */
671            public void setResourcePermissionFinder(
672                    ResourcePermissionFinder resourcePermissionFinder) {
673                    this.resourcePermissionFinder = resourcePermissionFinder;
674            }
675    
676            /**
677             * Returns the resource type permission local service.
678             *
679             * @return the resource type permission local service
680             */
681            public com.liferay.portal.service.ResourceTypePermissionLocalService getResourceTypePermissionLocalService() {
682                    return resourceTypePermissionLocalService;
683            }
684    
685            /**
686             * Sets the resource type permission local service.
687             *
688             * @param resourceTypePermissionLocalService the resource type permission local service
689             */
690            public void setResourceTypePermissionLocalService(
691                    com.liferay.portal.service.ResourceTypePermissionLocalService resourceTypePermissionLocalService) {
692                    this.resourceTypePermissionLocalService = resourceTypePermissionLocalService;
693            }
694    
695            /**
696             * Returns the resource type permission persistence.
697             *
698             * @return the resource type permission persistence
699             */
700            public ResourceTypePermissionPersistence getResourceTypePermissionPersistence() {
701                    return resourceTypePermissionPersistence;
702            }
703    
704            /**
705             * Sets the resource type permission persistence.
706             *
707             * @param resourceTypePermissionPersistence the resource type permission persistence
708             */
709            public void setResourceTypePermissionPersistence(
710                    ResourceTypePermissionPersistence resourceTypePermissionPersistence) {
711                    this.resourceTypePermissionPersistence = resourceTypePermissionPersistence;
712            }
713    
714            /**
715             * Returns the resource type permission finder.
716             *
717             * @return the resource type permission finder
718             */
719            public ResourceTypePermissionFinder getResourceTypePermissionFinder() {
720                    return resourceTypePermissionFinder;
721            }
722    
723            /**
724             * Sets the resource type permission finder.
725             *
726             * @param resourceTypePermissionFinder the resource type permission finder
727             */
728            public void setResourceTypePermissionFinder(
729                    ResourceTypePermissionFinder resourceTypePermissionFinder) {
730                    this.resourceTypePermissionFinder = resourceTypePermissionFinder;
731            }
732    
733            /**
734             * Returns the expando row local service.
735             *
736             * @return the expando row local service
737             */
738            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
739                    return expandoRowLocalService;
740            }
741    
742            /**
743             * Sets the expando row local service.
744             *
745             * @param expandoRowLocalService the expando row local service
746             */
747            public void setExpandoRowLocalService(
748                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
749                    this.expandoRowLocalService = expandoRowLocalService;
750            }
751    
752            /**
753             * Returns the expando row persistence.
754             *
755             * @return the expando row persistence
756             */
757            public ExpandoRowPersistence getExpandoRowPersistence() {
758                    return expandoRowPersistence;
759            }
760    
761            /**
762             * Sets the expando row persistence.
763             *
764             * @param expandoRowPersistence the expando row persistence
765             */
766            public void setExpandoRowPersistence(
767                    ExpandoRowPersistence expandoRowPersistence) {
768                    this.expandoRowPersistence = expandoRowPersistence;
769            }
770    
771            /**
772             * Returns the team local service.
773             *
774             * @return the team local service
775             */
776            public com.liferay.portal.service.TeamLocalService getTeamLocalService() {
777                    return teamLocalService;
778            }
779    
780            /**
781             * Sets the team local service.
782             *
783             * @param teamLocalService the team local service
784             */
785            public void setTeamLocalService(
786                    com.liferay.portal.service.TeamLocalService teamLocalService) {
787                    this.teamLocalService = teamLocalService;
788            }
789    
790            /**
791             * Returns the team remote service.
792             *
793             * @return the team remote service
794             */
795            public com.liferay.portal.service.TeamService getTeamService() {
796                    return teamService;
797            }
798    
799            /**
800             * Sets the team remote service.
801             *
802             * @param teamService the team remote service
803             */
804            public void setTeamService(
805                    com.liferay.portal.service.TeamService teamService) {
806                    this.teamService = teamService;
807            }
808    
809            /**
810             * Returns the team persistence.
811             *
812             * @return the team persistence
813             */
814            public TeamPersistence getTeamPersistence() {
815                    return teamPersistence;
816            }
817    
818            /**
819             * Sets the team persistence.
820             *
821             * @param teamPersistence the team persistence
822             */
823            public void setTeamPersistence(TeamPersistence teamPersistence) {
824                    this.teamPersistence = teamPersistence;
825            }
826    
827            /**
828             * Returns the team finder.
829             *
830             * @return the team finder
831             */
832            public TeamFinder getTeamFinder() {
833                    return teamFinder;
834            }
835    
836            /**
837             * Sets the team finder.
838             *
839             * @param teamFinder the team finder
840             */
841            public void setTeamFinder(TeamFinder teamFinder) {
842                    this.teamFinder = teamFinder;
843            }
844    
845            /**
846             * Returns the user local service.
847             *
848             * @return the user local service
849             */
850            public com.liferay.portal.service.UserLocalService getUserLocalService() {
851                    return userLocalService;
852            }
853    
854            /**
855             * Sets the user local service.
856             *
857             * @param userLocalService the user local service
858             */
859            public void setUserLocalService(
860                    com.liferay.portal.service.UserLocalService userLocalService) {
861                    this.userLocalService = userLocalService;
862            }
863    
864            /**
865             * Returns the user remote service.
866             *
867             * @return the user remote service
868             */
869            public com.liferay.portal.service.UserService getUserService() {
870                    return userService;
871            }
872    
873            /**
874             * Sets the user remote service.
875             *
876             * @param userService the user remote service
877             */
878            public void setUserService(
879                    com.liferay.portal.service.UserService userService) {
880                    this.userService = userService;
881            }
882    
883            /**
884             * Returns the user persistence.
885             *
886             * @return the user persistence
887             */
888            public UserPersistence getUserPersistence() {
889                    return userPersistence;
890            }
891    
892            /**
893             * Sets the user persistence.
894             *
895             * @param userPersistence the user persistence
896             */
897            public void setUserPersistence(UserPersistence userPersistence) {
898                    this.userPersistence = userPersistence;
899            }
900    
901            /**
902             * Returns the user finder.
903             *
904             * @return the user finder
905             */
906            public UserFinder getUserFinder() {
907                    return userFinder;
908            }
909    
910            /**
911             * Sets the user finder.
912             *
913             * @param userFinder the user finder
914             */
915            public void setUserFinder(UserFinder userFinder) {
916                    this.userFinder = userFinder;
917            }
918    
919            /**
920             * Returns the user group group role local service.
921             *
922             * @return the user group group role local service
923             */
924            public com.liferay.portal.service.UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService() {
925                    return userGroupGroupRoleLocalService;
926            }
927    
928            /**
929             * Sets the user group group role local service.
930             *
931             * @param userGroupGroupRoleLocalService the user group group role local service
932             */
933            public void setUserGroupGroupRoleLocalService(
934                    com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
935                    this.userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
936            }
937    
938            /**
939             * Returns the user group group role remote service.
940             *
941             * @return the user group group role remote service
942             */
943            public com.liferay.portal.service.UserGroupGroupRoleService getUserGroupGroupRoleService() {
944                    return userGroupGroupRoleService;
945            }
946    
947            /**
948             * Sets the user group group role remote service.
949             *
950             * @param userGroupGroupRoleService the user group group role remote service
951             */
952            public void setUserGroupGroupRoleService(
953                    com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService) {
954                    this.userGroupGroupRoleService = userGroupGroupRoleService;
955            }
956    
957            /**
958             * Returns the user group group role persistence.
959             *
960             * @return the user group group role persistence
961             */
962            public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence() {
963                    return userGroupGroupRolePersistence;
964            }
965    
966            /**
967             * Sets the user group group role persistence.
968             *
969             * @param userGroupGroupRolePersistence the user group group role persistence
970             */
971            public void setUserGroupGroupRolePersistence(
972                    UserGroupGroupRolePersistence userGroupGroupRolePersistence) {
973                    this.userGroupGroupRolePersistence = userGroupGroupRolePersistence;
974            }
975    
976            /**
977             * Returns the user group group role finder.
978             *
979             * @return the user group group role finder
980             */
981            public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder() {
982                    return userGroupGroupRoleFinder;
983            }
984    
985            /**
986             * Sets the user group group role finder.
987             *
988             * @param userGroupGroupRoleFinder the user group group role finder
989             */
990            public void setUserGroupGroupRoleFinder(
991                    UserGroupGroupRoleFinder userGroupGroupRoleFinder) {
992                    this.userGroupGroupRoleFinder = userGroupGroupRoleFinder;
993            }
994    
995            /**
996             * Returns the user group role local service.
997             *
998             * @return the user group role local service
999             */
1000            public com.liferay.portal.service.UserGroupRoleLocalService getUserGroupRoleLocalService() {
1001                    return userGroupRoleLocalService;
1002            }
1003    
1004            /**
1005             * Sets the user group role local service.
1006             *
1007             * @param userGroupRoleLocalService the user group role local service
1008             */
1009            public void setUserGroupRoleLocalService(
1010                    com.liferay.portal.service.UserGroupRoleLocalService userGroupRoleLocalService) {
1011                    this.userGroupRoleLocalService = userGroupRoleLocalService;
1012            }
1013    
1014            /**
1015             * Returns the user group role remote service.
1016             *
1017             * @return the user group role remote service
1018             */
1019            public com.liferay.portal.service.UserGroupRoleService getUserGroupRoleService() {
1020                    return userGroupRoleService;
1021            }
1022    
1023            /**
1024             * Sets the user group role remote service.
1025             *
1026             * @param userGroupRoleService the user group role remote service
1027             */
1028            public void setUserGroupRoleService(
1029                    com.liferay.portal.service.UserGroupRoleService userGroupRoleService) {
1030                    this.userGroupRoleService = userGroupRoleService;
1031            }
1032    
1033            /**
1034             * Returns the user group role persistence.
1035             *
1036             * @return the user group role persistence
1037             */
1038            public UserGroupRolePersistence getUserGroupRolePersistence() {
1039                    return userGroupRolePersistence;
1040            }
1041    
1042            /**
1043             * Sets the user group role persistence.
1044             *
1045             * @param userGroupRolePersistence the user group role persistence
1046             */
1047            public void setUserGroupRolePersistence(
1048                    UserGroupRolePersistence userGroupRolePersistence) {
1049                    this.userGroupRolePersistence = userGroupRolePersistence;
1050            }
1051    
1052            /**
1053             * Returns the user group role finder.
1054             *
1055             * @return the user group role finder
1056             */
1057            public UserGroupRoleFinder getUserGroupRoleFinder() {
1058                    return userGroupRoleFinder;
1059            }
1060    
1061            /**
1062             * Sets the user group role finder.
1063             *
1064             * @param userGroupRoleFinder the user group role finder
1065             */
1066            public void setUserGroupRoleFinder(UserGroupRoleFinder userGroupRoleFinder) {
1067                    this.userGroupRoleFinder = userGroupRoleFinder;
1068            }
1069    
1070            public void afterPropertiesSet() {
1071            }
1072    
1073            public void destroy() {
1074            }
1075    
1076            /**
1077             * Returns the OSGi service identifier.
1078             *
1079             * @return the OSGi service identifier
1080             */
1081            @Override
1082            public String getOSGiServiceIdentifier() {
1083                    return RoleService.class.getName();
1084            }
1085    
1086            protected Class<?> getModelClass() {
1087                    return Role.class;
1088            }
1089    
1090            protected String getModelClassName() {
1091                    return Role.class.getName();
1092            }
1093    
1094            /**
1095             * Performs a SQL query.
1096             *
1097             * @param sql the sql query
1098             */
1099            protected void runSQL(String sql) {
1100                    try {
1101                            DataSource dataSource = rolePersistence.getDataSource();
1102    
1103                            DB db = DBManagerUtil.getDB();
1104    
1105                            sql = db.buildSQL(sql);
1106                            sql = PortalUtil.transformSQL(sql);
1107    
1108                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1109                                            sql, new int[0]);
1110    
1111                            sqlUpdate.update();
1112                    }
1113                    catch (Exception e) {
1114                            throw new SystemException(e);
1115                    }
1116            }
1117    
1118            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
1119            protected com.liferay.portal.service.RoleLocalService roleLocalService;
1120            @BeanReference(type = com.liferay.portal.service.RoleService.class)
1121            protected RoleService roleService;
1122            @BeanReference(type = RolePersistence.class)
1123            protected RolePersistence rolePersistence;
1124            @BeanReference(type = RoleFinder.class)
1125            protected RoleFinder roleFinder;
1126            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1127            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1128            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1129            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1130            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1131            protected com.liferay.portal.service.ClassNameService classNameService;
1132            @BeanReference(type = ClassNamePersistence.class)
1133            protected ClassNamePersistence classNamePersistence;
1134            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1135            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1136            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1137            protected com.liferay.portal.service.CompanyService companyService;
1138            @BeanReference(type = CompanyPersistence.class)
1139            protected CompanyPersistence companyPersistence;
1140            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1141            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1142            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1143            protected com.liferay.portal.service.GroupService groupService;
1144            @BeanReference(type = GroupPersistence.class)
1145            protected GroupPersistence groupPersistence;
1146            @BeanReference(type = GroupFinder.class)
1147            protected GroupFinder groupFinder;
1148            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1149            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1150            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1151            protected com.liferay.portal.service.LayoutService layoutService;
1152            @BeanReference(type = LayoutPersistence.class)
1153            protected LayoutPersistence layoutPersistence;
1154            @BeanReference(type = LayoutFinder.class)
1155            protected LayoutFinder layoutFinder;
1156            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1157            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1158            @BeanReference(type = com.liferay.portal.service.ResourceActionLocalService.class)
1159            protected com.liferay.portal.service.ResourceActionLocalService resourceActionLocalService;
1160            @BeanReference(type = ResourceActionPersistence.class)
1161            protected ResourceActionPersistence resourceActionPersistence;
1162            @BeanReference(type = com.liferay.portal.service.ResourceBlockLocalService.class)
1163            protected com.liferay.portal.service.ResourceBlockLocalService resourceBlockLocalService;
1164            @BeanReference(type = com.liferay.portal.service.ResourceBlockService.class)
1165            protected com.liferay.portal.service.ResourceBlockService resourceBlockService;
1166            @BeanReference(type = ResourceBlockPersistence.class)
1167            protected ResourceBlockPersistence resourceBlockPersistence;
1168            @BeanReference(type = ResourceBlockFinder.class)
1169            protected ResourceBlockFinder resourceBlockFinder;
1170            @BeanReference(type = com.liferay.portal.service.ResourceBlockPermissionLocalService.class)
1171            protected com.liferay.portal.service.ResourceBlockPermissionLocalService resourceBlockPermissionLocalService;
1172            @BeanReference(type = ResourceBlockPermissionPersistence.class)
1173            protected ResourceBlockPermissionPersistence resourceBlockPermissionPersistence;
1174            @BeanReference(type = com.liferay.portal.service.ResourcePermissionLocalService.class)
1175            protected com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService;
1176            @BeanReference(type = com.liferay.portal.service.ResourcePermissionService.class)
1177            protected com.liferay.portal.service.ResourcePermissionService resourcePermissionService;
1178            @BeanReference(type = ResourcePermissionPersistence.class)
1179            protected ResourcePermissionPersistence resourcePermissionPersistence;
1180            @BeanReference(type = ResourcePermissionFinder.class)
1181            protected ResourcePermissionFinder resourcePermissionFinder;
1182            @BeanReference(type = com.liferay.portal.service.ResourceTypePermissionLocalService.class)
1183            protected com.liferay.portal.service.ResourceTypePermissionLocalService resourceTypePermissionLocalService;
1184            @BeanReference(type = ResourceTypePermissionPersistence.class)
1185            protected ResourceTypePermissionPersistence resourceTypePermissionPersistence;
1186            @BeanReference(type = ResourceTypePermissionFinder.class)
1187            protected ResourceTypePermissionFinder resourceTypePermissionFinder;
1188            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1189            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1190            @BeanReference(type = ExpandoRowPersistence.class)
1191            protected ExpandoRowPersistence expandoRowPersistence;
1192            @BeanReference(type = com.liferay.portal.service.TeamLocalService.class)
1193            protected com.liferay.portal.service.TeamLocalService teamLocalService;
1194            @BeanReference(type = com.liferay.portal.service.TeamService.class)
1195            protected com.liferay.portal.service.TeamService teamService;
1196            @BeanReference(type = TeamPersistence.class)
1197            protected TeamPersistence teamPersistence;
1198            @BeanReference(type = TeamFinder.class)
1199            protected TeamFinder teamFinder;
1200            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1201            protected com.liferay.portal.service.UserLocalService userLocalService;
1202            @BeanReference(type = com.liferay.portal.service.UserService.class)
1203            protected com.liferay.portal.service.UserService userService;
1204            @BeanReference(type = UserPersistence.class)
1205            protected UserPersistence userPersistence;
1206            @BeanReference(type = UserFinder.class)
1207            protected UserFinder userFinder;
1208            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleLocalService.class)
1209            protected com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService;
1210            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleService.class)
1211            protected com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService;
1212            @BeanReference(type = UserGroupGroupRolePersistence.class)
1213            protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
1214            @BeanReference(type = UserGroupGroupRoleFinder.class)
1215            protected UserGroupGroupRoleFinder userGroupGroupRoleFinder;
1216            @BeanReference(type = com.liferay.portal.service.UserGroupRoleLocalService.class)
1217            protected com.liferay.portal.service.UserGroupRoleLocalService userGroupRoleLocalService;
1218            @BeanReference(type = com.liferay.portal.service.UserGroupRoleService.class)
1219            protected com.liferay.portal.service.UserGroupRoleService userGroupRoleService;
1220            @BeanReference(type = UserGroupRolePersistence.class)
1221            protected UserGroupRolePersistence userGroupRolePersistence;
1222            @BeanReference(type = UserGroupRoleFinder.class)
1223            protected UserGroupRoleFinder userGroupRoleFinder;
1224    }