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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.Projection;
029    import com.liferay.portal.kernel.exception.PortalException;
030    import com.liferay.portal.kernel.exception.SystemException;
031    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
032    import com.liferay.portal.kernel.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.PersistedModel;
036    import com.liferay.portal.model.UserGroupGroupRole;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.UserGroupGroupRoleLocalService;
040    import com.liferay.portal.service.persistence.RoleFinder;
041    import com.liferay.portal.service.persistence.RolePersistence;
042    import com.liferay.portal.service.persistence.UserGroupFinder;
043    import com.liferay.portal.service.persistence.UserGroupGroupRoleFinder;
044    import com.liferay.portal.service.persistence.UserGroupGroupRolePK;
045    import com.liferay.portal.service.persistence.UserGroupGroupRolePersistence;
046    import com.liferay.portal.service.persistence.UserGroupPersistence;
047    import com.liferay.portal.util.PortalUtil;
048    
049    import java.io.Serializable;
050    
051    import java.util.List;
052    
053    import javax.sql.DataSource;
054    
055    /**
056     * Provides the base implementation for the user group group role local service.
057     *
058     * <p>
059     * 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.UserGroupGroupRoleLocalServiceImpl}.
060     * </p>
061     *
062     * @author Brian Wing Shun Chan
063     * @see com.liferay.portal.service.impl.UserGroupGroupRoleLocalServiceImpl
064     * @see com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil
065     * @generated
066     */
067    @ProviderType
068    public abstract class UserGroupGroupRoleLocalServiceBaseImpl
069            extends BaseLocalServiceImpl implements UserGroupGroupRoleLocalService,
070                    IdentifiableOSGiService {
071            /*
072             * NOTE FOR DEVELOPERS:
073             *
074             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil} to access the user group group role local service.
075             */
076    
077            /**
078             * Adds the user group group role to the database. Also notifies the appropriate model listeners.
079             *
080             * @param userGroupGroupRole the user group group role
081             * @return the user group group role that was added
082             */
083            @Indexable(type = IndexableType.REINDEX)
084            @Override
085            public UserGroupGroupRole addUserGroupGroupRole(
086                    UserGroupGroupRole userGroupGroupRole) {
087                    userGroupGroupRole.setNew(true);
088    
089                    return userGroupGroupRolePersistence.update(userGroupGroupRole);
090            }
091    
092            /**
093             * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
094             *
095             * @param userGroupGroupRolePK the primary key for the new user group group role
096             * @return the new user group group role
097             */
098            @Override
099            public UserGroupGroupRole createUserGroupGroupRole(
100                    UserGroupGroupRolePK userGroupGroupRolePK) {
101                    return userGroupGroupRolePersistence.create(userGroupGroupRolePK);
102            }
103    
104            /**
105             * Deletes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
106             *
107             * @param userGroupGroupRolePK the primary key of the user group group role
108             * @return the user group group role that was removed
109             * @throws PortalException if a user group group role with the primary key could not be found
110             */
111            @Indexable(type = IndexableType.DELETE)
112            @Override
113            public UserGroupGroupRole deleteUserGroupGroupRole(
114                    UserGroupGroupRolePK userGroupGroupRolePK) throws PortalException {
115                    return userGroupGroupRolePersistence.remove(userGroupGroupRolePK);
116            }
117    
118            /**
119             * Deletes the user group group role from the database. Also notifies the appropriate model listeners.
120             *
121             * @param userGroupGroupRole the user group group role
122             * @return the user group group role that was removed
123             */
124            @Indexable(type = IndexableType.DELETE)
125            @Override
126            public UserGroupGroupRole deleteUserGroupGroupRole(
127                    UserGroupGroupRole userGroupGroupRole) {
128                    return userGroupGroupRolePersistence.remove(userGroupGroupRole);
129            }
130    
131            @Override
132            public DynamicQuery dynamicQuery() {
133                    Class<?> clazz = getClass();
134    
135                    return DynamicQueryFactoryUtil.forClass(UserGroupGroupRole.class,
136                            clazz.getClassLoader());
137            }
138    
139            /**
140             * Performs a dynamic query on the database and returns the matching rows.
141             *
142             * @param dynamicQuery the dynamic query
143             * @return the matching rows
144             */
145            @Override
146            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
147                    return userGroupGroupRolePersistence.findWithDynamicQuery(dynamicQuery);
148            }
149    
150            /**
151             * Performs a dynamic query on the database and returns a range of the matching rows.
152             *
153             * <p>
154             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupGroupRoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
155             * </p>
156             *
157             * @param dynamicQuery the dynamic query
158             * @param start the lower bound of the range of model instances
159             * @param end the upper bound of the range of model instances (not inclusive)
160             * @return the range of matching rows
161             */
162            @Override
163            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
164                    int end) {
165                    return userGroupGroupRolePersistence.findWithDynamicQuery(dynamicQuery,
166                            start, end);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171             *
172             * <p>
173             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupGroupRoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180             * @return the ordered range of matching rows
181             */
182            @Override
183            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
184                    int end, OrderByComparator<T> orderByComparator) {
185                    return userGroupGroupRolePersistence.findWithDynamicQuery(dynamicQuery,
186                            start, end, orderByComparator);
187            }
188    
189            /**
190             * Returns the number of rows matching the dynamic query.
191             *
192             * @param dynamicQuery the dynamic query
193             * @return the number of rows matching the dynamic query
194             */
195            @Override
196            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
197                    return userGroupGroupRolePersistence.countWithDynamicQuery(dynamicQuery);
198            }
199    
200            /**
201             * Returns the number of rows matching the dynamic query.
202             *
203             * @param dynamicQuery the dynamic query
204             * @param projection the projection to apply to the query
205             * @return the number of rows matching the dynamic query
206             */
207            @Override
208            public long dynamicQueryCount(DynamicQuery dynamicQuery,
209                    Projection projection) {
210                    return userGroupGroupRolePersistence.countWithDynamicQuery(dynamicQuery,
211                            projection);
212            }
213    
214            @Override
215            public UserGroupGroupRole fetchUserGroupGroupRole(
216                    UserGroupGroupRolePK userGroupGroupRolePK) {
217                    return userGroupGroupRolePersistence.fetchByPrimaryKey(userGroupGroupRolePK);
218            }
219    
220            /**
221             * Returns the user group group role with the primary key.
222             *
223             * @param userGroupGroupRolePK the primary key of the user group group role
224             * @return the user group group role
225             * @throws PortalException if a user group group role with the primary key could not be found
226             */
227            @Override
228            public UserGroupGroupRole getUserGroupGroupRole(
229                    UserGroupGroupRolePK userGroupGroupRolePK) throws PortalException {
230                    return userGroupGroupRolePersistence.findByPrimaryKey(userGroupGroupRolePK);
231            }
232    
233            @Override
234            public ActionableDynamicQuery getActionableDynamicQuery() {
235                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
236    
237                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil.getService());
238                    actionableDynamicQuery.setClass(UserGroupGroupRole.class);
239                    actionableDynamicQuery.setClassLoader(getClassLoader());
240    
241                    actionableDynamicQuery.setPrimaryKeyPropertyName(
242                            "primaryKey.userGroupId");
243    
244                    actionableDynamicQuery.setGroupIdPropertyName("primaryKey.groupId");
245    
246                    return actionableDynamicQuery;
247            }
248    
249            protected void initActionableDynamicQuery(
250                    ActionableDynamicQuery actionableDynamicQuery) {
251                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.UserGroupGroupRoleLocalServiceUtil.getService());
252                    actionableDynamicQuery.setClass(UserGroupGroupRole.class);
253                    actionableDynamicQuery.setClassLoader(getClassLoader());
254    
255                    actionableDynamicQuery.setPrimaryKeyPropertyName(
256                            "primaryKey.userGroupId");
257    
258                    actionableDynamicQuery.setGroupIdPropertyName("primaryKey.groupId");
259            }
260    
261            /**
262             * @throws PortalException
263             */
264            @Override
265            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
266                    throws PortalException {
267                    return userGroupGroupRoleLocalService.deleteUserGroupGroupRole((UserGroupGroupRole)persistedModel);
268            }
269    
270            @Override
271            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
272                    throws PortalException {
273                    return userGroupGroupRolePersistence.findByPrimaryKey(primaryKeyObj);
274            }
275    
276            /**
277             * Returns a range of all the user group group roles.
278             *
279             * <p>
280             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupGroupRoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
281             * </p>
282             *
283             * @param start the lower bound of the range of user group group roles
284             * @param end the upper bound of the range of user group group roles (not inclusive)
285             * @return the range of user group group roles
286             */
287            @Override
288            public List<UserGroupGroupRole> getUserGroupGroupRoles(int start, int end) {
289                    return userGroupGroupRolePersistence.findAll(start, end);
290            }
291    
292            /**
293             * Returns the number of user group group roles.
294             *
295             * @return the number of user group group roles
296             */
297            @Override
298            public int getUserGroupGroupRolesCount() {
299                    return userGroupGroupRolePersistence.countAll();
300            }
301    
302            /**
303             * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
304             *
305             * @param userGroupGroupRole the user group group role
306             * @return the user group group role that was updated
307             */
308            @Indexable(type = IndexableType.REINDEX)
309            @Override
310            public UserGroupGroupRole updateUserGroupGroupRole(
311                    UserGroupGroupRole userGroupGroupRole) {
312                    return userGroupGroupRolePersistence.update(userGroupGroupRole);
313            }
314    
315            /**
316             * Returns the user group group role local service.
317             *
318             * @return the user group group role local service
319             */
320            public UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService() {
321                    return userGroupGroupRoleLocalService;
322            }
323    
324            /**
325             * Sets the user group group role local service.
326             *
327             * @param userGroupGroupRoleLocalService the user group group role local service
328             */
329            public void setUserGroupGroupRoleLocalService(
330                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
331                    this.userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
332            }
333    
334            /**
335             * Returns the user group group role remote service.
336             *
337             * @return the user group group role remote service
338             */
339            public com.liferay.portal.service.UserGroupGroupRoleService getUserGroupGroupRoleService() {
340                    return userGroupGroupRoleService;
341            }
342    
343            /**
344             * Sets the user group group role remote service.
345             *
346             * @param userGroupGroupRoleService the user group group role remote service
347             */
348            public void setUserGroupGroupRoleService(
349                    com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService) {
350                    this.userGroupGroupRoleService = userGroupGroupRoleService;
351            }
352    
353            /**
354             * Returns the user group group role persistence.
355             *
356             * @return the user group group role persistence
357             */
358            public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence() {
359                    return userGroupGroupRolePersistence;
360            }
361    
362            /**
363             * Sets the user group group role persistence.
364             *
365             * @param userGroupGroupRolePersistence the user group group role persistence
366             */
367            public void setUserGroupGroupRolePersistence(
368                    UserGroupGroupRolePersistence userGroupGroupRolePersistence) {
369                    this.userGroupGroupRolePersistence = userGroupGroupRolePersistence;
370            }
371    
372            /**
373             * Returns the user group group role finder.
374             *
375             * @return the user group group role finder
376             */
377            public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder() {
378                    return userGroupGroupRoleFinder;
379            }
380    
381            /**
382             * Sets the user group group role finder.
383             *
384             * @param userGroupGroupRoleFinder the user group group role finder
385             */
386            public void setUserGroupGroupRoleFinder(
387                    UserGroupGroupRoleFinder userGroupGroupRoleFinder) {
388                    this.userGroupGroupRoleFinder = userGroupGroupRoleFinder;
389            }
390    
391            /**
392             * Returns the counter local service.
393             *
394             * @return the counter local service
395             */
396            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
397                    return counterLocalService;
398            }
399    
400            /**
401             * Sets the counter local service.
402             *
403             * @param counterLocalService the counter local service
404             */
405            public void setCounterLocalService(
406                    com.liferay.counter.service.CounterLocalService counterLocalService) {
407                    this.counterLocalService = counterLocalService;
408            }
409    
410            /**
411             * Returns the role local service.
412             *
413             * @return the role local service
414             */
415            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
416                    return roleLocalService;
417            }
418    
419            /**
420             * Sets the role local service.
421             *
422             * @param roleLocalService the role local service
423             */
424            public void setRoleLocalService(
425                    com.liferay.portal.service.RoleLocalService roleLocalService) {
426                    this.roleLocalService = roleLocalService;
427            }
428    
429            /**
430             * Returns the role remote service.
431             *
432             * @return the role remote service
433             */
434            public com.liferay.portal.service.RoleService getRoleService() {
435                    return roleService;
436            }
437    
438            /**
439             * Sets the role remote service.
440             *
441             * @param roleService the role remote service
442             */
443            public void setRoleService(
444                    com.liferay.portal.service.RoleService roleService) {
445                    this.roleService = roleService;
446            }
447    
448            /**
449             * Returns the role persistence.
450             *
451             * @return the role persistence
452             */
453            public RolePersistence getRolePersistence() {
454                    return rolePersistence;
455            }
456    
457            /**
458             * Sets the role persistence.
459             *
460             * @param rolePersistence the role persistence
461             */
462            public void setRolePersistence(RolePersistence rolePersistence) {
463                    this.rolePersistence = rolePersistence;
464            }
465    
466            /**
467             * Returns the role finder.
468             *
469             * @return the role finder
470             */
471            public RoleFinder getRoleFinder() {
472                    return roleFinder;
473            }
474    
475            /**
476             * Sets the role finder.
477             *
478             * @param roleFinder the role finder
479             */
480            public void setRoleFinder(RoleFinder roleFinder) {
481                    this.roleFinder = roleFinder;
482            }
483    
484            /**
485             * Returns the user group local service.
486             *
487             * @return the user group local service
488             */
489            public com.liferay.portal.service.UserGroupLocalService getUserGroupLocalService() {
490                    return userGroupLocalService;
491            }
492    
493            /**
494             * Sets the user group local service.
495             *
496             * @param userGroupLocalService the user group local service
497             */
498            public void setUserGroupLocalService(
499                    com.liferay.portal.service.UserGroupLocalService userGroupLocalService) {
500                    this.userGroupLocalService = userGroupLocalService;
501            }
502    
503            /**
504             * Returns the user group remote service.
505             *
506             * @return the user group remote service
507             */
508            public com.liferay.portal.service.UserGroupService getUserGroupService() {
509                    return userGroupService;
510            }
511    
512            /**
513             * Sets the user group remote service.
514             *
515             * @param userGroupService the user group remote service
516             */
517            public void setUserGroupService(
518                    com.liferay.portal.service.UserGroupService userGroupService) {
519                    this.userGroupService = userGroupService;
520            }
521    
522            /**
523             * Returns the user group persistence.
524             *
525             * @return the user group persistence
526             */
527            public UserGroupPersistence getUserGroupPersistence() {
528                    return userGroupPersistence;
529            }
530    
531            /**
532             * Sets the user group persistence.
533             *
534             * @param userGroupPersistence the user group persistence
535             */
536            public void setUserGroupPersistence(
537                    UserGroupPersistence userGroupPersistence) {
538                    this.userGroupPersistence = userGroupPersistence;
539            }
540    
541            /**
542             * Returns the user group finder.
543             *
544             * @return the user group finder
545             */
546            public UserGroupFinder getUserGroupFinder() {
547                    return userGroupFinder;
548            }
549    
550            /**
551             * Sets the user group finder.
552             *
553             * @param userGroupFinder the user group finder
554             */
555            public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
556                    this.userGroupFinder = userGroupFinder;
557            }
558    
559            public void afterPropertiesSet() {
560                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.UserGroupGroupRole",
561                            userGroupGroupRoleLocalService);
562            }
563    
564            public void destroy() {
565                    persistedModelLocalServiceRegistry.unregister(
566                            "com.liferay.portal.model.UserGroupGroupRole");
567            }
568    
569            /**
570             * Returns the OSGi service identifier.
571             *
572             * @return the OSGi service identifier
573             */
574            @Override
575            public String getOSGiServiceIdentifier() {
576                    return UserGroupGroupRoleLocalService.class.getName();
577            }
578    
579            protected Class<?> getModelClass() {
580                    return UserGroupGroupRole.class;
581            }
582    
583            protected String getModelClassName() {
584                    return UserGroupGroupRole.class.getName();
585            }
586    
587            /**
588             * Performs a SQL query.
589             *
590             * @param sql the sql query
591             */
592            protected void runSQL(String sql) {
593                    try {
594                            DataSource dataSource = userGroupGroupRolePersistence.getDataSource();
595    
596                            DB db = DBFactoryUtil.getDB();
597    
598                            sql = db.buildSQL(sql);
599                            sql = PortalUtil.transformSQL(sql);
600    
601                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
602                                            sql, new int[0]);
603    
604                            sqlUpdate.update();
605                    }
606                    catch (Exception e) {
607                            throw new SystemException(e);
608                    }
609            }
610    
611            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleLocalService.class)
612            protected UserGroupGroupRoleLocalService userGroupGroupRoleLocalService;
613            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleService.class)
614            protected com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService;
615            @BeanReference(type = UserGroupGroupRolePersistence.class)
616            protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
617            @BeanReference(type = UserGroupGroupRoleFinder.class)
618            protected UserGroupGroupRoleFinder userGroupGroupRoleFinder;
619            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
620            protected com.liferay.counter.service.CounterLocalService counterLocalService;
621            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
622            protected com.liferay.portal.service.RoleLocalService roleLocalService;
623            @BeanReference(type = com.liferay.portal.service.RoleService.class)
624            protected com.liferay.portal.service.RoleService roleService;
625            @BeanReference(type = RolePersistence.class)
626            protected RolePersistence rolePersistence;
627            @BeanReference(type = RoleFinder.class)
628            protected RoleFinder roleFinder;
629            @BeanReference(type = com.liferay.portal.service.UserGroupLocalService.class)
630            protected com.liferay.portal.service.UserGroupLocalService userGroupLocalService;
631            @BeanReference(type = com.liferay.portal.service.UserGroupService.class)
632            protected com.liferay.portal.service.UserGroupService userGroupService;
633            @BeanReference(type = UserGroupPersistence.class)
634            protected UserGroupPersistence userGroupPersistence;
635            @BeanReference(type = UserGroupFinder.class)
636            protected UserGroupFinder userGroupFinder;
637            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
638            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
639    }