001    /**
002     * Copyright (c) 2000-2013 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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link GroupService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see GroupService
024     * @generated
025     */
026    @ProviderType
027    public class GroupServiceWrapper implements GroupService,
028            ServiceWrapper<GroupService> {
029            public GroupServiceWrapper(GroupService groupService) {
030                    _groupService = groupService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            @Override
039            public java.lang.String getBeanIdentifier() {
040                    return _groupService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            @Override
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _groupService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            /**
054            * Adds a group.
055            *
056            * @param parentGroupId the primary key of the parent group
057            * @param liveGroupId the primary key of the live group
058            * @param name the entity's name
059            * @param description the group's description (optionally
060            <code>null</code>)
061            * @param type the group's type. For more information see {@link
062            com.liferay.portal.model.GroupConstants}
063            * @param friendlyURL the group's friendlyURL (optionally
064            <code>null</code>)
065            * @param site whether the group is to be associated with a main site
066            * @param active whether the group is active
067            * @param serviceContext the service context to be applied (optionally
068            <code>null</code>). Can set the asset category IDs and asset tag
069            names for the group, and can set whether the group is for staging
070            * @return the group
071            * @throws PortalException if the user did not have permission to add the
072            group, if a creator could not be found, if the group's
073            information was invalid, if a layout could not be found, or if a
074            valid friendly URL could not be created for the group
075            * @throws SystemException if a system exception occurred
076            */
077            @Override
078            public com.liferay.portal.model.Group addGroup(long parentGroupId,
079                    long liveGroupId, java.lang.String name, java.lang.String description,
080                    int type, boolean manualMembership, int membershipRestriction,
081                    java.lang.String friendlyURL, boolean site, boolean active,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return _groupService.addGroup(parentGroupId, liveGroupId, name,
086                            description, type, manualMembership, membershipRestriction,
087                            friendlyURL, site, active, serviceContext);
088            }
089    
090            /**
091            * Adds the group using the group default live group ID.
092            *
093            * @param parentGroupId the primary key of the parent group
094            * @param name the entity's name
095            * @param description the group's description (optionally
096            <code>null</code>)
097            * @param type the group's type. For more information see {@link
098            com.liferay.portal.model.GroupConstants}
099            * @param friendlyURL the group's friendlyURL
100            * @param site whether the group is to be associated with a main site
101            * @param active whether the group is active
102            * @param serviceContext the service context to be applied (optionally
103            <code>null</code>). Can set asset category IDs and asset tag
104            names for the group, and can set whether the group is for
105            staging
106            * @return the group
107            * @throws PortalException if the user did not have permission to add
108            the group, if a creator could not be found, if the group's
109            information was invalid, if a layout could not be found, or
110            if a valid friendly URL could not be created for the group
111            * @throws SystemException if a system exception occurred
112            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String,
113            String, int, boolean, int, String, boolean, boolean,
114            ServiceContext)}
115            */
116            @Override
117            public com.liferay.portal.model.Group addGroup(long parentGroupId,
118                    java.lang.String name, java.lang.String description, int type,
119                    java.lang.String friendlyURL, boolean site, boolean active,
120                    com.liferay.portal.service.ServiceContext serviceContext)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return _groupService.addGroup(parentGroupId, name, description, type,
124                            friendlyURL, site, active, serviceContext);
125            }
126    
127            /**
128            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, String,
129            String, int, String, boolean, boolean, ServiceContext)}
130            */
131            @Override
132            public com.liferay.portal.model.Group addGroup(java.lang.String name,
133                    java.lang.String description, int type, java.lang.String friendlyURL,
134                    boolean site, boolean active,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    return _groupService.addGroup(name, description, type, friendlyURL,
139                            site, active, serviceContext);
140            }
141    
142            /**
143            * Adds the groups to the role.
144            *
145            * @param roleId the primary key of the role
146            * @param groupIds the primary keys of the groups
147            * @throws PortalException if the user did not have permission to update the
148            role
149            * @throws SystemException if a system exception occurred
150            */
151            @Override
152            public void addRoleGroups(long roleId, long[] groupIds)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    _groupService.addRoleGroups(roleId, groupIds);
156            }
157    
158            /**
159            * Checks that the current user is permitted to use the group for Remote
160            * Staging.
161            *
162            * @param groupId the primary key of the group
163            * @throws PortalException if a group with the primary key could not be
164            found, if the current user did not have permission to view the
165            group, or if the group's company was different from the current
166            user's company
167            * @throws SystemException if a system exception occurred
168            */
169            @Override
170            public void checkRemoteStagingGroup(long groupId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    _groupService.checkRemoteStagingGroup(groupId);
174            }
175    
176            /**
177            * Deletes the group.
178            *
179            * <p>
180            * The group is unstaged and its assets and resources including layouts,
181            * membership requests, subscriptions, teams, blogs, bookmarks, calendar
182            * events, image gallery, journals, message boards, polls, shopping related
183            * entities, software catalog, and wikis are also deleted.
184            * </p>
185            *
186            * @param groupId the primary key of the group
187            * @throws PortalException if the user did not have permission to delete the
188            group or its assets or resources, if a group with the primary key
189            could not be found, or if the group was a system group
190            * @throws SystemException if a system exception occurred
191            */
192            @Override
193            public void deleteGroup(long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    _groupService.deleteGroup(groupId);
197            }
198    
199            @Override
200            public void disableStaging(long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    _groupService.disableStaging(groupId);
204            }
205    
206            @Override
207            public void enableStaging(long groupId)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    _groupService.enableStaging(groupId);
211            }
212    
213            /**
214            * Returns the company group.
215            *
216            * @param companyId the primary key of the company
217            * @return the group associated with the company
218            * @throws PortalException if a matching group could not be found
219            * @throws SystemException if a system exception occurred
220            */
221            @Override
222            public com.liferay.portal.model.Group getCompanyGroup(long companyId)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return _groupService.getCompanyGroup(companyId);
226            }
227    
228            /**
229            * Returns the group with the primary key.
230            *
231            * @param groupId the primary key of the group
232            * @return the group with the primary key
233            * @throws PortalException if a group with the primary key could not be
234            found or if the current user did not have permission to view the
235            group
236            * @throws SystemException if a system exception occurred
237            */
238            @Override
239            public com.liferay.portal.model.Group getGroup(long groupId)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return _groupService.getGroup(groupId);
243            }
244    
245            /**
246            * Returns the group with the name.
247            *
248            * @param companyId the primary key of the company
249            * @param name the group's name
250            * @return the group with the name
251            * @throws PortalException if a matching group could not be found or if the
252            current user did not have permission to view the group
253            * @throws SystemException if a system exception occurred
254            */
255            @Override
256            public com.liferay.portal.model.Group getGroup(long companyId,
257                    java.lang.String name)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _groupService.getGroup(companyId, name);
261            }
262    
263            /**
264            * Returns all the groups that are direct children of the parent group.
265            *
266            * @param companyId the primary key of the company
267            * @param parentGroupId the primary key of the parent group
268            * @param site whether the group is to be associated with a main site
269            * @return the matching groups, or <code>null</code> if no matches were
270            found
271            * @throws PortalException if the user did not have permission to view the
272            group or if a portal exception occurred
273            * @throws SystemException if a system exception occurred
274            */
275            @Override
276            public java.util.List<com.liferay.portal.model.Group> getGroups(
277                    long companyId, long parentGroupId, boolean site)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return _groupService.getGroups(companyId, parentGroupId, site);
281            }
282    
283            /**
284            * Returns a range of all the site groups for which the user has control
285            * panel access.
286            *
287            * @param portlets the portlets to manage
288            * @param max the upper bound of the range of groups to consider (not
289            inclusive)
290            * @return the range of site groups for which the user has Control Panel
291            access
292            * @throws PortalException if a portal exception occurred
293            * @throws SystemException if a system exception occurred
294            */
295            @Override
296            public java.util.List<com.liferay.portal.model.Group> getManageableSiteGroups(
297                    java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _groupService.getManageableSiteGroups(portlets, max);
301            }
302    
303            /**
304            * Returns a range of all the site groups for which the user has control
305            * panel access.
306            *
307            * @param portlets the portlets to manage
308            * @param max the upper bound of the range of groups to consider (not
309            inclusive)
310            * @return the range of site groups for which the user has Control Panel
311            access
312            * @throws PortalException if a portal exception occurred
313            * @throws SystemException if a system exception occurred
314            * @deprecated As of 6.2.0, replaced by {@link
315            #getManageableSiteGroups(Collection, int)}
316            */
317            @Override
318            public java.util.List<com.liferay.portal.model.Group> getManageableSites(
319                    java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _groupService.getManageableSites(portlets, max);
323            }
324    
325            /**
326            * Returns the groups associated with the organizations.
327            *
328            * @param organizations the organizations
329            * @return the groups associated with the organizations
330            * @throws PortalException if a portal exception occurred
331            * @throws SystemException if a system exception occurred
332            */
333            @Override
334            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
335                    java.util.List<com.liferay.portal.model.Organization> organizations)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _groupService.getOrganizationsGroups(organizations);
339            }
340    
341            /**
342            * Returns the group associated with the user.
343            *
344            * @param companyId the primary key of the company
345            * @param userId the primary key of the user
346            * @return the group associated with the user
347            * @throws PortalException if a matching group could not be found or if the
348            current user did not have permission to view the group
349            * @throws SystemException if a system exception occurred
350            */
351            @Override
352            public com.liferay.portal.model.Group getUserGroup(long companyId,
353                    long userId)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _groupService.getUserGroup(companyId, userId);
357            }
358    
359            /**
360            * Returns the groups associated with the user groups.
361            *
362            * @param userGroups the user groups
363            * @return the groups associated with the user groups
364            * @throws PortalException if any one of the user group's group could not be
365            found
366            * @throws SystemException if a system exception occurred
367            */
368            @Override
369            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
370                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return _groupService.getUserGroupsGroups(userGroups);
374            }
375    
376            /**
377            * Returns the range of all groups associated with the user's organization
378            * groups, including the ancestors of the organization groups, unless portal
379            * property <code>organizations.membership.strict</code> is set to
380            * <code>true</code>.
381            *
382            * <p>
383            * Useful when paginating results. Returns a maximum of <code>end -
384            * start</code> instances. <code>start</code> and <code>end</code> are not
385            * primary keys, they are indexes in the result set. Thus, <code>0</code>
386            * refers to the first result in the set. Setting both <code>start</code>
387            * and <code>end</code> to {@link
388            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
389            * result set.
390            * </p>
391            *
392            * @param userId the primary key of the user
393            * @param start the lower bound of the range of groups to consider
394            * @param end the upper bound of the range of groups to consider (not
395            inclusive)
396            * @return the range of groups associated with the user's organizations
397            * @throws PortalException if a user with the primary key could not be found
398            or if another portal exception occurred
399            * @throws SystemException if a system exception occurred
400            */
401            @Override
402            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
403                    long userId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    return _groupService.getUserOrganizationsGroups(userId, start, end);
407            }
408    
409            /**
410            * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long,
411            String[], boolean, int)}
412            */
413            @Override
414            public java.util.List<com.liferay.portal.model.Group> getUserPlaces(
415                    long userId, java.lang.String[] classNames,
416                    boolean includeControlPanel, int max)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException {
419                    return _groupService.getUserPlaces(userId, classNames,
420                            includeControlPanel, max);
421            }
422    
423            /**
424            * Returns the user's groups &quot;sites&quot; associated with the group
425            * entity class names, including the Control Panel group if the user is
426            * permitted to view the Control Panel.
427            *
428            * <ul>
429            * <li>
430            * Class name &quot;User&quot; includes the user's layout set
431            * group.
432            * </li>
433            * <li>
434            * Class name &quot;Organization&quot; includes the user's
435            * immediate organization groups and inherited organization groups.
436            * </li>
437            * <li>
438            * Class name &quot;Group&quot; includes the user's immediate
439            * organization groups and site groups.
440            * </li>
441            * <li>
442            * A <code>classNames</code>
443            * value of <code>null</code> includes the user's layout set group,
444            * organization groups, inherited organization groups, and site groups.
445            * </li>
446            * </ul>
447            *
448            * @param userId the primary key of the user
449            * @param classNames the group entity class names (optionally
450            <code>null</code>). For more information see {@link
451            #getUserSitesGroups(long, String[], int)}
452            * @param max the maximum number of groups to return
453            * @return the user's groups &quot;sites&quot;
454            * @throws PortalException if a portal exception occurred
455            * @throws SystemException if a system exception occurred
456            * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long,
457            String[], int)}
458            */
459            @Override
460            public java.util.List<com.liferay.portal.model.Group> getUserPlaces(
461                    long userId, java.lang.String[] classNames, int max)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    return _groupService.getUserPlaces(userId, classNames, max);
465            }
466    
467            /**
468            * Returns the guest or current user's groups &quot;sites&quot; associated
469            * with the group entity class names, including the Control Panel group if
470            * the user is permitted to view the Control Panel.
471            *
472            * <ul>
473            * <li>
474            * Class name &quot;User&quot; includes the user's layout set
475            * group.
476            * </li>
477            * <li>
478            * Class name &quot;Organization&quot; includes the user's
479            * immediate organization groups and inherited organization groups.
480            * </li>
481            * <li>
482            * Class name &quot;Group&quot; includes the user's immediate
483            * organization groups and site groups.
484            * </li>
485            * <li>
486            * A <code>classNames</code>
487            * value of <code>null</code> includes the user's layout set group,
488            * organization groups, inherited organization groups, and site groups.
489            * </li>
490            * </ul>
491            *
492            * @param classNames the group entity class names (optionally
493            <code>null</code>). For more information see {@link
494            #getUserSitesGroups(String[], int)}
495            * @param max the maximum number of groups to return
496            * @return the user's groups &quot;sites&quot;
497            * @throws PortalException if a portal exception occurred
498            * @throws SystemException if a system exception occurred
499            * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(
500            String[], int)}
501            */
502            @Override
503            public java.util.List<com.liferay.portal.model.Group> getUserPlaces(
504                    java.lang.String[] classNames, int max)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    return _groupService.getUserPlaces(classNames, max);
508            }
509    
510            /**
511            * Returns the number of the guest or current user's groups
512            * &quot;sites&quot; associated with the group entity class names, including
513            * the Control Panel group if the user is permitted to view the Control
514            * Panel.
515            *
516            * @return the number of user's groups &quot;sites&quot;
517            * @throws PortalException if a portal exception occurred
518            * @throws SystemException if a system exception occurred
519            * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroupsCount()}
520            */
521            @Override
522            public int getUserPlacesCount()
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    return _groupService.getUserPlacesCount();
526            }
527    
528            /**
529            * Returns the guest or current user's layout set group, organization
530            * groups, inherited organization groups, and site groups.
531            *
532            * @return the user's layout set group, organization groups, and
533            inherited organization groups, and site groups
534            * @throws PortalException if a portal exception occurred
535            * @throws SystemException if a system exception occurred
536            * @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups}
537            */
538            @Override
539            public java.util.List<com.liferay.portal.model.Group> getUserSites()
540                    throws com.liferay.portal.kernel.exception.PortalException,
541                            com.liferay.portal.kernel.exception.SystemException {
542                    return _groupService.getUserSites();
543            }
544    
545            @Override
546            public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups()
547                    throws com.liferay.portal.kernel.exception.PortalException,
548                            com.liferay.portal.kernel.exception.SystemException {
549                    return _groupService.getUserSitesGroups();
550            }
551    
552            @Override
553            public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
554                    long userId, java.lang.String[] classNames,
555                    boolean includeControlPanel, int max)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return _groupService.getUserSitesGroups(userId, classNames,
559                            includeControlPanel, max);
560            }
561    
562            /**
563            * Returns the user's groups &quot;sites&quot; associated with the group
564            * entity class names, including the Control Panel group if the user is
565            * permitted to view the Control Panel.
566            *
567            * <ul>
568            * <li>
569            * Class name &quot;User&quot; includes the user's layout set
570            * group.
571            * </li>
572            * <li>
573            * Class name &quot;Organization&quot; includes the user's
574            * immediate organization groups and inherited organization groups.
575            * </li>
576            * <li>
577            * Class name &quot;Group&quot; includes the user's immediate
578            * organization groups and site groups.
579            * </li>
580            * <li>
581            * A <code>classNames</code>
582            * value of <code>null</code> includes the user's layout set group,
583            * organization groups, inherited organization groups, and site groups.
584            * </li>
585            * </ul>
586            *
587            * @param userId the primary key of the user
588            * @param classNames the group entity class names (optionally
589            <code>null</code>). For more information see {@link
590            #getUserSitesGroups(long, String[], boolean, int)}
591            * @param max the maximum number of groups to return
592            * @return the user's groups &quot;sites&quot;
593            * @throws PortalException if a portal exception occurred
594            * @throws SystemException if a system exception occurred
595            */
596            @Override
597            public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
598                    long userId, java.lang.String[] classNames, int max)
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            com.liferay.portal.kernel.exception.SystemException {
601                    return _groupService.getUserSitesGroups(userId, classNames, max);
602            }
603    
604            /**
605            * Returns the guest or current user's groups &quot;sites&quot; associated
606            * with the group entity class names, including the Control Panel group if
607            * the user is permitted to view the Control Panel.
608            *
609            * <ul>
610            * <li>
611            * Class name &quot;User&quot; includes the user's layout set
612            * group.
613            * </li>
614            * <li>
615            * Class name &quot;Organization&quot; includes the user's
616            * immediate organization groups and inherited organization groups.
617            * </li>
618            * <li>
619            * Class name &quot;Group&quot; includes the user's immediate
620            * organization groups and site groups.
621            * </li>
622            * <li>
623            * A <code>classNames</code>
624            * value of <code>null</code> includes the user's layout set group,
625            * organization groups, inherited organization groups, and site groups.
626            * </li>
627            * </ul>
628            *
629            * @param classNames the group entity class names (optionally
630            <code>null</code>). For more information see {@link
631            #getUserSitesGroups(long, String[], boolean, int)}
632            * @param max the maximum number of groups to return
633            * @return the user's groups &quot;sites&quot;
634            * @throws PortalException if a portal exception occurred
635            * @throws SystemException if a system exception occurred
636            */
637            @Override
638            public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
639                    java.lang.String[] classNames, int max)
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    return _groupService.getUserSitesGroups(classNames, max);
643            }
644    
645            /**
646            * Returns the number of the guest or current user's groups
647            * &quot;sites&quot; associated with the group entity class names, including
648            * the Control Panel group if the user is permitted to view the Control
649            * Panel.
650            *
651            * @return the number of user's groups &quot;sites&quot;
652            * @throws PortalException if a portal exception occurred
653            * @throws SystemException if a system exception occurred
654            */
655            @Override
656            public int getUserSitesGroupsCount()
657                    throws com.liferay.portal.kernel.exception.PortalException,
658                            com.liferay.portal.kernel.exception.SystemException {
659                    return _groupService.getUserSitesGroupsCount();
660            }
661    
662            /**
663            * Returns <code>true</code> if the user is associated with the group,
664            * including the user's inherited organizations and user groups. System and
665            * staged groups are not included.
666            *
667            * @param userId the primary key of the user
668            * @param groupId the primary key of the group
669            * @return <code>true</code> if the user is associated with the group;
670            <code>false</code> otherwise
671            * @throws PortalException if the current user did not have permission to
672            view the user or group members
673            * @throws SystemException if a system exception occurred
674            */
675            @Override
676            public boolean hasUserGroup(long userId, long groupId)
677                    throws com.liferay.portal.kernel.exception.PortalException,
678                            com.liferay.portal.kernel.exception.SystemException {
679                    return _groupService.hasUserGroup(userId, groupId);
680            }
681    
682            @Override
683            public java.util.List<com.liferay.portal.model.Group> search(
684                    long companyId, long[] classNameIds, java.lang.String keywords,
685                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
686                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
687                    throws com.liferay.portal.kernel.exception.PortalException,
688                            com.liferay.portal.kernel.exception.SystemException {
689                    return _groupService.search(companyId, classNameIds, keywords, params,
690                            start, end, obc);
691            }
692    
693            @Override
694            public java.util.List<com.liferay.portal.model.Group> search(
695                    long companyId, long[] classNameIds, java.lang.String name,
696                    java.lang.String description,
697                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
698                    boolean andOperator, int start, int end,
699                    com.liferay.portal.kernel.util.OrderByComparator obc)
700                    throws com.liferay.portal.kernel.exception.PortalException,
701                            com.liferay.portal.kernel.exception.SystemException {
702                    return _groupService.search(companyId, classNameIds, name, description,
703                            params, andOperator, start, end, obc);
704            }
705    
706            /**
707            * Returns an ordered range of all the site groups and organization groups
708            * that match the name and description, optionally including the user's
709            * inherited organization groups and user groups. System and staged groups
710            * are not included.
711            *
712            * <p>
713            * Useful when paginating results. Returns a maximum of <code>end -
714            * start</code> instances. <code>start</code> and <code>end</code> are not
715            * primary keys, they are indexes in the result set. Thus, <code>0</code>
716            * refers to the first result in the set. Setting both <code>start</code>
717            * and <code>end</code> to {@link
718            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
719            * result set.
720            * </p>
721            *
722            * @param companyId the primary key of the company
723            * @param name the group's name (optionally <code>null</code>)
724            * @param description the group's description (optionally
725            <code>null</code>)
726            * @param params the finder params (optionally <code>null</code>). To
727            include the user's inherited organizations and user groups in the
728            search, add entries having &quot;usersGroups&quot; and
729            &quot;inherit&quot; as keys mapped to the the user's ID. For more
730            information see {@link
731            com.liferay.portal.service.persistence.GroupFinder}
732            * @param start the lower bound of the range of groups to return
733            * @param end the upper bound of the range of groups to return (not
734            inclusive)
735            * @return the matching groups ordered by name
736            * @throws PortalException if a portal exception occurred
737            * @throws SystemException if a system exception occurred
738            */
739            @Override
740            public java.util.List<com.liferay.portal.model.Group> search(
741                    long companyId, java.lang.String name, java.lang.String description,
742                    java.lang.String[] params, int start, int end)
743                    throws com.liferay.portal.kernel.exception.PortalException,
744                            com.liferay.portal.kernel.exception.SystemException {
745                    return _groupService.search(companyId, name, description, params,
746                            start, end);
747            }
748    
749            /**
750            * Returns the number of groups and organization groups that match the name
751            * and description, optionally including the user's inherited organizations
752            * and user groups. System and staged groups are not included.
753            *
754            * @param companyId the primary key of the company
755            * @param name the group's name (optionally <code>null</code>)
756            * @param description the group's description (optionally
757            <code>null</code>)
758            * @param params the finder params (optionally <code>null</code>). To
759            include the user's inherited organizations and user groups in the
760            search, add entries having &quot;usersGroups&quot; and
761            &quot;inherit&quot; as keys mapped to the the user's ID. For more
762            information see {@link
763            com.liferay.portal.service.persistence.GroupFinder}
764            * @return the number of matching groups
765            * @throws SystemException if a system exception occurred
766            */
767            @Override
768            public int searchCount(long companyId, java.lang.String name,
769                    java.lang.String description, java.lang.String[] params)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return _groupService.searchCount(companyId, name, description, params);
772            }
773    
774            /**
775            * Sets the groups associated with the role, removing and adding
776            * associations as necessary.
777            *
778            * @param roleId the primary key of the role
779            * @param groupIds the primary keys of the groups
780            * @throws PortalException if the user did not have permission to update
781            update the role
782            * @throws SystemException if a system exception occurred
783            */
784            @Override
785            public void setRoleGroups(long roleId, long[] groupIds)
786                    throws com.liferay.portal.kernel.exception.PortalException,
787                            com.liferay.portal.kernel.exception.SystemException {
788                    _groupService.setRoleGroups(roleId, groupIds);
789            }
790    
791            /**
792            * Removes the groups from the role.
793            *
794            * @param roleId the primary key of the role
795            * @param groupIds the primary keys of the groups
796            * @throws PortalException if the user did not have permission to update the
797            role
798            * @throws SystemException if a system exception occurred
799            */
800            @Override
801            public void unsetRoleGroups(long roleId, long[] groupIds)
802                    throws com.liferay.portal.kernel.exception.PortalException,
803                            com.liferay.portal.kernel.exception.SystemException {
804                    _groupService.unsetRoleGroups(roleId, groupIds);
805            }
806    
807            /**
808            * Updates the group's friendly URL.
809            *
810            * @param groupId the primary key of the group
811            * @param friendlyURL the group's new friendlyURL (optionally
812            <code>null</code>)
813            * @return the group
814            * @throws PortalException if the user did not have permission to update the
815            group, if a group with the primary key could not be found, or if
816            a valid friendly URL could not be created for the group
817            * @throws SystemException if a system exception occurred
818            */
819            @Override
820            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
821                    java.lang.String friendlyURL)
822                    throws com.liferay.portal.kernel.exception.PortalException,
823                            com.liferay.portal.kernel.exception.SystemException {
824                    return _groupService.updateFriendlyURL(groupId, friendlyURL);
825            }
826    
827            /**
828            * Updates the group.
829            *
830            * @param groupId the primary key of the group
831            * @param parentGroupId the primary key of the parent group
832            * @param name the group's new name
833            * @param description the group's new description (optionally
834            <code>null</code>)
835            * @param type the group's new type. For more information see {@link
836            com.liferay.portal.model.GroupConstants}
837            * @param friendlyURL the group's new friendlyURL (optionally
838            <code>null</code>)
839            * @param active whether the group is active
840            * @param serviceContext the service context to be applied (optionally
841            <code>null</code>). Can set the asset category IDs and asset tag
842            names for the group.
843            * @return the group
844            * @throws PortalException if the user did not have permission to update the
845            group, if a group with the primary key could not be found, if the
846            friendly URL was invalid or could one not be created
847            * @throws SystemException if a system exception occurred
848            */
849            @Override
850            public com.liferay.portal.model.Group updateGroup(long groupId,
851                    long parentGroupId, java.lang.String name,
852                    java.lang.String description, int type, boolean manualMembership,
853                    int membershipRestriction, java.lang.String friendlyURL,
854                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
855                    throws com.liferay.portal.kernel.exception.PortalException,
856                            com.liferay.portal.kernel.exception.SystemException {
857                    return _groupService.updateGroup(groupId, parentGroupId, name,
858                            description, type, manualMembership, membershipRestriction,
859                            friendlyURL, active, serviceContext);
860            }
861    
862            /**
863            * Updates the group's type settings.
864            *
865            * @param groupId the primary key of the group
866            * @param typeSettings the group's new type settings (optionally
867            <code>null</code>)
868            * @return the group
869            * @throws PortalException if the user did not have permission to update the
870            group or if a group with the primary key could not be found
871            * @throws SystemException if a system exception occurred
872            */
873            @Override
874            public com.liferay.portal.model.Group updateGroup(long groupId,
875                    java.lang.String typeSettings)
876                    throws com.liferay.portal.kernel.exception.PortalException,
877                            com.liferay.portal.kernel.exception.SystemException {
878                    return _groupService.updateGroup(groupId, typeSettings);
879            }
880    
881            @Override
882            public void updateStagedPortlets(long groupId,
883                    java.util.Map<java.lang.String, java.lang.String> stagedPortletIds)
884                    throws com.liferay.portal.kernel.exception.PortalException,
885                            com.liferay.portal.kernel.exception.SystemException {
886                    _groupService.updateStagedPortlets(groupId, stagedPortletIds);
887            }
888    
889            /**
890             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
891             */
892            public GroupService getWrappedGroupService() {
893                    return _groupService;
894            }
895    
896            /**
897             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
898             */
899            public void setWrappedGroupService(GroupService groupService) {
900                    _groupService = groupService;
901            }
902    
903            @Override
904            public GroupService getWrappedService() {
905                    return _groupService;
906            }
907    
908            @Override
909            public void setWrappedService(GroupService groupService) {
910                    _groupService = groupService;
911            }
912    
913            private GroupService _groupService;
914    }