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.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link UserGroupLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see UserGroupLocalService
024     * @generated
025     */
026    @ProviderType
027    public class UserGroupLocalServiceWrapper implements UserGroupLocalService,
028            ServiceWrapper<UserGroupLocalService> {
029            public UserGroupLocalServiceWrapper(
030                    UserGroupLocalService userGroupLocalService) {
031                    _userGroupLocalService = userGroupLocalService;
032            }
033    
034            @Override
035            public boolean hasGroupUserGroup(long groupId, long userGroupId) {
036                    return _userGroupLocalService.hasGroupUserGroup(groupId, userGroupId);
037            }
038    
039            @Override
040            public boolean hasGroupUserGroups(long groupId) {
041                    return _userGroupLocalService.hasGroupUserGroups(groupId);
042            }
043    
044            @Override
045            public boolean hasTeamUserGroup(long teamId, long userGroupId) {
046                    return _userGroupLocalService.hasTeamUserGroup(teamId, userGroupId);
047            }
048    
049            @Override
050            public boolean hasTeamUserGroups(long teamId) {
051                    return _userGroupLocalService.hasTeamUserGroups(teamId);
052            }
053    
054            @Override
055            public boolean hasUserUserGroup(long userId, long userGroupId) {
056                    return _userGroupLocalService.hasUserUserGroup(userId, userGroupId);
057            }
058    
059            @Override
060            public boolean hasUserUserGroups(long userId) {
061                    return _userGroupLocalService.hasUserUserGroups(userId);
062            }
063    
064            @Override
065            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
066                    return _userGroupLocalService.getActionableDynamicQuery();
067            }
068    
069            @Override
070            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
071                    return _userGroupLocalService.dynamicQuery();
072            }
073    
074            @Override
075            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
076                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
077                    return _userGroupLocalService.getExportActionableDynamicQuery(portletDataContext);
078            }
079    
080            @Override
081            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
082                    return _userGroupLocalService.getIndexableActionableDynamicQuery();
083            }
084    
085            /**
086            * @throws PortalException
087            */
088            @Override
089            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
090                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
091                    throws com.liferay.portal.kernel.exception.PortalException {
092                    return _userGroupLocalService.deletePersistedModel(persistedModel);
093            }
094    
095            @Override
096            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
097                    java.io.Serializable primaryKeyObj)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _userGroupLocalService.getPersistedModel(primaryKeyObj);
100            }
101    
102            /**
103            * Adds the user group to the database. Also notifies the appropriate model listeners.
104            *
105            * @param userGroup the user group
106            * @return the user group that was added
107            */
108            @Override
109            public com.liferay.portal.kernel.model.UserGroup addUserGroup(
110                    com.liferay.portal.kernel.model.UserGroup userGroup) {
111                    return _userGroupLocalService.addUserGroup(userGroup);
112            }
113    
114            /**
115            * Adds a user group.
116            *
117            * <p>
118            * This method handles the creation and bookkeeping of the user group,
119            * including its resources, metadata, and internal data structures. It is
120            * not necessary to make subsequent calls to setup default groups and
121            * resources for the user group.
122            * </p>
123            *
124            * @param userId the primary key of the user
125            * @param companyId the primary key of the user group's company
126            * @param name the user group's name
127            * @param description the user group's description
128            * @return the user group
129            * @deprecated As of 6.2.0, replaced by {@link #addUserGroup(long, long,
130            String, String, ServiceContext)}
131            */
132            @Deprecated
133            @Override
134            public com.liferay.portal.kernel.model.UserGroup addUserGroup(long userId,
135                    long companyId, java.lang.String name, java.lang.String description)
136                    throws com.liferay.portal.kernel.exception.PortalException {
137                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
138                            description);
139            }
140    
141            /**
142            * Adds a user group.
143            *
144            * <p>
145            * This method handles the creation and bookkeeping of the user group,
146            * including its resources, metadata, and internal data structures. It is
147            * not necessary to make subsequent calls to setup default groups and
148            * resources for the user group.
149            * </p>
150            *
151            * @param userId the primary key of the user
152            * @param companyId the primary key of the user group's company
153            * @param name the user group's name
154            * @param description the user group's description
155            * @param serviceContext the service context to be applied (optionally
156            <code>null</code>). Can set expando bridge attributes for the
157            user group.
158            * @return the user group
159            */
160            @Override
161            public com.liferay.portal.kernel.model.UserGroup addUserGroup(long userId,
162                    long companyId, java.lang.String name, java.lang.String description,
163                    ServiceContext serviceContext)
164                    throws com.liferay.portal.kernel.exception.PortalException {
165                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
166                            description, serviceContext);
167            }
168    
169            /**
170            * Creates a new user group with the primary key. Does not add the user group to the database.
171            *
172            * @param userGroupId the primary key for the new user group
173            * @return the new user group
174            */
175            @Override
176            public com.liferay.portal.kernel.model.UserGroup createUserGroup(
177                    long userGroupId) {
178                    return _userGroupLocalService.createUserGroup(userGroupId);
179            }
180    
181            /**
182            * Deletes the user group from the database. Also notifies the appropriate model listeners.
183            *
184            * @param userGroup the user group
185            * @return the user group that was removed
186            * @throws PortalException
187            */
188            @Override
189            public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(
190                    com.liferay.portal.kernel.model.UserGroup userGroup)
191                    throws com.liferay.portal.kernel.exception.PortalException {
192                    return _userGroupLocalService.deleteUserGroup(userGroup);
193            }
194    
195            /**
196            * Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners.
197            *
198            * @param userGroupId the primary key of the user group
199            * @return the user group that was removed
200            * @throws PortalException if a user group with the primary key could not be found
201            */
202            @Override
203            public com.liferay.portal.kernel.model.UserGroup deleteUserGroup(
204                    long userGroupId)
205                    throws com.liferay.portal.kernel.exception.PortalException {
206                    return _userGroupLocalService.deleteUserGroup(userGroupId);
207            }
208    
209            @Override
210            public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(
211                    long companyId, java.lang.String name) {
212                    return _userGroupLocalService.fetchUserGroup(companyId, name);
213            }
214    
215            @Override
216            public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(
217                    long userGroupId) {
218                    return _userGroupLocalService.fetchUserGroup(userGroupId);
219            }
220    
221            /**
222            * Returns the user group with the matching UUID and company.
223            *
224            * @param uuid the user group's UUID
225            * @param companyId the primary key of the company
226            * @return the matching user group, or <code>null</code> if a matching user group could not be found
227            */
228            @Override
229            public com.liferay.portal.kernel.model.UserGroup fetchUserGroupByUuidAndCompanyId(
230                    java.lang.String uuid, long companyId) {
231                    return _userGroupLocalService.fetchUserGroupByUuidAndCompanyId(uuid,
232                            companyId);
233            }
234    
235            /**
236            * Returns the user group with the name.
237            *
238            * @param companyId the primary key of the user group's company
239            * @param name the user group's name
240            * @return Returns the user group with the name
241            */
242            @Override
243            public com.liferay.portal.kernel.model.UserGroup getUserGroup(
244                    long companyId, java.lang.String name)
245                    throws com.liferay.portal.kernel.exception.PortalException {
246                    return _userGroupLocalService.getUserGroup(companyId, name);
247            }
248    
249            /**
250            * Returns the user group with the primary key.
251            *
252            * @param userGroupId the primary key of the user group
253            * @return the user group
254            * @throws PortalException if a user group with the primary key could not be found
255            */
256            @Override
257            public com.liferay.portal.kernel.model.UserGroup getUserGroup(
258                    long userGroupId)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _userGroupLocalService.getUserGroup(userGroupId);
261            }
262    
263            /**
264            * Returns the user group with the matching UUID and company.
265            *
266            * @param uuid the user group's UUID
267            * @param companyId the primary key of the company
268            * @return the matching user group
269            * @throws PortalException if a matching user group could not be found
270            */
271            @Override
272            public com.liferay.portal.kernel.model.UserGroup getUserGroupByUuidAndCompanyId(
273                    java.lang.String uuid, long companyId)
274                    throws com.liferay.portal.kernel.exception.PortalException {
275                    return _userGroupLocalService.getUserGroupByUuidAndCompanyId(uuid,
276                            companyId);
277            }
278    
279            /**
280            * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
281            *
282            * @param userGroup the user group
283            * @return the user group that was updated
284            */
285            @Override
286            public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
287                    com.liferay.portal.kernel.model.UserGroup userGroup) {
288                    return _userGroupLocalService.updateUserGroup(userGroup);
289            }
290    
291            /**
292            * Updates the user group.
293            *
294            * @param companyId the primary key of the user group's company
295            * @param userGroupId the primary key of the user group
296            * @param name the user group's name
297            * @param description the user group's description
298            * @return the user group
299            * @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long, long,
300            String, String, ServiceContext)}
301            */
302            @Deprecated
303            @Override
304            public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
305                    long companyId, long userGroupId, java.lang.String name,
306                    java.lang.String description)
307                    throws com.liferay.portal.kernel.exception.PortalException {
308                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
309                            name, description);
310            }
311    
312            /**
313            * Updates the user group.
314            *
315            * @param companyId the primary key of the user group's company
316            * @param userGroupId the primary key of the user group
317            * @param name the user group's name
318            * @param description the user group's description
319            * @param serviceContext the service context to be applied (optionally
320            <code>null</code>). Can set expando bridge attributes for the
321            user group.
322            * @return the user group
323            */
324            @Override
325            public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
326                    long companyId, long userGroupId, java.lang.String name,
327                    java.lang.String description, ServiceContext serviceContext)
328                    throws com.liferay.portal.kernel.exception.PortalException {
329                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
330                            name, description, serviceContext);
331            }
332    
333            @Override
334            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.UserGroup> searchUserGroups(
335                    long companyId, java.lang.String keywords,
336                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
337                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    return _userGroupLocalService.searchUserGroups(companyId, keywords,
340                            params, start, end, sort);
341            }
342    
343            @Override
344            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.UserGroup> searchUserGroups(
345                    long companyId, java.lang.String name, java.lang.String description,
346                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
347                    boolean andSearch, int start, int end,
348                    com.liferay.portal.kernel.search.Sort sort)
349                    throws com.liferay.portal.kernel.exception.PortalException {
350                    return _userGroupLocalService.searchUserGroups(companyId, name,
351                            description, params, andSearch, start, end, sort);
352            }
353    
354            /**
355            * Returns an ordered range of all the user groups that match the keywords,
356            * using the indexer. It is preferable to use this method instead of the
357            * non-indexed version whenever possible for performance reasons.
358            *
359            * <p>
360            * Useful when paginating results. Returns a maximum of <code>end -
361            * start</code> instances. <code>start</code> and <code>end</code> are not
362            * primary keys, they are indexes in the result set. Thus, <code>0</code>
363            * refers to the first result in the set. Setting both <code>start</code>
364            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
365            * result set.
366            * </p>
367            *
368            * @param companyId the primary key of the user group's company
369            * @param keywords the keywords (space separated), which may occur in the
370            user group's name or description (optionally <code>null</code>)
371            * @param params the finder params (optionally <code>null</code>). For more
372            information see {@link
373            com.liferay.user.groups.admin.web.search.UserGroupIndexer}
374            * @param start the lower bound of the range of user groups to return
375            * @param end the upper bound of the range of user groups to return (not
376            inclusive)
377            * @param sort the field and direction by which to sort (optionally
378            <code>null</code>)
379            * @return the matching user groups ordered by sort
380            * @see com.liferay.user.groups.admin.web.search.UserGroupIndexer
381            */
382            @Override
383            public com.liferay.portal.kernel.search.Hits search(long companyId,
384                    java.lang.String keywords,
385                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
386                    int start, int end, com.liferay.portal.kernel.search.Sort sort) {
387                    return _userGroupLocalService.search(companyId, keywords, params,
388                            start, end, sort);
389            }
390    
391            /**
392            * Returns an ordered range of all the user groups that match the name and
393            * description. It is preferable to use this method instead of the
394            * non-indexed version whenever possible for performance reasons.
395            *
396            * <p>
397            * Useful when paginating results. Returns a maximum of <code>end -
398            * start</code> instances. <code>start</code> and <code>end</code> are not
399            * primary keys, they are indexes in the result set. Thus, <code>0</code>
400            * refers to the first result in the set. Setting both <code>start</code>
401            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
402            * result set.
403            * </p>
404            *
405            * @param companyId the primary key of the user group's company
406            * @param name the user group's name (optionally <code>null</code>)
407            * @param description the user group's description (optionally
408            <code>null</code>)
409            * @param params the finder params (optionally <code>null</code>). For more
410            information see {@link
411            com.liferay.user.groups.admin.web.search.UserGroupIndexer}
412            * @param andSearch whether every field must match its keywords or just one
413            field
414            * @param start the lower bound of the range of user groups to return
415            * @param end the upper bound of the range of user groups to return (not
416            inclusive)
417            * @param sort the field and direction by which to sort (optionally
418            <code>null</code>)
419            * @return the matching user groups ordered by sort
420            * @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
421            */
422            @Override
423            public com.liferay.portal.kernel.search.Hits search(long companyId,
424                    java.lang.String name, java.lang.String description,
425                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
426                    boolean andSearch, int start, int end,
427                    com.liferay.portal.kernel.search.Sort sort) {
428                    return _userGroupLocalService.search(companyId, name, description,
429                            params, andSearch, start, end, sort);
430            }
431    
432            @Override
433            public int getGroupUserGroupsCount(long groupId) {
434                    return _userGroupLocalService.getGroupUserGroupsCount(groupId);
435            }
436    
437            @Override
438            public int getTeamUserGroupsCount(long teamId) {
439                    return _userGroupLocalService.getTeamUserGroupsCount(teamId);
440            }
441    
442            /**
443            * Returns the number of user groups.
444            *
445            * @return the number of user groups
446            */
447            @Override
448            public int getUserGroupsCount() {
449                    return _userGroupLocalService.getUserGroupsCount();
450            }
451    
452            @Override
453            public int getUserUserGroupsCount(long userId) {
454                    return _userGroupLocalService.getUserUserGroupsCount(userId);
455            }
456    
457            /**
458            * Returns the number of user groups that match the keywords
459            *
460            * @param companyId the primary key of the user group's company
461            * @param keywords the keywords (space separated), which may occur in the
462            user group's name or description (optionally <code>null</code>)
463            * @param params the finder params (optionally <code>null</code>). For more
464            information see {@link
465            com.liferay.portal.kernel.service.persistence.UserGroupFinder}
466            * @return the number of matching user groups
467            * @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
468            */
469            @Override
470            public int searchCount(long companyId, java.lang.String keywords,
471                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
472                    return _userGroupLocalService.searchCount(companyId, keywords, params);
473            }
474    
475            /**
476            * Returns the number of user groups that match the name and description.
477            *
478            * @param companyId the primary key of the user group's company
479            * @param name the user group's name (optionally <code>null</code>)
480            * @param description the user group's description (optionally
481            <code>null</code>)
482            * @param params the finder params (optionally <code>null</code>). For more
483            information see {@link
484            com.liferay.portal.kernel.service.persistence.UserGroupFinder}
485            * @param andOperator whether every field must match its keywords or just
486            one field
487            * @return the number of matching user groups
488            * @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
489            */
490            @Override
491            public int searchCount(long companyId, java.lang.String name,
492                    java.lang.String description,
493                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
494                    boolean andOperator) {
495                    return _userGroupLocalService.searchCount(companyId, name, description,
496                            params, andOperator);
497            }
498    
499            /**
500            * Returns the OSGi service identifier.
501            *
502            * @return the OSGi service identifier
503            */
504            @Override
505            public java.lang.String getOSGiServiceIdentifier() {
506                    return _userGroupLocalService.getOSGiServiceIdentifier();
507            }
508    
509            /**
510            * Performs a dynamic query on the database and returns the matching rows.
511            *
512            * @param dynamicQuery the dynamic query
513            * @return the matching rows
514            */
515            @Override
516            public <T> java.util.List<T> dynamicQuery(
517                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
518                    return _userGroupLocalService.dynamicQuery(dynamicQuery);
519            }
520    
521            /**
522            * Performs a dynamic query on the database and returns a range of the matching rows.
523            *
524            * <p>
525            * 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.
526            * </p>
527            *
528            * @param dynamicQuery the dynamic query
529            * @param start the lower bound of the range of model instances
530            * @param end the upper bound of the range of model instances (not inclusive)
531            * @return the range of matching rows
532            */
533            @Override
534            public <T> java.util.List<T> dynamicQuery(
535                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
536                    int end) {
537                    return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end);
538            }
539    
540            /**
541            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
542            *
543            * <p>
544            * 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.
545            * </p>
546            *
547            * @param dynamicQuery the dynamic query
548            * @param start the lower bound of the range of model instances
549            * @param end the upper bound of the range of model instances (not inclusive)
550            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
551            * @return the ordered range of matching rows
552            */
553            @Override
554            public <T> java.util.List<T> dynamicQuery(
555                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
556                    int end,
557                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
558                    return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end,
559                            orderByComparator);
560            }
561    
562            @Override
563            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(
564                    long groupId) {
565                    return _userGroupLocalService.getGroupUserGroups(groupId);
566            }
567    
568            @Override
569            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(
570                    long groupId, int start, int end) {
571                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end);
572            }
573    
574            @Override
575            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserGroups(
576                    long groupId, int start, int end,
577                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) {
578                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end,
579                            orderByComparator);
580            }
581    
582            @Override
583            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getGroupUserUserGroups(
584                    long groupId, long userId)
585                    throws com.liferay.portal.kernel.exception.PortalException {
586                    return _userGroupLocalService.getGroupUserUserGroups(groupId, userId);
587            }
588    
589            @Override
590            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(
591                    long teamId) {
592                    return _userGroupLocalService.getTeamUserGroups(teamId);
593            }
594    
595            @Override
596            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(
597                    long teamId, int start, int end) {
598                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end);
599            }
600    
601            @Override
602            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getTeamUserGroups(
603                    long teamId, int start, int end,
604                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) {
605                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end,
606                            orderByComparator);
607            }
608    
609            /**
610            * Returns a range of all the user groups.
611            *
612            * <p>
613            * 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.
614            * </p>
615            *
616            * @param start the lower bound of the range of user groups
617            * @param end the upper bound of the range of user groups (not inclusive)
618            * @return the range of user groups
619            */
620            @Override
621            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
622                    int start, int end) {
623                    return _userGroupLocalService.getUserGroups(start, end);
624            }
625    
626            /**
627            * Returns all the user groups belonging to the company.
628            *
629            * @param companyId the primary key of the user groups' company
630            * @return the user groups belonging to the company
631            */
632            @Override
633            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
634                    long companyId) {
635                    return _userGroupLocalService.getUserGroups(companyId);
636            }
637    
638            /**
639            * Returns all the user groups with the primary keys.
640            *
641            * @param userGroupIds the primary keys of the user groups
642            * @return the user groups with the primary keys
643            */
644            @Override
645            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
646                    long[] userGroupIds)
647                    throws com.liferay.portal.kernel.exception.PortalException {
648                    return _userGroupLocalService.getUserGroups(userGroupIds);
649            }
650    
651            @Override
652            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
653                    long userId) {
654                    return _userGroupLocalService.getUserUserGroups(userId);
655            }
656    
657            @Override
658            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
659                    long userId, int start, int end) {
660                    return _userGroupLocalService.getUserUserGroups(userId, start, end);
661            }
662    
663            @Override
664            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
665                    long userId, int start, int end,
666                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) {
667                    return _userGroupLocalService.getUserUserGroups(userId, start, end,
668                            orderByComparator);
669            }
670    
671            /**
672            * Returns an ordered range of all the user groups that match the keywords.
673            *
674            * <p>
675            * Useful when paginating results. Returns a maximum of <code>end -
676            * start</code> instances. <code>start</code> and <code>end</code> are not
677            * primary keys, they are indexes in the result set. Thus, <code>0</code>
678            * refers to the first result in the set. Setting both <code>start</code>
679            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
680            * result set.
681            * </p>
682            *
683            * @param companyId the primary key of the user group's company
684            * @param keywords the keywords (space separated), which may occur in the
685            user group's name or description (optionally <code>null</code>)
686            * @param params the finder params (optionally <code>null</code>). For more
687            information see {@link
688            com.liferay.portal.kernel.service.persistence.UserGroupFinder}
689            * @param start the lower bound of the range of user groups to return
690            * @param end the upper bound of the range of user groups to return (not
691            inclusive)
692            * @param obc the comparator to order the user groups (optionally
693            <code>null</code>)
694            * @return the matching user groups ordered by comparator <code>obc</code>
695            * @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
696            */
697            @Override
698            public java.util.List<com.liferay.portal.kernel.model.UserGroup> search(
699                    long companyId, java.lang.String keywords,
700                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
701                    int start, int end,
702                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> obc) {
703                    return _userGroupLocalService.search(companyId, keywords, params,
704                            start, end, obc);
705            }
706    
707            /**
708            * Returns an ordered range of all the user groups that match the name and
709            * description.
710            *
711            * <p>
712            * Useful when paginating results. Returns a maximum of <code>end -
713            * start</code> instances. <code>start</code> and <code>end</code> are not
714            * primary keys, they are indexes in the result set. Thus, <code>0</code>
715            * refers to the first result in the set. Setting both <code>start</code>
716            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
717            * result set.
718            * </p>
719            *
720            * @param companyId the primary key of the user group's company
721            * @param name the user group's name (optionally <code>null</code>)
722            * @param description the user group's description (optionally
723            <code>null</code>)
724            * @param params the finder params (optionally <code>null</code>). For more
725            information see {@link
726            com.liferay.portal.kernel.service.persistence.UserGroupFinder}
727            * @param andOperator whether every field must match its keywords or just
728            one field
729            * @param start the lower bound of the range of user groups to return
730            * @param end the upper bound of the range of user groups to return (not
731            inclusive)
732            * @param obc the comparator to order the user groups (optionally
733            <code>null</code>)
734            * @return the matching user groups ordered by comparator <code>obc</code>
735            * @see com.liferay.portal.kernel.service.persistence.UserGroupFinder
736            */
737            @Override
738            public java.util.List<com.liferay.portal.kernel.model.UserGroup> search(
739                    long companyId, java.lang.String name, java.lang.String description,
740                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
741                    boolean andOperator, int start, int end,
742                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> obc) {
743                    return _userGroupLocalService.search(companyId, name, description,
744                            params, andOperator, start, end, obc);
745            }
746    
747            /**
748            * Returns the number of rows matching the dynamic query.
749            *
750            * @param dynamicQuery the dynamic query
751            * @return the number of rows matching the dynamic query
752            */
753            @Override
754            public long dynamicQueryCount(
755                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
756                    return _userGroupLocalService.dynamicQueryCount(dynamicQuery);
757            }
758    
759            /**
760            * Returns the number of rows matching the dynamic query.
761            *
762            * @param dynamicQuery the dynamic query
763            * @param projection the projection to apply to the query
764            * @return the number of rows matching the dynamic query
765            */
766            @Override
767            public long dynamicQueryCount(
768                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
769                    com.liferay.portal.kernel.dao.orm.Projection projection) {
770                    return _userGroupLocalService.dynamicQueryCount(dynamicQuery, projection);
771            }
772    
773            /**
774            * Returns the groupIds of the groups associated with the user group.
775            *
776            * @param userGroupId the userGroupId of the user group
777            * @return long[] the groupIds of groups associated with the user group
778            */
779            @Override
780            public long[] getGroupPrimaryKeys(long userGroupId) {
781                    return _userGroupLocalService.getGroupPrimaryKeys(userGroupId);
782            }
783    
784            /**
785            * Returns the teamIds of the teams associated with the user group.
786            *
787            * @param userGroupId the userGroupId of the user group
788            * @return long[] the teamIds of teams associated with the user group
789            */
790            @Override
791            public long[] getTeamPrimaryKeys(long userGroupId) {
792                    return _userGroupLocalService.getTeamPrimaryKeys(userGroupId);
793            }
794    
795            /**
796            * Returns the userIds of the users associated with the user group.
797            *
798            * @param userGroupId the userGroupId of the user group
799            * @return long[] the userIds of users associated with the user group
800            */
801            @Override
802            public long[] getUserPrimaryKeys(long userGroupId) {
803                    return _userGroupLocalService.getUserPrimaryKeys(userGroupId);
804            }
805    
806            @Override
807            public void addGroupUserGroup(long groupId,
808                    com.liferay.portal.kernel.model.UserGroup userGroup) {
809                    _userGroupLocalService.addGroupUserGroup(groupId, userGroup);
810            }
811    
812            @Override
813            public void addGroupUserGroup(long groupId, long userGroupId) {
814                    _userGroupLocalService.addGroupUserGroup(groupId, userGroupId);
815            }
816    
817            @Override
818            public void addGroupUserGroups(long groupId,
819                    java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
820                    _userGroupLocalService.addGroupUserGroups(groupId, userGroups);
821            }
822    
823            @Override
824            public void addGroupUserGroups(long groupId, long[] userGroupIds) {
825                    _userGroupLocalService.addGroupUserGroups(groupId, userGroupIds);
826            }
827    
828            @Override
829            public void addTeamUserGroup(long teamId,
830                    com.liferay.portal.kernel.model.UserGroup userGroup) {
831                    _userGroupLocalService.addTeamUserGroup(teamId, userGroup);
832            }
833    
834            @Override
835            public void addTeamUserGroup(long teamId, long userGroupId) {
836                    _userGroupLocalService.addTeamUserGroup(teamId, userGroupId);
837            }
838    
839            @Override
840            public void addTeamUserGroups(long teamId,
841                    java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
842                    _userGroupLocalService.addTeamUserGroups(teamId, userGroups);
843            }
844    
845            @Override
846            public void addTeamUserGroups(long teamId, long[] userGroupIds) {
847                    _userGroupLocalService.addTeamUserGroups(teamId, userGroupIds);
848            }
849    
850            @Override
851            public void addUserUserGroup(long userId,
852                    com.liferay.portal.kernel.model.UserGroup userGroup) {
853                    _userGroupLocalService.addUserUserGroup(userId, userGroup);
854            }
855    
856            @Override
857            public void addUserUserGroup(long userId, long userGroupId) {
858                    _userGroupLocalService.addUserUserGroup(userId, userGroupId);
859            }
860    
861            @Override
862            public void addUserUserGroups(long userId,
863                    java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
864                    _userGroupLocalService.addUserUserGroups(userId, userGroups);
865            }
866    
867            @Override
868            public void addUserUserGroups(long userId, long[] userGroupIds) {
869                    _userGroupLocalService.addUserUserGroups(userId, userGroupIds);
870            }
871    
872            @Override
873            public void clearGroupUserGroups(long groupId) {
874                    _userGroupLocalService.clearGroupUserGroups(groupId);
875            }
876    
877            @Override
878            public void clearTeamUserGroups(long teamId) {
879                    _userGroupLocalService.clearTeamUserGroups(teamId);
880            }
881    
882            @Override
883            public void clearUserUserGroups(long userId) {
884                    _userGroupLocalService.clearUserUserGroups(userId);
885            }
886    
887            /**
888            * Copies the user group's layout to the user.
889            *
890            * @param userGroupId the primary key of the user group
891            * @param userId the primary key of the user
892            * @deprecated As of 6.2.0
893            */
894            @Deprecated
895            @Override
896            public void copyUserGroupLayouts(long userGroupId, long userId)
897                    throws com.liferay.portal.kernel.exception.PortalException {
898                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userId);
899            }
900    
901            /**
902            * Copies the user group's layouts to the users who are not already members
903            * of the user group.
904            *
905            * @param userGroupId the primary key of the user group
906            * @param userIds the primary keys of the users
907            * @deprecated As of 6.1.0
908            */
909            @Deprecated
910            @Override
911            public void copyUserGroupLayouts(long userGroupId, long[] userIds)
912                    throws com.liferay.portal.kernel.exception.PortalException {
913                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userIds);
914            }
915    
916            /**
917            * Copies the user groups' layouts to the user.
918            *
919            * @param userGroupIds the primary keys of the user groups
920            * @param userId the primary key of the user
921            * @deprecated As of 6.1.0
922            */
923            @Deprecated
924            @Override
925            public void copyUserGroupLayouts(long[] userGroupIds, long userId)
926                    throws com.liferay.portal.kernel.exception.PortalException {
927                    _userGroupLocalService.copyUserGroupLayouts(userGroupIds, userId);
928            }
929    
930            @Override
931            public void deleteGroupUserGroup(long groupId,
932                    com.liferay.portal.kernel.model.UserGroup userGroup) {
933                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroup);
934            }
935    
936            @Override
937            public void deleteGroupUserGroup(long groupId, long userGroupId) {
938                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroupId);
939            }
940    
941            @Override
942            public void deleteGroupUserGroups(long groupId,
943                    java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
944                    _userGroupLocalService.deleteGroupUserGroups(groupId, userGroups);
945            }
946    
947            @Override
948            public void deleteGroupUserGroups(long groupId, long[] userGroupIds) {
949                    _userGroupLocalService.deleteGroupUserGroups(groupId, userGroupIds);
950            }
951    
952            @Override
953            public void deleteTeamUserGroup(long teamId,
954                    com.liferay.portal.kernel.model.UserGroup userGroup) {
955                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroup);
956            }
957    
958            @Override
959            public void deleteTeamUserGroup(long teamId, long userGroupId) {
960                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroupId);
961            }
962    
963            @Override
964            public void deleteTeamUserGroups(long teamId,
965                    java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
966                    _userGroupLocalService.deleteTeamUserGroups(teamId, userGroups);
967            }
968    
969            @Override
970            public void deleteTeamUserGroups(long teamId, long[] userGroupIds) {
971                    _userGroupLocalService.deleteTeamUserGroups(teamId, userGroupIds);
972            }
973    
974            @Override
975            public void deleteUserGroups(long companyId)
976                    throws com.liferay.portal.kernel.exception.PortalException {
977                    _userGroupLocalService.deleteUserGroups(companyId);
978            }
979    
980            @Override
981            public void deleteUserUserGroup(long userId,
982                    com.liferay.portal.kernel.model.UserGroup userGroup) {
983                    _userGroupLocalService.deleteUserUserGroup(userId, userGroup);
984            }
985    
986            @Override
987            public void deleteUserUserGroup(long userId, long userGroupId) {
988                    _userGroupLocalService.deleteUserUserGroup(userId, userGroupId);
989            }
990    
991            @Override
992            public void deleteUserUserGroups(long userId,
993                    java.util.List<com.liferay.portal.kernel.model.UserGroup> userGroups) {
994                    _userGroupLocalService.deleteUserUserGroups(userId, userGroups);
995            }
996    
997            @Override
998            public void deleteUserUserGroups(long userId, long[] userGroupIds) {
999                    _userGroupLocalService.deleteUserUserGroups(userId, userGroupIds);
1000            }
1001    
1002            @Override
1003            public void setGroupUserGroups(long groupId, long[] userGroupIds) {
1004                    _userGroupLocalService.setGroupUserGroups(groupId, userGroupIds);
1005            }
1006    
1007            @Override
1008            public void setTeamUserGroups(long teamId, long[] userGroupIds) {
1009                    _userGroupLocalService.setTeamUserGroups(teamId, userGroupIds);
1010            }
1011    
1012            /**
1013            * @throws PortalException
1014            */
1015            @Override
1016            public void setUserUserGroups(long userId, long[] userGroupIds)
1017                    throws com.liferay.portal.kernel.exception.PortalException {
1018                    _userGroupLocalService.setUserUserGroups(userId, userGroupIds);
1019            }
1020    
1021            /**
1022            * Removes the user groups from the group.
1023            *
1024            * @param groupId the primary key of the group
1025            * @param userGroupIds the primary keys of the user groups
1026            */
1027            @Override
1028            public void unsetGroupUserGroups(long groupId, long[] userGroupIds) {
1029                    _userGroupLocalService.unsetGroupUserGroups(groupId, userGroupIds);
1030            }
1031    
1032            /**
1033            * Removes the user groups from the team.
1034            *
1035            * @param teamId the primary key of the team
1036            * @param userGroupIds the primary keys of the user groups
1037            */
1038            @Override
1039            public void unsetTeamUserGroups(long teamId, long[] userGroupIds) {
1040                    _userGroupLocalService.unsetTeamUserGroups(teamId, userGroupIds);
1041            }
1042    
1043            @Override
1044            public UserGroupLocalService getWrappedService() {
1045                    return _userGroupLocalService;
1046            }
1047    
1048            @Override
1049            public void setWrappedService(UserGroupLocalService userGroupLocalService) {
1050                    _userGroupLocalService = userGroupLocalService;
1051            }
1052    
1053            private UserGroupLocalService _userGroupLocalService;
1054    }