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.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.Projection;
031    import com.liferay.portal.kernel.exception.PortalException;
032    import com.liferay.portal.kernel.exception.SystemException;
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, IdentifiableBean {
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.toString(),
291                                                    modelAdditionCount);
292    
293                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
294                                                            stagedModelType);
295    
296                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
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() {
316                                    @Override
317                                    public void performAction(Object object)
318                                            throws PortalException {
319                                            UserGroup stagedModel = (UserGroup)object;
320    
321                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
322                                                    stagedModel);
323                                    }
324                            });
325                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
326                                    PortalUtil.getClassNameId(UserGroup.class.getName())));
327    
328                    return exportActionableDynamicQuery;
329            }
330    
331            /**
332             * @throws PortalException
333             */
334            @Override
335            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
336                    throws PortalException {
337                    return userGroupLocalService.deleteUserGroup((UserGroup)persistedModel);
338            }
339    
340            @Override
341            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
342                    throws PortalException {
343                    return userGroupPersistence.findByPrimaryKey(primaryKeyObj);
344            }
345    
346            /**
347             * Returns the user group with the matching UUID and company.
348             *
349             * @param uuid the user group's UUID
350             * @param companyId the primary key of the company
351             * @return the matching user group
352             * @throws PortalException if a matching user group could not be found
353             */
354            @Override
355            public UserGroup getUserGroupByUuidAndCompanyId(String uuid, long companyId)
356                    throws PortalException {
357                    return userGroupPersistence.findByUuid_C_First(uuid, companyId, null);
358            }
359    
360            /**
361             * Returns a range of all the user groups.
362             *
363             * <p>
364             * 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.
365             * </p>
366             *
367             * @param start the lower bound of the range of user groups
368             * @param end the upper bound of the range of user groups (not inclusive)
369             * @return the range of user groups
370             */
371            @Override
372            public List<UserGroup> getUserGroups(int start, int end) {
373                    return userGroupPersistence.findAll(start, end);
374            }
375    
376            /**
377             * Returns the number of user groups.
378             *
379             * @return the number of user groups
380             */
381            @Override
382            public int getUserGroupsCount() {
383                    return userGroupPersistence.countAll();
384            }
385    
386            /**
387             * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
388             *
389             * @param userGroup the user group
390             * @return the user group that was updated
391             */
392            @Indexable(type = IndexableType.REINDEX)
393            @Override
394            public UserGroup updateUserGroup(UserGroup userGroup) {
395                    return userGroupPersistence.update(userGroup);
396            }
397    
398            /**
399             */
400            @Override
401            public void addGroupUserGroup(long groupId, long userGroupId) {
402                    groupPersistence.addUserGroup(groupId, userGroupId);
403            }
404    
405            /**
406             */
407            @Override
408            public void addGroupUserGroup(long groupId, UserGroup userGroup) {
409                    groupPersistence.addUserGroup(groupId, userGroup);
410            }
411    
412            /**
413             */
414            @Override
415            public void addGroupUserGroups(long groupId, long[] userGroupIds) {
416                    groupPersistence.addUserGroups(groupId, userGroupIds);
417            }
418    
419            /**
420             */
421            @Override
422            public void addGroupUserGroups(long groupId, List<UserGroup> UserGroups) {
423                    groupPersistence.addUserGroups(groupId, UserGroups);
424            }
425    
426            /**
427             */
428            @Override
429            public void clearGroupUserGroups(long groupId) {
430                    groupPersistence.clearUserGroups(groupId);
431            }
432    
433            /**
434             */
435            @Override
436            public void deleteGroupUserGroup(long groupId, long userGroupId) {
437                    groupPersistence.removeUserGroup(groupId, userGroupId);
438            }
439    
440            /**
441             */
442            @Override
443            public void deleteGroupUserGroup(long groupId, UserGroup userGroup) {
444                    groupPersistence.removeUserGroup(groupId, userGroup);
445            }
446    
447            /**
448             */
449            @Override
450            public void deleteGroupUserGroups(long groupId, long[] userGroupIds) {
451                    groupPersistence.removeUserGroups(groupId, userGroupIds);
452            }
453    
454            /**
455             */
456            @Override
457            public void deleteGroupUserGroups(long groupId, List<UserGroup> UserGroups) {
458                    groupPersistence.removeUserGroups(groupId, UserGroups);
459            }
460    
461            /**
462             * Returns the groupIds of the groups associated with the user group.
463             *
464             * @param userGroupId the userGroupId of the user group
465             * @return long[] the groupIds of groups associated with the user group
466             */
467            @Override
468            public long[] getGroupPrimaryKeys(long userGroupId) {
469                    return userGroupPersistence.getGroupPrimaryKeys(userGroupId);
470            }
471    
472            /**
473             */
474            @Override
475            public List<UserGroup> getGroupUserGroups(long groupId) {
476                    return groupPersistence.getUserGroups(groupId);
477            }
478    
479            /**
480             */
481            @Override
482            public List<UserGroup> getGroupUserGroups(long groupId, int start, int end) {
483                    return groupPersistence.getUserGroups(groupId, start, end);
484            }
485    
486            /**
487             */
488            @Override
489            public List<UserGroup> getGroupUserGroups(long groupId, int start, int end,
490                    OrderByComparator<UserGroup> orderByComparator) {
491                    return groupPersistence.getUserGroups(groupId, start, end,
492                            orderByComparator);
493            }
494    
495            /**
496             */
497            @Override
498            public int getGroupUserGroupsCount(long groupId) {
499                    return groupPersistence.getUserGroupsSize(groupId);
500            }
501    
502            /**
503             */
504            @Override
505            public boolean hasGroupUserGroup(long groupId, long userGroupId) {
506                    return groupPersistence.containsUserGroup(groupId, userGroupId);
507            }
508    
509            /**
510             */
511            @Override
512            public boolean hasGroupUserGroups(long groupId) {
513                    return groupPersistence.containsUserGroups(groupId);
514            }
515    
516            /**
517             */
518            @Override
519            public void setGroupUserGroups(long groupId, long[] userGroupIds) {
520                    groupPersistence.setUserGroups(groupId, userGroupIds);
521            }
522    
523            /**
524             */
525            @Override
526            public void addTeamUserGroup(long teamId, long userGroupId) {
527                    teamPersistence.addUserGroup(teamId, userGroupId);
528            }
529    
530            /**
531             */
532            @Override
533            public void addTeamUserGroup(long teamId, UserGroup userGroup) {
534                    teamPersistence.addUserGroup(teamId, userGroup);
535            }
536    
537            /**
538             */
539            @Override
540            public void addTeamUserGroups(long teamId, long[] userGroupIds) {
541                    teamPersistence.addUserGroups(teamId, userGroupIds);
542            }
543    
544            /**
545             */
546            @Override
547            public void addTeamUserGroups(long teamId, List<UserGroup> UserGroups) {
548                    teamPersistence.addUserGroups(teamId, UserGroups);
549            }
550    
551            /**
552             */
553            @Override
554            public void clearTeamUserGroups(long teamId) {
555                    teamPersistence.clearUserGroups(teamId);
556            }
557    
558            /**
559             */
560            @Override
561            public void deleteTeamUserGroup(long teamId, long userGroupId) {
562                    teamPersistence.removeUserGroup(teamId, userGroupId);
563            }
564    
565            /**
566             */
567            @Override
568            public void deleteTeamUserGroup(long teamId, UserGroup userGroup) {
569                    teamPersistence.removeUserGroup(teamId, userGroup);
570            }
571    
572            /**
573             */
574            @Override
575            public void deleteTeamUserGroups(long teamId, long[] userGroupIds) {
576                    teamPersistence.removeUserGroups(teamId, userGroupIds);
577            }
578    
579            /**
580             */
581            @Override
582            public void deleteTeamUserGroups(long teamId, List<UserGroup> UserGroups) {
583                    teamPersistence.removeUserGroups(teamId, UserGroups);
584            }
585    
586            /**
587             * Returns the teamIds of the teams associated with the user group.
588             *
589             * @param userGroupId the userGroupId of the user group
590             * @return long[] the teamIds of teams associated with the user group
591             */
592            @Override
593            public long[] getTeamPrimaryKeys(long userGroupId) {
594                    return userGroupPersistence.getTeamPrimaryKeys(userGroupId);
595            }
596    
597            /**
598             */
599            @Override
600            public List<UserGroup> getTeamUserGroups(long teamId) {
601                    return teamPersistence.getUserGroups(teamId);
602            }
603    
604            /**
605             */
606            @Override
607            public List<UserGroup> getTeamUserGroups(long teamId, int start, int end) {
608                    return teamPersistence.getUserGroups(teamId, start, end);
609            }
610    
611            /**
612             */
613            @Override
614            public List<UserGroup> getTeamUserGroups(long teamId, int start, int end,
615                    OrderByComparator<UserGroup> orderByComparator) {
616                    return teamPersistence.getUserGroups(teamId, start, end,
617                            orderByComparator);
618            }
619    
620            /**
621             */
622            @Override
623            public int getTeamUserGroupsCount(long teamId) {
624                    return teamPersistence.getUserGroupsSize(teamId);
625            }
626    
627            /**
628             */
629            @Override
630            public boolean hasTeamUserGroup(long teamId, long userGroupId) {
631                    return teamPersistence.containsUserGroup(teamId, userGroupId);
632            }
633    
634            /**
635             */
636            @Override
637            public boolean hasTeamUserGroups(long teamId) {
638                    return teamPersistence.containsUserGroups(teamId);
639            }
640    
641            /**
642             */
643            @Override
644            public void setTeamUserGroups(long teamId, long[] userGroupIds) {
645                    teamPersistence.setUserGroups(teamId, userGroupIds);
646            }
647    
648            /**
649             */
650            @Override
651            public void addUserUserGroup(long userId, long userGroupId) {
652                    userPersistence.addUserGroup(userId, userGroupId);
653            }
654    
655            /**
656             */
657            @Override
658            public void addUserUserGroup(long userId, UserGroup userGroup) {
659                    userPersistence.addUserGroup(userId, userGroup);
660            }
661    
662            /**
663             */
664            @Override
665            public void addUserUserGroups(long userId, long[] userGroupIds) {
666                    userPersistence.addUserGroups(userId, userGroupIds);
667            }
668    
669            /**
670             */
671            @Override
672            public void addUserUserGroups(long userId, List<UserGroup> UserGroups) {
673                    userPersistence.addUserGroups(userId, UserGroups);
674            }
675    
676            /**
677             */
678            @Override
679            public void clearUserUserGroups(long userId) {
680                    userPersistence.clearUserGroups(userId);
681            }
682    
683            /**
684             */
685            @Override
686            public void deleteUserUserGroup(long userId, long userGroupId) {
687                    userPersistence.removeUserGroup(userId, userGroupId);
688            }
689    
690            /**
691             */
692            @Override
693            public void deleteUserUserGroup(long userId, UserGroup userGroup) {
694                    userPersistence.removeUserGroup(userId, userGroup);
695            }
696    
697            /**
698             */
699            @Override
700            public void deleteUserUserGroups(long userId, long[] userGroupIds) {
701                    userPersistence.removeUserGroups(userId, userGroupIds);
702            }
703    
704            /**
705             */
706            @Override
707            public void deleteUserUserGroups(long userId, List<UserGroup> UserGroups) {
708                    userPersistence.removeUserGroups(userId, UserGroups);
709            }
710    
711            /**
712             * Returns the userIds of the users associated with the user group.
713             *
714             * @param userGroupId the userGroupId of the user group
715             * @return long[] the userIds of users associated with the user group
716             */
717            @Override
718            public long[] getUserPrimaryKeys(long userGroupId) {
719                    return userGroupPersistence.getUserPrimaryKeys(userGroupId);
720            }
721    
722            /**
723             */
724            @Override
725            public List<UserGroup> getUserUserGroups(long userId) {
726                    return userPersistence.getUserGroups(userId);
727            }
728    
729            /**
730             */
731            @Override
732            public List<UserGroup> getUserUserGroups(long userId, int start, int end) {
733                    return userPersistence.getUserGroups(userId, start, end);
734            }
735    
736            /**
737             */
738            @Override
739            public List<UserGroup> getUserUserGroups(long userId, int start, int end,
740                    OrderByComparator<UserGroup> orderByComparator) {
741                    return userPersistence.getUserGroups(userId, start, end,
742                            orderByComparator);
743            }
744    
745            /**
746             */
747            @Override
748            public int getUserUserGroupsCount(long userId) {
749                    return userPersistence.getUserGroupsSize(userId);
750            }
751    
752            /**
753             */
754            @Override
755            public boolean hasUserUserGroup(long userId, long userGroupId) {
756                    return userPersistence.containsUserGroup(userId, userGroupId);
757            }
758    
759            /**
760             */
761            @Override
762            public boolean hasUserUserGroups(long userId) {
763                    return userPersistence.containsUserGroups(userId);
764            }
765    
766            /**
767             * @throws PortalException
768             */
769            @Override
770            public void setUserUserGroups(long userId, long[] userGroupIds)
771                    throws PortalException {
772                    userPersistence.setUserGroups(userId, userGroupIds);
773            }
774    
775            /**
776             * Returns the user group local service.
777             *
778             * @return the user group local service
779             */
780            public UserGroupLocalService getUserGroupLocalService() {
781                    return userGroupLocalService;
782            }
783    
784            /**
785             * Sets the user group local service.
786             *
787             * @param userGroupLocalService the user group local service
788             */
789            public void setUserGroupLocalService(
790                    UserGroupLocalService userGroupLocalService) {
791                    this.userGroupLocalService = userGroupLocalService;
792            }
793    
794            /**
795             * Returns the user group remote service.
796             *
797             * @return the user group remote service
798             */
799            public com.liferay.portal.service.UserGroupService getUserGroupService() {
800                    return userGroupService;
801            }
802    
803            /**
804             * Sets the user group remote service.
805             *
806             * @param userGroupService the user group remote service
807             */
808            public void setUserGroupService(
809                    com.liferay.portal.service.UserGroupService userGroupService) {
810                    this.userGroupService = userGroupService;
811            }
812    
813            /**
814             * Returns the user group persistence.
815             *
816             * @return the user group persistence
817             */
818            public UserGroupPersistence getUserGroupPersistence() {
819                    return userGroupPersistence;
820            }
821    
822            /**
823             * Sets the user group persistence.
824             *
825             * @param userGroupPersistence the user group persistence
826             */
827            public void setUserGroupPersistence(
828                    UserGroupPersistence userGroupPersistence) {
829                    this.userGroupPersistence = userGroupPersistence;
830            }
831    
832            /**
833             * Returns the user group finder.
834             *
835             * @return the user group finder
836             */
837            public UserGroupFinder getUserGroupFinder() {
838                    return userGroupFinder;
839            }
840    
841            /**
842             * Sets the user group finder.
843             *
844             * @param userGroupFinder the user group finder
845             */
846            public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
847                    this.userGroupFinder = userGroupFinder;
848            }
849    
850            /**
851             * Returns the counter local service.
852             *
853             * @return the counter local service
854             */
855            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
856                    return counterLocalService;
857            }
858    
859            /**
860             * Sets the counter local service.
861             *
862             * @param counterLocalService the counter local service
863             */
864            public void setCounterLocalService(
865                    com.liferay.counter.service.CounterLocalService counterLocalService) {
866                    this.counterLocalService = counterLocalService;
867            }
868    
869            /**
870             * Returns the group local service.
871             *
872             * @return the group local service
873             */
874            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
875                    return groupLocalService;
876            }
877    
878            /**
879             * Sets the group local service.
880             *
881             * @param groupLocalService the group local service
882             */
883            public void setGroupLocalService(
884                    com.liferay.portal.service.GroupLocalService groupLocalService) {
885                    this.groupLocalService = groupLocalService;
886            }
887    
888            /**
889             * Returns the group remote service.
890             *
891             * @return the group remote service
892             */
893            public com.liferay.portal.service.GroupService getGroupService() {
894                    return groupService;
895            }
896    
897            /**
898             * Sets the group remote service.
899             *
900             * @param groupService the group remote service
901             */
902            public void setGroupService(
903                    com.liferay.portal.service.GroupService groupService) {
904                    this.groupService = groupService;
905            }
906    
907            /**
908             * Returns the group persistence.
909             *
910             * @return the group persistence
911             */
912            public GroupPersistence getGroupPersistence() {
913                    return groupPersistence;
914            }
915    
916            /**
917             * Sets the group persistence.
918             *
919             * @param groupPersistence the group persistence
920             */
921            public void setGroupPersistence(GroupPersistence groupPersistence) {
922                    this.groupPersistence = groupPersistence;
923            }
924    
925            /**
926             * Returns the group finder.
927             *
928             * @return the group finder
929             */
930            public GroupFinder getGroupFinder() {
931                    return groupFinder;
932            }
933    
934            /**
935             * Sets the group finder.
936             *
937             * @param groupFinder the group finder
938             */
939            public void setGroupFinder(GroupFinder groupFinder) {
940                    this.groupFinder = groupFinder;
941            }
942    
943            /**
944             * Returns the layout local service.
945             *
946             * @return the layout local service
947             */
948            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
949                    return layoutLocalService;
950            }
951    
952            /**
953             * Sets the layout local service.
954             *
955             * @param layoutLocalService the layout local service
956             */
957            public void setLayoutLocalService(
958                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
959                    this.layoutLocalService = layoutLocalService;
960            }
961    
962            /**
963             * Returns the layout remote service.
964             *
965             * @return the layout remote service
966             */
967            public com.liferay.portal.service.LayoutService getLayoutService() {
968                    return layoutService;
969            }
970    
971            /**
972             * Sets the layout remote service.
973             *
974             * @param layoutService the layout remote service
975             */
976            public void setLayoutService(
977                    com.liferay.portal.service.LayoutService layoutService) {
978                    this.layoutService = layoutService;
979            }
980    
981            /**
982             * Returns the layout persistence.
983             *
984             * @return the layout persistence
985             */
986            public LayoutPersistence getLayoutPersistence() {
987                    return layoutPersistence;
988            }
989    
990            /**
991             * Sets the layout persistence.
992             *
993             * @param layoutPersistence the layout persistence
994             */
995            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
996                    this.layoutPersistence = layoutPersistence;
997            }
998    
999            /**
1000             * Returns the layout finder.
1001             *
1002             * @return the layout finder
1003             */
1004            public LayoutFinder getLayoutFinder() {
1005                    return layoutFinder;
1006            }
1007    
1008            /**
1009             * Sets the layout finder.
1010             *
1011             * @param layoutFinder the layout finder
1012             */
1013            public void setLayoutFinder(LayoutFinder layoutFinder) {
1014                    this.layoutFinder = layoutFinder;
1015            }
1016    
1017            /**
1018             * Returns the resource local service.
1019             *
1020             * @return the resource local service
1021             */
1022            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1023                    return resourceLocalService;
1024            }
1025    
1026            /**
1027             * Sets the resource local service.
1028             *
1029             * @param resourceLocalService the resource local service
1030             */
1031            public void setResourceLocalService(
1032                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1033                    this.resourceLocalService = resourceLocalService;
1034            }
1035    
1036            /**
1037             * Returns the team local service.
1038             *
1039             * @return the team local service
1040             */
1041            public com.liferay.portal.service.TeamLocalService getTeamLocalService() {
1042                    return teamLocalService;
1043            }
1044    
1045            /**
1046             * Sets the team local service.
1047             *
1048             * @param teamLocalService the team local service
1049             */
1050            public void setTeamLocalService(
1051                    com.liferay.portal.service.TeamLocalService teamLocalService) {
1052                    this.teamLocalService = teamLocalService;
1053            }
1054    
1055            /**
1056             * Returns the team remote service.
1057             *
1058             * @return the team remote service
1059             */
1060            public com.liferay.portal.service.TeamService getTeamService() {
1061                    return teamService;
1062            }
1063    
1064            /**
1065             * Sets the team remote service.
1066             *
1067             * @param teamService the team remote service
1068             */
1069            public void setTeamService(
1070                    com.liferay.portal.service.TeamService teamService) {
1071                    this.teamService = teamService;
1072            }
1073    
1074            /**
1075             * Returns the team persistence.
1076             *
1077             * @return the team persistence
1078             */
1079            public TeamPersistence getTeamPersistence() {
1080                    return teamPersistence;
1081            }
1082    
1083            /**
1084             * Sets the team persistence.
1085             *
1086             * @param teamPersistence the team persistence
1087             */
1088            public void setTeamPersistence(TeamPersistence teamPersistence) {
1089                    this.teamPersistence = teamPersistence;
1090            }
1091    
1092            /**
1093             * Returns the team finder.
1094             *
1095             * @return the team finder
1096             */
1097            public TeamFinder getTeamFinder() {
1098                    return teamFinder;
1099            }
1100    
1101            /**
1102             * Sets the team finder.
1103             *
1104             * @param teamFinder the team finder
1105             */
1106            public void setTeamFinder(TeamFinder teamFinder) {
1107                    this.teamFinder = teamFinder;
1108            }
1109    
1110            /**
1111             * Returns the user local service.
1112             *
1113             * @return the user local service
1114             */
1115            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1116                    return userLocalService;
1117            }
1118    
1119            /**
1120             * Sets the user local service.
1121             *
1122             * @param userLocalService the user local service
1123             */
1124            public void setUserLocalService(
1125                    com.liferay.portal.service.UserLocalService userLocalService) {
1126                    this.userLocalService = userLocalService;
1127            }
1128    
1129            /**
1130             * Returns the user remote service.
1131             *
1132             * @return the user remote service
1133             */
1134            public com.liferay.portal.service.UserService getUserService() {
1135                    return userService;
1136            }
1137    
1138            /**
1139             * Sets the user remote service.
1140             *
1141             * @param userService the user remote service
1142             */
1143            public void setUserService(
1144                    com.liferay.portal.service.UserService userService) {
1145                    this.userService = userService;
1146            }
1147    
1148            /**
1149             * Returns the user persistence.
1150             *
1151             * @return the user persistence
1152             */
1153            public UserPersistence getUserPersistence() {
1154                    return userPersistence;
1155            }
1156    
1157            /**
1158             * Sets the user persistence.
1159             *
1160             * @param userPersistence the user persistence
1161             */
1162            public void setUserPersistence(UserPersistence userPersistence) {
1163                    this.userPersistence = userPersistence;
1164            }
1165    
1166            /**
1167             * Returns the user finder.
1168             *
1169             * @return the user finder
1170             */
1171            public UserFinder getUserFinder() {
1172                    return userFinder;
1173            }
1174    
1175            /**
1176             * Sets the user finder.
1177             *
1178             * @param userFinder the user finder
1179             */
1180            public void setUserFinder(UserFinder userFinder) {
1181                    this.userFinder = userFinder;
1182            }
1183    
1184            /**
1185             * Returns the expando row local service.
1186             *
1187             * @return the expando row local service
1188             */
1189            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1190                    return expandoRowLocalService;
1191            }
1192    
1193            /**
1194             * Sets the expando row local service.
1195             *
1196             * @param expandoRowLocalService the expando row local service
1197             */
1198            public void setExpandoRowLocalService(
1199                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1200                    this.expandoRowLocalService = expandoRowLocalService;
1201            }
1202    
1203            /**
1204             * Returns the expando row persistence.
1205             *
1206             * @return the expando row persistence
1207             */
1208            public ExpandoRowPersistence getExpandoRowPersistence() {
1209                    return expandoRowPersistence;
1210            }
1211    
1212            /**
1213             * Sets the expando row persistence.
1214             *
1215             * @param expandoRowPersistence the expando row persistence
1216             */
1217            public void setExpandoRowPersistence(
1218                    ExpandoRowPersistence expandoRowPersistence) {
1219                    this.expandoRowPersistence = expandoRowPersistence;
1220            }
1221    
1222            /**
1223             * Returns the export import local service.
1224             *
1225             * @return the export import local service
1226             */
1227            public com.liferay.portlet.exportimport.service.ExportImportLocalService getExportImportLocalService() {
1228                    return exportImportLocalService;
1229            }
1230    
1231            /**
1232             * Sets the export import local service.
1233             *
1234             * @param exportImportLocalService the export import local service
1235             */
1236            public void setExportImportLocalService(
1237                    com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService) {
1238                    this.exportImportLocalService = exportImportLocalService;
1239            }
1240    
1241            /**
1242             * Returns the export import remote service.
1243             *
1244             * @return the export import remote service
1245             */
1246            public com.liferay.portlet.exportimport.service.ExportImportService getExportImportService() {
1247                    return exportImportService;
1248            }
1249    
1250            /**
1251             * Sets the export import remote service.
1252             *
1253             * @param exportImportService the export import remote service
1254             */
1255            public void setExportImportService(
1256                    com.liferay.portlet.exportimport.service.ExportImportService exportImportService) {
1257                    this.exportImportService = exportImportService;
1258            }
1259    
1260            /**
1261             * Returns the export import configuration local service.
1262             *
1263             * @return the export import configuration local service
1264             */
1265            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
1266                    return exportImportConfigurationLocalService;
1267            }
1268    
1269            /**
1270             * Sets the export import configuration local service.
1271             *
1272             * @param exportImportConfigurationLocalService the export import configuration local service
1273             */
1274            public void setExportImportConfigurationLocalService(
1275                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
1276                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
1277            }
1278    
1279            /**
1280             * Returns the export import configuration remote service.
1281             *
1282             * @return the export import configuration remote service
1283             */
1284            public com.liferay.portlet.exportimport.service.ExportImportConfigurationService getExportImportConfigurationService() {
1285                    return exportImportConfigurationService;
1286            }
1287    
1288            /**
1289             * Sets the export import configuration remote service.
1290             *
1291             * @param exportImportConfigurationService the export import configuration remote service
1292             */
1293            public void setExportImportConfigurationService(
1294                    com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService) {
1295                    this.exportImportConfigurationService = exportImportConfigurationService;
1296            }
1297    
1298            /**
1299             * Returns the export import configuration persistence.
1300             *
1301             * @return the export import configuration persistence
1302             */
1303            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
1304                    return exportImportConfigurationPersistence;
1305            }
1306    
1307            /**
1308             * Sets the export import configuration persistence.
1309             *
1310             * @param exportImportConfigurationPersistence the export import configuration persistence
1311             */
1312            public void setExportImportConfigurationPersistence(
1313                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
1314                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
1315            }
1316    
1317            /**
1318             * Returns the user group group role local service.
1319             *
1320             * @return the user group group role local service
1321             */
1322            public com.liferay.portal.service.UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService() {
1323                    return userGroupGroupRoleLocalService;
1324            }
1325    
1326            /**
1327             * Sets the user group group role local service.
1328             *
1329             * @param userGroupGroupRoleLocalService the user group group role local service
1330             */
1331            public void setUserGroupGroupRoleLocalService(
1332                    com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
1333                    this.userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
1334            }
1335    
1336            /**
1337             * Returns the user group group role remote service.
1338             *
1339             * @return the user group group role remote service
1340             */
1341            public com.liferay.portal.service.UserGroupGroupRoleService getUserGroupGroupRoleService() {
1342                    return userGroupGroupRoleService;
1343            }
1344    
1345            /**
1346             * Sets the user group group role remote service.
1347             *
1348             * @param userGroupGroupRoleService the user group group role remote service
1349             */
1350            public void setUserGroupGroupRoleService(
1351                    com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService) {
1352                    this.userGroupGroupRoleService = userGroupGroupRoleService;
1353            }
1354    
1355            /**
1356             * Returns the user group group role persistence.
1357             *
1358             * @return the user group group role persistence
1359             */
1360            public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence() {
1361                    return userGroupGroupRolePersistence;
1362            }
1363    
1364            /**
1365             * Sets the user group group role persistence.
1366             *
1367             * @param userGroupGroupRolePersistence the user group group role persistence
1368             */
1369            public void setUserGroupGroupRolePersistence(
1370                    UserGroupGroupRolePersistence userGroupGroupRolePersistence) {
1371                    this.userGroupGroupRolePersistence = userGroupGroupRolePersistence;
1372            }
1373    
1374            /**
1375             * Returns the user group group role finder.
1376             *
1377             * @return the user group group role finder
1378             */
1379            public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder() {
1380                    return userGroupGroupRoleFinder;
1381            }
1382    
1383            /**
1384             * Sets the user group group role finder.
1385             *
1386             * @param userGroupGroupRoleFinder the user group group role finder
1387             */
1388            public void setUserGroupGroupRoleFinder(
1389                    UserGroupGroupRoleFinder userGroupGroupRoleFinder) {
1390                    this.userGroupGroupRoleFinder = userGroupGroupRoleFinder;
1391            }
1392    
1393            public void afterPropertiesSet() {
1394                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.UserGroup",
1395                            userGroupLocalService);
1396            }
1397    
1398            public void destroy() {
1399                    persistedModelLocalServiceRegistry.unregister(
1400                            "com.liferay.portal.model.UserGroup");
1401            }
1402    
1403            /**
1404             * Returns the Spring bean ID for this bean.
1405             *
1406             * @return the Spring bean ID for this bean
1407             */
1408            @Override
1409            public String getBeanIdentifier() {
1410                    return _beanIdentifier;
1411            }
1412    
1413            /**
1414             * Sets the Spring bean ID for this bean.
1415             *
1416             * @param beanIdentifier the Spring bean ID for this bean
1417             */
1418            @Override
1419            public void setBeanIdentifier(String beanIdentifier) {
1420                    _beanIdentifier = beanIdentifier;
1421            }
1422    
1423            protected Class<?> getModelClass() {
1424                    return UserGroup.class;
1425            }
1426    
1427            protected String getModelClassName() {
1428                    return UserGroup.class.getName();
1429            }
1430    
1431            /**
1432             * Performs a SQL query.
1433             *
1434             * @param sql the sql query
1435             */
1436            protected void runSQL(String sql) {
1437                    try {
1438                            DataSource dataSource = userGroupPersistence.getDataSource();
1439    
1440                            DB db = DBFactoryUtil.getDB();
1441    
1442                            sql = db.buildSQL(sql);
1443                            sql = PortalUtil.transformSQL(sql);
1444    
1445                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1446                                            sql, new int[0]);
1447    
1448                            sqlUpdate.update();
1449                    }
1450                    catch (Exception e) {
1451                            throw new SystemException(e);
1452                    }
1453            }
1454    
1455            @BeanReference(type = UserGroupLocalService.class)
1456            protected UserGroupLocalService userGroupLocalService;
1457            @BeanReference(type = com.liferay.portal.service.UserGroupService.class)
1458            protected com.liferay.portal.service.UserGroupService userGroupService;
1459            @BeanReference(type = UserGroupPersistence.class)
1460            protected UserGroupPersistence userGroupPersistence;
1461            @BeanReference(type = UserGroupFinder.class)
1462            protected UserGroupFinder userGroupFinder;
1463            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1464            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1465            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1466            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1467            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1468            protected com.liferay.portal.service.GroupService groupService;
1469            @BeanReference(type = GroupPersistence.class)
1470            protected GroupPersistence groupPersistence;
1471            @BeanReference(type = GroupFinder.class)
1472            protected GroupFinder groupFinder;
1473            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1474            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1475            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1476            protected com.liferay.portal.service.LayoutService layoutService;
1477            @BeanReference(type = LayoutPersistence.class)
1478            protected LayoutPersistence layoutPersistence;
1479            @BeanReference(type = LayoutFinder.class)
1480            protected LayoutFinder layoutFinder;
1481            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1482            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1483            @BeanReference(type = com.liferay.portal.service.TeamLocalService.class)
1484            protected com.liferay.portal.service.TeamLocalService teamLocalService;
1485            @BeanReference(type = com.liferay.portal.service.TeamService.class)
1486            protected com.liferay.portal.service.TeamService teamService;
1487            @BeanReference(type = TeamPersistence.class)
1488            protected TeamPersistence teamPersistence;
1489            @BeanReference(type = TeamFinder.class)
1490            protected TeamFinder teamFinder;
1491            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1492            protected com.liferay.portal.service.UserLocalService userLocalService;
1493            @BeanReference(type = com.liferay.portal.service.UserService.class)
1494            protected com.liferay.portal.service.UserService userService;
1495            @BeanReference(type = UserPersistence.class)
1496            protected UserPersistence userPersistence;
1497            @BeanReference(type = UserFinder.class)
1498            protected UserFinder userFinder;
1499            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1500            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1501            @BeanReference(type = ExpandoRowPersistence.class)
1502            protected ExpandoRowPersistence expandoRowPersistence;
1503            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
1504            protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
1505            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportService.class)
1506            protected com.liferay.portlet.exportimport.service.ExportImportService exportImportService;
1507            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
1508            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
1509            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
1510            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
1511            @BeanReference(type = ExportImportConfigurationPersistence.class)
1512            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
1513            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleLocalService.class)
1514            protected com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService;
1515            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleService.class)
1516            protected com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService;
1517            @BeanReference(type = UserGroupGroupRolePersistence.class)
1518            protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
1519            @BeanReference(type = UserGroupGroupRoleFinder.class)
1520            protected UserGroupGroupRoleFinder userGroupGroupRoleFinder;
1521            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1522            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1523            private String _beanIdentifier;
1524    }