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.ExportActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.model.UserGroup;
038    import com.liferay.portal.service.BaseLocalServiceImpl;
039    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
040    import com.liferay.portal.service.UserGroupLocalService;
041    import com.liferay.portal.service.persistence.GroupFinder;
042    import com.liferay.portal.service.persistence.GroupPersistence;
043    import com.liferay.portal.service.persistence.LayoutFinder;
044    import com.liferay.portal.service.persistence.LayoutPersistence;
045    import com.liferay.portal.service.persistence.TeamFinder;
046    import com.liferay.portal.service.persistence.TeamPersistence;
047    import com.liferay.portal.service.persistence.UserFinder;
048    import com.liferay.portal.service.persistence.UserGroupFinder;
049    import com.liferay.portal.service.persistence.UserGroupGroupRoleFinder;
050    import com.liferay.portal.service.persistence.UserGroupGroupRolePersistence;
051    import com.liferay.portal.service.persistence.UserGroupPersistence;
052    import com.liferay.portal.service.persistence.UserPersistence;
053    import com.liferay.portal.util.PortalUtil;
054    
055    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
056    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
057    import com.liferay.portlet.exportimport.lar.ManifestSummary;
058    import com.liferay.portlet.exportimport.lar.PortletDataContext;
059    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
060    import com.liferay.portlet.exportimport.lar.StagedModelType;
061    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
062    
063    import java.io.Serializable;
064    
065    import java.util.List;
066    
067    import javax.sql.DataSource;
068    
069    /**
070     * Provides the base implementation for the user group local service.
071     *
072     * <p>
073     * 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.UserGroupLocalServiceImpl}.
074     * </p>
075     *
076     * @author Brian Wing Shun Chan
077     * @see com.liferay.portal.service.impl.UserGroupLocalServiceImpl
078     * @see com.liferay.portal.service.UserGroupLocalServiceUtil
079     * @generated
080     */
081    @ProviderType
082    public abstract class UserGroupLocalServiceBaseImpl extends BaseLocalServiceImpl
083            implements UserGroupLocalService, IdentifiableOSGiService {
084            /*
085             * NOTE FOR DEVELOPERS:
086             *
087             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.UserGroupLocalServiceUtil} to access the user group local service.
088             */
089    
090            /**
091             * Adds the user group to the database. Also notifies the appropriate model listeners.
092             *
093             * @param userGroup the user group
094             * @return the user group that was added
095             */
096            @Indexable(type = IndexableType.REINDEX)
097            @Override
098            public UserGroup addUserGroup(UserGroup userGroup) {
099                    userGroup.setNew(true);
100    
101                    return userGroupPersistence.update(userGroup);
102            }
103    
104            /**
105             * Creates a new user group with the primary key. Does not add the user group to the database.
106             *
107             * @param userGroupId the primary key for the new user group
108             * @return the new user group
109             */
110            @Override
111            public UserGroup createUserGroup(long userGroupId) {
112                    return userGroupPersistence.create(userGroupId);
113            }
114    
115            /**
116             * Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners.
117             *
118             * @param userGroupId the primary key of the user group
119             * @return the user group that was removed
120             * @throws PortalException if a user group with the primary key could not be found
121             */
122            @Indexable(type = IndexableType.DELETE)
123            @Override
124            public UserGroup deleteUserGroup(long userGroupId)
125                    throws PortalException {
126                    return userGroupPersistence.remove(userGroupId);
127            }
128    
129            /**
130             * Deletes the user group from the database. Also notifies the appropriate model listeners.
131             *
132             * @param userGroup the user group
133             * @return the user group that was removed
134             * @throws PortalException
135             */
136            @Indexable(type = IndexableType.DELETE)
137            @Override
138            public UserGroup deleteUserGroup(UserGroup userGroup)
139                    throws PortalException {
140                    return userGroupPersistence.remove(userGroup);
141            }
142    
143            @Override
144            public DynamicQuery dynamicQuery() {
145                    Class<?> clazz = getClass();
146    
147                    return DynamicQueryFactoryUtil.forClass(UserGroup.class,
148                            clazz.getClassLoader());
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns the matching rows.
153             *
154             * @param dynamicQuery the dynamic query
155             * @return the matching rows
156             */
157            @Override
158            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
159                    return userGroupPersistence.findWithDynamicQuery(dynamicQuery);
160            }
161    
162            /**
163             * Performs a dynamic query on the database and returns a range of the matching rows.
164             *
165             * <p>
166             * 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.UserGroupModelImpl}. 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.
167             * </p>
168             *
169             * @param dynamicQuery the dynamic query
170             * @param start the lower bound of the range of model instances
171             * @param end the upper bound of the range of model instances (not inclusive)
172             * @return the range of matching rows
173             */
174            @Override
175            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
176                    int end) {
177                    return userGroupPersistence.findWithDynamicQuery(dynamicQuery, start,
178                            end);
179            }
180    
181            /**
182             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
183             *
184             * <p>
185             * 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.UserGroupModelImpl}. 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.
186             * </p>
187             *
188             * @param dynamicQuery the dynamic query
189             * @param start the lower bound of the range of model instances
190             * @param end the upper bound of the range of model instances (not inclusive)
191             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
192             * @return the ordered range of matching rows
193             */
194            @Override
195            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
196                    int end, OrderByComparator<T> orderByComparator) {
197                    return userGroupPersistence.findWithDynamicQuery(dynamicQuery, start,
198                            end, orderByComparator);
199            }
200    
201            /**
202             * Returns the number of rows matching the dynamic query.
203             *
204             * @param dynamicQuery the dynamic query
205             * @return the number of rows matching the dynamic query
206             */
207            @Override
208            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
209                    return userGroupPersistence.countWithDynamicQuery(dynamicQuery);
210            }
211    
212            /**
213             * Returns the number of rows matching the dynamic query.
214             *
215             * @param dynamicQuery the dynamic query
216             * @param projection the projection to apply to the query
217             * @return the number of rows matching the dynamic query
218             */
219            @Override
220            public long dynamicQueryCount(DynamicQuery dynamicQuery,
221                    Projection projection) {
222                    return userGroupPersistence.countWithDynamicQuery(dynamicQuery,
223                            projection);
224            }
225    
226            @Override
227            public UserGroup fetchUserGroup(long userGroupId) {
228                    return userGroupPersistence.fetchByPrimaryKey(userGroupId);
229            }
230    
231            /**
232             * Returns the user group with the matching UUID and company.
233             *
234             * @param uuid the user group's UUID
235             * @param companyId the primary key of the company
236             * @return the matching user group, or <code>null</code> if a matching user group could not be found
237             */
238            @Override
239            public UserGroup fetchUserGroupByUuidAndCompanyId(String uuid,
240                    long companyId) {
241                    return userGroupPersistence.fetchByUuid_C_First(uuid, companyId, null);
242            }
243    
244            /**
245             * Returns the user group with the primary key.
246             *
247             * @param userGroupId the primary key of the user group
248             * @return the user group
249             * @throws PortalException if a user group with the primary key could not be found
250             */
251            @Override
252            public UserGroup getUserGroup(long userGroupId) throws PortalException {
253                    return userGroupPersistence.findByPrimaryKey(userGroupId);
254            }
255    
256            @Override
257            public ActionableDynamicQuery getActionableDynamicQuery() {
258                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
259    
260                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.UserGroupLocalServiceUtil.getService());
261                    actionableDynamicQuery.setClass(UserGroup.class);
262                    actionableDynamicQuery.setClassLoader(getClassLoader());
263    
264                    actionableDynamicQuery.setPrimaryKeyPropertyName("userGroupId");
265    
266                    return actionableDynamicQuery;
267            }
268    
269            protected void initActionableDynamicQuery(
270                    ActionableDynamicQuery actionableDynamicQuery) {
271                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.UserGroupLocalServiceUtil.getService());
272                    actionableDynamicQuery.setClass(UserGroup.class);
273                    actionableDynamicQuery.setClassLoader(getClassLoader());
274    
275                    actionableDynamicQuery.setPrimaryKeyPropertyName("userGroupId");
276            }
277    
278            @Override
279            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
280                    final PortletDataContext portletDataContext) {
281                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
282                                    @Override
283                                    public long performCount() throws PortalException {
284                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
285    
286                                            StagedModelType stagedModelType = getStagedModelType();
287    
288                                            long modelAdditionCount = super.performCount();
289    
290                                            manifestSummary.addModelAdditionCount(stagedModelType,
291                                                    modelAdditionCount);
292    
293                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
294                                                            stagedModelType);
295    
296                                            manifestSummary.addModelDeletionCount(stagedModelType,
297                                                    modelDeletionCount);
298    
299                                            return modelAdditionCount;
300                                    }
301                            };
302    
303                    initActionableDynamicQuery(exportActionableDynamicQuery);
304    
305                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
306                                    @Override
307                                    public void addCriteria(DynamicQuery dynamicQuery) {
308                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
309                                                    "modifiedDate");
310                                    }
311                            });
312    
313                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
314    
315                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<UserGroup>() {
316                                    @Override
317                                    public void performAction(UserGroup userGroup)
318                                            throws PortalException {
319                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
320                                                    userGroup);
321                                    }
322                            });
323                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
324                                    PortalUtil.getClassNameId(UserGroup.class.getName())));
325    
326                    return exportActionableDynamicQuery;
327            }
328    
329            /**
330             * @throws PortalException
331             */
332            @Override
333            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
334                    throws PortalException {
335                    return userGroupLocalService.deleteUserGroup((UserGroup)persistedModel);
336            }
337    
338            @Override
339            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
340                    throws PortalException {
341                    return userGroupPersistence.findByPrimaryKey(primaryKeyObj);
342            }
343    
344            /**
345             * Returns the user group with the matching UUID and company.
346             *
347             * @param uuid the user group's UUID
348             * @param companyId the primary key of the company
349             * @return the matching user group
350             * @throws PortalException if a matching user group could not be found
351             */
352            @Override
353            public UserGroup getUserGroupByUuidAndCompanyId(String uuid, long companyId)
354                    throws PortalException {
355                    return userGroupPersistence.findByUuid_C_First(uuid, companyId, null);
356            }
357    
358            /**
359             * Returns a range of all the user groups.
360             *
361             * <p>
362             * 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.UserGroupModelImpl}. 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.
363             * </p>
364             *
365             * @param start the lower bound of the range of user groups
366             * @param end the upper bound of the range of user groups (not inclusive)
367             * @return the range of user groups
368             */
369            @Override
370            public List<UserGroup> getUserGroups(int start, int end) {
371                    return userGroupPersistence.findAll(start, end);
372            }
373    
374            /**
375             * Returns the number of user groups.
376             *
377             * @return the number of user groups
378             */
379            @Override
380            public int getUserGroupsCount() {
381                    return userGroupPersistence.countAll();
382            }
383    
384            /**
385             * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
386             *
387             * @param userGroup the user group
388             * @return the user group that was updated
389             */
390            @Indexable(type = IndexableType.REINDEX)
391            @Override
392            public UserGroup updateUserGroup(UserGroup userGroup) {
393                    return userGroupPersistence.update(userGroup);
394            }
395    
396            /**
397             */
398            @Override
399            public void addGroupUserGroup(long groupId, long userGroupId) {
400                    groupPersistence.addUserGroup(groupId, userGroupId);
401            }
402    
403            /**
404             */
405            @Override
406            public void addGroupUserGroup(long groupId, UserGroup userGroup) {
407                    groupPersistence.addUserGroup(groupId, userGroup);
408            }
409    
410            /**
411             */
412            @Override
413            public void addGroupUserGroups(long groupId, long[] userGroupIds) {
414                    groupPersistence.addUserGroups(groupId, userGroupIds);
415            }
416    
417            /**
418             */
419            @Override
420            public void addGroupUserGroups(long groupId, List<UserGroup> UserGroups) {
421                    groupPersistence.addUserGroups(groupId, UserGroups);
422            }
423    
424            /**
425             */
426            @Override
427            public void clearGroupUserGroups(long groupId) {
428                    groupPersistence.clearUserGroups(groupId);
429            }
430    
431            /**
432             */
433            @Override
434            public void deleteGroupUserGroup(long groupId, long userGroupId) {
435                    groupPersistence.removeUserGroup(groupId, userGroupId);
436            }
437    
438            /**
439             */
440            @Override
441            public void deleteGroupUserGroup(long groupId, UserGroup userGroup) {
442                    groupPersistence.removeUserGroup(groupId, userGroup);
443            }
444    
445            /**
446             */
447            @Override
448            public void deleteGroupUserGroups(long groupId, long[] userGroupIds) {
449                    groupPersistence.removeUserGroups(groupId, userGroupIds);
450            }
451    
452            /**
453             */
454            @Override
455            public void deleteGroupUserGroups(long groupId, List<UserGroup> UserGroups) {
456                    groupPersistence.removeUserGroups(groupId, UserGroups);
457            }
458    
459            /**
460             * Returns the groupIds of the groups associated with the user group.
461             *
462             * @param userGroupId the userGroupId of the user group
463             * @return long[] the groupIds of groups associated with the user group
464             */
465            @Override
466            public long[] getGroupPrimaryKeys(long userGroupId) {
467                    return userGroupPersistence.getGroupPrimaryKeys(userGroupId);
468            }
469    
470            /**
471             */
472            @Override
473            public List<UserGroup> getGroupUserGroups(long groupId) {
474                    return groupPersistence.getUserGroups(groupId);
475            }
476    
477            /**
478             */
479            @Override
480            public List<UserGroup> getGroupUserGroups(long groupId, int start, int end) {
481                    return groupPersistence.getUserGroups(groupId, start, end);
482            }
483    
484            /**
485             */
486            @Override
487            public List<UserGroup> getGroupUserGroups(long groupId, int start, int end,
488                    OrderByComparator<UserGroup> orderByComparator) {
489                    return groupPersistence.getUserGroups(groupId, start, end,
490                            orderByComparator);
491            }
492    
493            /**
494             */
495            @Override
496            public int getGroupUserGroupsCount(long groupId) {
497                    return groupPersistence.getUserGroupsSize(groupId);
498            }
499    
500            /**
501             */
502            @Override
503            public boolean hasGroupUserGroup(long groupId, long userGroupId) {
504                    return groupPersistence.containsUserGroup(groupId, userGroupId);
505            }
506    
507            /**
508             */
509            @Override
510            public boolean hasGroupUserGroups(long groupId) {
511                    return groupPersistence.containsUserGroups(groupId);
512            }
513    
514            /**
515             */
516            @Override
517            public void setGroupUserGroups(long groupId, long[] userGroupIds) {
518                    groupPersistence.setUserGroups(groupId, userGroupIds);
519            }
520    
521            /**
522             */
523            @Override
524            public void addTeamUserGroup(long teamId, long userGroupId) {
525                    teamPersistence.addUserGroup(teamId, userGroupId);
526            }
527    
528            /**
529             */
530            @Override
531            public void addTeamUserGroup(long teamId, UserGroup userGroup) {
532                    teamPersistence.addUserGroup(teamId, userGroup);
533            }
534    
535            /**
536             */
537            @Override
538            public void addTeamUserGroups(long teamId, long[] userGroupIds) {
539                    teamPersistence.addUserGroups(teamId, userGroupIds);
540            }
541    
542            /**
543             */
544            @Override
545            public void addTeamUserGroups(long teamId, List<UserGroup> UserGroups) {
546                    teamPersistence.addUserGroups(teamId, UserGroups);
547            }
548    
549            /**
550             */
551            @Override
552            public void clearTeamUserGroups(long teamId) {
553                    teamPersistence.clearUserGroups(teamId);
554            }
555    
556            /**
557             */
558            @Override
559            public void deleteTeamUserGroup(long teamId, long userGroupId) {
560                    teamPersistence.removeUserGroup(teamId, userGroupId);
561            }
562    
563            /**
564             */
565            @Override
566            public void deleteTeamUserGroup(long teamId, UserGroup userGroup) {
567                    teamPersistence.removeUserGroup(teamId, userGroup);
568            }
569    
570            /**
571             */
572            @Override
573            public void deleteTeamUserGroups(long teamId, long[] userGroupIds) {
574                    teamPersistence.removeUserGroups(teamId, userGroupIds);
575            }
576    
577            /**
578             */
579            @Override
580            public void deleteTeamUserGroups(long teamId, List<UserGroup> UserGroups) {
581                    teamPersistence.removeUserGroups(teamId, UserGroups);
582            }
583    
584            /**
585             * Returns the teamIds of the teams associated with the user group.
586             *
587             * @param userGroupId the userGroupId of the user group
588             * @return long[] the teamIds of teams associated with the user group
589             */
590            @Override
591            public long[] getTeamPrimaryKeys(long userGroupId) {
592                    return userGroupPersistence.getTeamPrimaryKeys(userGroupId);
593            }
594    
595            /**
596             */
597            @Override
598            public List<UserGroup> getTeamUserGroups(long teamId) {
599                    return teamPersistence.getUserGroups(teamId);
600            }
601    
602            /**
603             */
604            @Override
605            public List<UserGroup> getTeamUserGroups(long teamId, int start, int end) {
606                    return teamPersistence.getUserGroups(teamId, start, end);
607            }
608    
609            /**
610             */
611            @Override
612            public List<UserGroup> getTeamUserGroups(long teamId, int start, int end,
613                    OrderByComparator<UserGroup> orderByComparator) {
614                    return teamPersistence.getUserGroups(teamId, start, end,
615                            orderByComparator);
616            }
617    
618            /**
619             */
620            @Override
621            public int getTeamUserGroupsCount(long teamId) {
622                    return teamPersistence.getUserGroupsSize(teamId);
623            }
624    
625            /**
626             */
627            @Override
628            public boolean hasTeamUserGroup(long teamId, long userGroupId) {
629                    return teamPersistence.containsUserGroup(teamId, userGroupId);
630            }
631    
632            /**
633             */
634            @Override
635            public boolean hasTeamUserGroups(long teamId) {
636                    return teamPersistence.containsUserGroups(teamId);
637            }
638    
639            /**
640             */
641            @Override
642            public void setTeamUserGroups(long teamId, long[] userGroupIds) {
643                    teamPersistence.setUserGroups(teamId, userGroupIds);
644            }
645    
646            /**
647             */
648            @Override
649            public void addUserUserGroup(long userId, long userGroupId) {
650                    userPersistence.addUserGroup(userId, userGroupId);
651            }
652    
653            /**
654             */
655            @Override
656            public void addUserUserGroup(long userId, UserGroup userGroup) {
657                    userPersistence.addUserGroup(userId, userGroup);
658            }
659    
660            /**
661             */
662            @Override
663            public void addUserUserGroups(long userId, long[] userGroupIds) {
664                    userPersistence.addUserGroups(userId, userGroupIds);
665            }
666    
667            /**
668             */
669            @Override
670            public void addUserUserGroups(long userId, List<UserGroup> UserGroups) {
671                    userPersistence.addUserGroups(userId, UserGroups);
672            }
673    
674            /**
675             */
676            @Override
677            public void clearUserUserGroups(long userId) {
678                    userPersistence.clearUserGroups(userId);
679            }
680    
681            /**
682             */
683            @Override
684            public void deleteUserUserGroup(long userId, long userGroupId) {
685                    userPersistence.removeUserGroup(userId, userGroupId);
686            }
687    
688            /**
689             */
690            @Override
691            public void deleteUserUserGroup(long userId, UserGroup userGroup) {
692                    userPersistence.removeUserGroup(userId, userGroup);
693            }
694    
695            /**
696             */
697            @Override
698            public void deleteUserUserGroups(long userId, long[] userGroupIds) {
699                    userPersistence.removeUserGroups(userId, userGroupIds);
700            }
701    
702            /**
703             */
704            @Override
705            public void deleteUserUserGroups(long userId, List<UserGroup> UserGroups) {
706                    userPersistence.removeUserGroups(userId, UserGroups);
707            }
708    
709            /**
710             * Returns the userIds of the users associated with the user group.
711             *
712             * @param userGroupId the userGroupId of the user group
713             * @return long[] the userIds of users associated with the user group
714             */
715            @Override
716            public long[] getUserPrimaryKeys(long userGroupId) {
717                    return userGroupPersistence.getUserPrimaryKeys(userGroupId);
718            }
719    
720            /**
721             */
722            @Override
723            public List<UserGroup> getUserUserGroups(long userId) {
724                    return userPersistence.getUserGroups(userId);
725            }
726    
727            /**
728             */
729            @Override
730            public List<UserGroup> getUserUserGroups(long userId, int start, int end) {
731                    return userPersistence.getUserGroups(userId, start, end);
732            }
733    
734            /**
735             */
736            @Override
737            public List<UserGroup> getUserUserGroups(long userId, int start, int end,
738                    OrderByComparator<UserGroup> orderByComparator) {
739                    return userPersistence.getUserGroups(userId, start, end,
740                            orderByComparator);
741            }
742    
743            /**
744             */
745            @Override
746            public int getUserUserGroupsCount(long userId) {
747                    return userPersistence.getUserGroupsSize(userId);
748            }
749    
750            /**
751             */
752            @Override
753            public boolean hasUserUserGroup(long userId, long userGroupId) {
754                    return userPersistence.containsUserGroup(userId, userGroupId);
755            }
756    
757            /**
758             */
759            @Override
760            public boolean hasUserUserGroups(long userId) {
761                    return userPersistence.containsUserGroups(userId);
762            }
763    
764            /**
765             * @throws PortalException
766             */
767            @Override
768            public void setUserUserGroups(long userId, long[] userGroupIds)
769                    throws PortalException {
770                    userPersistence.setUserGroups(userId, userGroupIds);
771            }
772    
773            /**
774             * Returns the user group local service.
775             *
776             * @return the user group local service
777             */
778            public UserGroupLocalService getUserGroupLocalService() {
779                    return userGroupLocalService;
780            }
781    
782            /**
783             * Sets the user group local service.
784             *
785             * @param userGroupLocalService the user group local service
786             */
787            public void setUserGroupLocalService(
788                    UserGroupLocalService userGroupLocalService) {
789                    this.userGroupLocalService = userGroupLocalService;
790            }
791    
792            /**
793             * Returns the user group remote service.
794             *
795             * @return the user group remote service
796             */
797            public com.liferay.portal.service.UserGroupService getUserGroupService() {
798                    return userGroupService;
799            }
800    
801            /**
802             * Sets the user group remote service.
803             *
804             * @param userGroupService the user group remote service
805             */
806            public void setUserGroupService(
807                    com.liferay.portal.service.UserGroupService userGroupService) {
808                    this.userGroupService = userGroupService;
809            }
810    
811            /**
812             * Returns the user group persistence.
813             *
814             * @return the user group persistence
815             */
816            public UserGroupPersistence getUserGroupPersistence() {
817                    return userGroupPersistence;
818            }
819    
820            /**
821             * Sets the user group persistence.
822             *
823             * @param userGroupPersistence the user group persistence
824             */
825            public void setUserGroupPersistence(
826                    UserGroupPersistence userGroupPersistence) {
827                    this.userGroupPersistence = userGroupPersistence;
828            }
829    
830            /**
831             * Returns the user group finder.
832             *
833             * @return the user group finder
834             */
835            public UserGroupFinder getUserGroupFinder() {
836                    return userGroupFinder;
837            }
838    
839            /**
840             * Sets the user group finder.
841             *
842             * @param userGroupFinder the user group finder
843             */
844            public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
845                    this.userGroupFinder = userGroupFinder;
846            }
847    
848            /**
849             * Returns the counter local service.
850             *
851             * @return the counter local service
852             */
853            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
854                    return counterLocalService;
855            }
856    
857            /**
858             * Sets the counter local service.
859             *
860             * @param counterLocalService the counter local service
861             */
862            public void setCounterLocalService(
863                    com.liferay.counter.service.CounterLocalService counterLocalService) {
864                    this.counterLocalService = counterLocalService;
865            }
866    
867            /**
868             * Returns the group local service.
869             *
870             * @return the group local service
871             */
872            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
873                    return groupLocalService;
874            }
875    
876            /**
877             * Sets the group local service.
878             *
879             * @param groupLocalService the group local service
880             */
881            public void setGroupLocalService(
882                    com.liferay.portal.service.GroupLocalService groupLocalService) {
883                    this.groupLocalService = groupLocalService;
884            }
885    
886            /**
887             * Returns the group remote service.
888             *
889             * @return the group remote service
890             */
891            public com.liferay.portal.service.GroupService getGroupService() {
892                    return groupService;
893            }
894    
895            /**
896             * Sets the group remote service.
897             *
898             * @param groupService the group remote service
899             */
900            public void setGroupService(
901                    com.liferay.portal.service.GroupService groupService) {
902                    this.groupService = groupService;
903            }
904    
905            /**
906             * Returns the group persistence.
907             *
908             * @return the group persistence
909             */
910            public GroupPersistence getGroupPersistence() {
911                    return groupPersistence;
912            }
913    
914            /**
915             * Sets the group persistence.
916             *
917             * @param groupPersistence the group persistence
918             */
919            public void setGroupPersistence(GroupPersistence groupPersistence) {
920                    this.groupPersistence = groupPersistence;
921            }
922    
923            /**
924             * Returns the group finder.
925             *
926             * @return the group finder
927             */
928            public GroupFinder getGroupFinder() {
929                    return groupFinder;
930            }
931    
932            /**
933             * Sets the group finder.
934             *
935             * @param groupFinder the group finder
936             */
937            public void setGroupFinder(GroupFinder groupFinder) {
938                    this.groupFinder = groupFinder;
939            }
940    
941            /**
942             * Returns the layout local service.
943             *
944             * @return the layout local service
945             */
946            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
947                    return layoutLocalService;
948            }
949    
950            /**
951             * Sets the layout local service.
952             *
953             * @param layoutLocalService the layout local service
954             */
955            public void setLayoutLocalService(
956                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
957                    this.layoutLocalService = layoutLocalService;
958            }
959    
960            /**
961             * Returns the layout remote service.
962             *
963             * @return the layout remote service
964             */
965            public com.liferay.portal.service.LayoutService getLayoutService() {
966                    return layoutService;
967            }
968    
969            /**
970             * Sets the layout remote service.
971             *
972             * @param layoutService the layout remote service
973             */
974            public void setLayoutService(
975                    com.liferay.portal.service.LayoutService layoutService) {
976                    this.layoutService = layoutService;
977            }
978    
979            /**
980             * Returns the layout persistence.
981             *
982             * @return the layout persistence
983             */
984            public LayoutPersistence getLayoutPersistence() {
985                    return layoutPersistence;
986            }
987    
988            /**
989             * Sets the layout persistence.
990             *
991             * @param layoutPersistence the layout persistence
992             */
993            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
994                    this.layoutPersistence = layoutPersistence;
995            }
996    
997            /**
998             * Returns the layout finder.
999             *
1000             * @return the layout finder
1001             */
1002            public LayoutFinder getLayoutFinder() {
1003                    return layoutFinder;
1004            }
1005    
1006            /**
1007             * Sets the layout finder.
1008             *
1009             * @param layoutFinder the layout finder
1010             */
1011            public void setLayoutFinder(LayoutFinder layoutFinder) {
1012                    this.layoutFinder = layoutFinder;
1013            }
1014    
1015            /**
1016             * Returns the resource local service.
1017             *
1018             * @return the resource local service
1019             */
1020            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1021                    return resourceLocalService;
1022            }
1023    
1024            /**
1025             * Sets the resource local service.
1026             *
1027             * @param resourceLocalService the resource local service
1028             */
1029            public void setResourceLocalService(
1030                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1031                    this.resourceLocalService = resourceLocalService;
1032            }
1033    
1034            /**
1035             * Returns the team local service.
1036             *
1037             * @return the team local service
1038             */
1039            public com.liferay.portal.service.TeamLocalService getTeamLocalService() {
1040                    return teamLocalService;
1041            }
1042    
1043            /**
1044             * Sets the team local service.
1045             *
1046             * @param teamLocalService the team local service
1047             */
1048            public void setTeamLocalService(
1049                    com.liferay.portal.service.TeamLocalService teamLocalService) {
1050                    this.teamLocalService = teamLocalService;
1051            }
1052    
1053            /**
1054             * Returns the team remote service.
1055             *
1056             * @return the team remote service
1057             */
1058            public com.liferay.portal.service.TeamService getTeamService() {
1059                    return teamService;
1060            }
1061    
1062            /**
1063             * Sets the team remote service.
1064             *
1065             * @param teamService the team remote service
1066             */
1067            public void setTeamService(
1068                    com.liferay.portal.service.TeamService teamService) {
1069                    this.teamService = teamService;
1070            }
1071    
1072            /**
1073             * Returns the team persistence.
1074             *
1075             * @return the team persistence
1076             */
1077            public TeamPersistence getTeamPersistence() {
1078                    return teamPersistence;
1079            }
1080    
1081            /**
1082             * Sets the team persistence.
1083             *
1084             * @param teamPersistence the team persistence
1085             */
1086            public void setTeamPersistence(TeamPersistence teamPersistence) {
1087                    this.teamPersistence = teamPersistence;
1088            }
1089    
1090            /**
1091             * Returns the team finder.
1092             *
1093             * @return the team finder
1094             */
1095            public TeamFinder getTeamFinder() {
1096                    return teamFinder;
1097            }
1098    
1099            /**
1100             * Sets the team finder.
1101             *
1102             * @param teamFinder the team finder
1103             */
1104            public void setTeamFinder(TeamFinder teamFinder) {
1105                    this.teamFinder = teamFinder;
1106            }
1107    
1108            /**
1109             * Returns the user local service.
1110             *
1111             * @return the user local service
1112             */
1113            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1114                    return userLocalService;
1115            }
1116    
1117            /**
1118             * Sets the user local service.
1119             *
1120             * @param userLocalService the user local service
1121             */
1122            public void setUserLocalService(
1123                    com.liferay.portal.service.UserLocalService userLocalService) {
1124                    this.userLocalService = userLocalService;
1125            }
1126    
1127            /**
1128             * Returns the user remote service.
1129             *
1130             * @return the user remote service
1131             */
1132            public com.liferay.portal.service.UserService getUserService() {
1133                    return userService;
1134            }
1135    
1136            /**
1137             * Sets the user remote service.
1138             *
1139             * @param userService the user remote service
1140             */
1141            public void setUserService(
1142                    com.liferay.portal.service.UserService userService) {
1143                    this.userService = userService;
1144            }
1145    
1146            /**
1147             * Returns the user persistence.
1148             *
1149             * @return the user persistence
1150             */
1151            public UserPersistence getUserPersistence() {
1152                    return userPersistence;
1153            }
1154    
1155            /**
1156             * Sets the user persistence.
1157             *
1158             * @param userPersistence the user persistence
1159             */
1160            public void setUserPersistence(UserPersistence userPersistence) {
1161                    this.userPersistence = userPersistence;
1162            }
1163    
1164            /**
1165             * Returns the user finder.
1166             *
1167             * @return the user finder
1168             */
1169            public UserFinder getUserFinder() {
1170                    return userFinder;
1171            }
1172    
1173            /**
1174             * Sets the user finder.
1175             *
1176             * @param userFinder the user finder
1177             */
1178            public void setUserFinder(UserFinder userFinder) {
1179                    this.userFinder = userFinder;
1180            }
1181    
1182            /**
1183             * Returns the expando row local service.
1184             *
1185             * @return the expando row local service
1186             */
1187            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1188                    return expandoRowLocalService;
1189            }
1190    
1191            /**
1192             * Sets the expando row local service.
1193             *
1194             * @param expandoRowLocalService the expando row local service
1195             */
1196            public void setExpandoRowLocalService(
1197                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1198                    this.expandoRowLocalService = expandoRowLocalService;
1199            }
1200    
1201            /**
1202             * Returns the expando row persistence.
1203             *
1204             * @return the expando row persistence
1205             */
1206            public ExpandoRowPersistence getExpandoRowPersistence() {
1207                    return expandoRowPersistence;
1208            }
1209    
1210            /**
1211             * Sets the expando row persistence.
1212             *
1213             * @param expandoRowPersistence the expando row persistence
1214             */
1215            public void setExpandoRowPersistence(
1216                    ExpandoRowPersistence expandoRowPersistence) {
1217                    this.expandoRowPersistence = expandoRowPersistence;
1218            }
1219    
1220            /**
1221             * Returns the export import local service.
1222             *
1223             * @return the export import local service
1224             */
1225            public com.liferay.portlet.exportimport.service.ExportImportLocalService getExportImportLocalService() {
1226                    return exportImportLocalService;
1227            }
1228    
1229            /**
1230             * Sets the export import local service.
1231             *
1232             * @param exportImportLocalService the export import local service
1233             */
1234            public void setExportImportLocalService(
1235                    com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService) {
1236                    this.exportImportLocalService = exportImportLocalService;
1237            }
1238    
1239            /**
1240             * Returns the export import remote service.
1241             *
1242             * @return the export import remote service
1243             */
1244            public com.liferay.portlet.exportimport.service.ExportImportService getExportImportService() {
1245                    return exportImportService;
1246            }
1247    
1248            /**
1249             * Sets the export import remote service.
1250             *
1251             * @param exportImportService the export import remote service
1252             */
1253            public void setExportImportService(
1254                    com.liferay.portlet.exportimport.service.ExportImportService exportImportService) {
1255                    this.exportImportService = exportImportService;
1256            }
1257    
1258            /**
1259             * Returns the export import configuration local service.
1260             *
1261             * @return the export import configuration local service
1262             */
1263            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
1264                    return exportImportConfigurationLocalService;
1265            }
1266    
1267            /**
1268             * Sets the export import configuration local service.
1269             *
1270             * @param exportImportConfigurationLocalService the export import configuration local service
1271             */
1272            public void setExportImportConfigurationLocalService(
1273                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
1274                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
1275            }
1276    
1277            /**
1278             * Returns the export import configuration remote service.
1279             *
1280             * @return the export import configuration remote service
1281             */
1282            public com.liferay.portlet.exportimport.service.ExportImportConfigurationService getExportImportConfigurationService() {
1283                    return exportImportConfigurationService;
1284            }
1285    
1286            /**
1287             * Sets the export import configuration remote service.
1288             *
1289             * @param exportImportConfigurationService the export import configuration remote service
1290             */
1291            public void setExportImportConfigurationService(
1292                    com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService) {
1293                    this.exportImportConfigurationService = exportImportConfigurationService;
1294            }
1295    
1296            /**
1297             * Returns the export import configuration persistence.
1298             *
1299             * @return the export import configuration persistence
1300             */
1301            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
1302                    return exportImportConfigurationPersistence;
1303            }
1304    
1305            /**
1306             * Sets the export import configuration persistence.
1307             *
1308             * @param exportImportConfigurationPersistence the export import configuration persistence
1309             */
1310            public void setExportImportConfigurationPersistence(
1311                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
1312                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
1313            }
1314    
1315            /**
1316             * Returns the user group group role local service.
1317             *
1318             * @return the user group group role local service
1319             */
1320            public com.liferay.portal.service.UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService() {
1321                    return userGroupGroupRoleLocalService;
1322            }
1323    
1324            /**
1325             * Sets the user group group role local service.
1326             *
1327             * @param userGroupGroupRoleLocalService the user group group role local service
1328             */
1329            public void setUserGroupGroupRoleLocalService(
1330                    com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
1331                    this.userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
1332            }
1333    
1334            /**
1335             * Returns the user group group role remote service.
1336             *
1337             * @return the user group group role remote service
1338             */
1339            public com.liferay.portal.service.UserGroupGroupRoleService getUserGroupGroupRoleService() {
1340                    return userGroupGroupRoleService;
1341            }
1342    
1343            /**
1344             * Sets the user group group role remote service.
1345             *
1346             * @param userGroupGroupRoleService the user group group role remote service
1347             */
1348            public void setUserGroupGroupRoleService(
1349                    com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService) {
1350                    this.userGroupGroupRoleService = userGroupGroupRoleService;
1351            }
1352    
1353            /**
1354             * Returns the user group group role persistence.
1355             *
1356             * @return the user group group role persistence
1357             */
1358            public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence() {
1359                    return userGroupGroupRolePersistence;
1360            }
1361    
1362            /**
1363             * Sets the user group group role persistence.
1364             *
1365             * @param userGroupGroupRolePersistence the user group group role persistence
1366             */
1367            public void setUserGroupGroupRolePersistence(
1368                    UserGroupGroupRolePersistence userGroupGroupRolePersistence) {
1369                    this.userGroupGroupRolePersistence = userGroupGroupRolePersistence;
1370            }
1371    
1372            /**
1373             * Returns the user group group role finder.
1374             *
1375             * @return the user group group role finder
1376             */
1377            public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder() {
1378                    return userGroupGroupRoleFinder;
1379            }
1380    
1381            /**
1382             * Sets the user group group role finder.
1383             *
1384             * @param userGroupGroupRoleFinder the user group group role finder
1385             */
1386            public void setUserGroupGroupRoleFinder(
1387                    UserGroupGroupRoleFinder userGroupGroupRoleFinder) {
1388                    this.userGroupGroupRoleFinder = userGroupGroupRoleFinder;
1389            }
1390    
1391            public void afterPropertiesSet() {
1392                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.UserGroup",
1393                            userGroupLocalService);
1394            }
1395    
1396            public void destroy() {
1397                    persistedModelLocalServiceRegistry.unregister(
1398                            "com.liferay.portal.model.UserGroup");
1399            }
1400    
1401            /**
1402             * Returns the OSGi service identifier.
1403             *
1404             * @return the OSGi service identifier
1405             */
1406            @Override
1407            public String getOSGiServiceIdentifier() {
1408                    return UserGroupLocalService.class.getName();
1409            }
1410    
1411            protected Class<?> getModelClass() {
1412                    return UserGroup.class;
1413            }
1414    
1415            protected String getModelClassName() {
1416                    return UserGroup.class.getName();
1417            }
1418    
1419            /**
1420             * Performs a SQL query.
1421             *
1422             * @param sql the sql query
1423             */
1424            protected void runSQL(String sql) {
1425                    try {
1426                            DataSource dataSource = userGroupPersistence.getDataSource();
1427    
1428                            DB db = DBFactoryUtil.getDB();
1429    
1430                            sql = db.buildSQL(sql);
1431                            sql = PortalUtil.transformSQL(sql);
1432    
1433                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1434                                            sql, new int[0]);
1435    
1436                            sqlUpdate.update();
1437                    }
1438                    catch (Exception e) {
1439                            throw new SystemException(e);
1440                    }
1441            }
1442    
1443            @BeanReference(type = com.liferay.portal.service.UserGroupLocalService.class)
1444            protected UserGroupLocalService userGroupLocalService;
1445            @BeanReference(type = com.liferay.portal.service.UserGroupService.class)
1446            protected com.liferay.portal.service.UserGroupService userGroupService;
1447            @BeanReference(type = UserGroupPersistence.class)
1448            protected UserGroupPersistence userGroupPersistence;
1449            @BeanReference(type = UserGroupFinder.class)
1450            protected UserGroupFinder userGroupFinder;
1451            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1452            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1453            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1454            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1455            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1456            protected com.liferay.portal.service.GroupService groupService;
1457            @BeanReference(type = GroupPersistence.class)
1458            protected GroupPersistence groupPersistence;
1459            @BeanReference(type = GroupFinder.class)
1460            protected GroupFinder groupFinder;
1461            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1462            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1463            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1464            protected com.liferay.portal.service.LayoutService layoutService;
1465            @BeanReference(type = LayoutPersistence.class)
1466            protected LayoutPersistence layoutPersistence;
1467            @BeanReference(type = LayoutFinder.class)
1468            protected LayoutFinder layoutFinder;
1469            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1470            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1471            @BeanReference(type = com.liferay.portal.service.TeamLocalService.class)
1472            protected com.liferay.portal.service.TeamLocalService teamLocalService;
1473            @BeanReference(type = com.liferay.portal.service.TeamService.class)
1474            protected com.liferay.portal.service.TeamService teamService;
1475            @BeanReference(type = TeamPersistence.class)
1476            protected TeamPersistence teamPersistence;
1477            @BeanReference(type = TeamFinder.class)
1478            protected TeamFinder teamFinder;
1479            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1480            protected com.liferay.portal.service.UserLocalService userLocalService;
1481            @BeanReference(type = com.liferay.portal.service.UserService.class)
1482            protected com.liferay.portal.service.UserService userService;
1483            @BeanReference(type = UserPersistence.class)
1484            protected UserPersistence userPersistence;
1485            @BeanReference(type = UserFinder.class)
1486            protected UserFinder userFinder;
1487            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1488            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1489            @BeanReference(type = ExpandoRowPersistence.class)
1490            protected ExpandoRowPersistence expandoRowPersistence;
1491            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
1492            protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
1493            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportService.class)
1494            protected com.liferay.portlet.exportimport.service.ExportImportService exportImportService;
1495            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
1496            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
1497            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
1498            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
1499            @BeanReference(type = ExportImportConfigurationPersistence.class)
1500            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
1501            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleLocalService.class)
1502            protected com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService;
1503            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleService.class)
1504            protected com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService;
1505            @BeanReference(type = UserGroupGroupRolePersistence.class)
1506            protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
1507            @BeanReference(type = UserGroupGroupRoleFinder.class)
1508            protected UserGroupGroupRoleFinder userGroupGroupRoleFinder;
1509            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1510            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1511    }