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            /**
683            * Returns an ordered range of all the site groups and organization groups
684            * that match the name and description, optionally including the user's
685            * inherited organization groups and user groups. System and staged groups
686            * are not included.
687            *
688            * <p>
689            * Useful when paginating results. Returns a maximum of <code>end -
690            * start</code> instances. <code>start</code> and <code>end</code> are not
691            * primary keys, they are indexes in the result set. Thus, <code>0</code>
692            * refers to the first result in the set. Setting both <code>start</code>
693            * and <code>end</code> to {@link
694            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
695            * result set.
696            * </p>
697            *
698            * @param companyId the primary key of the company
699            * @param name the group's name (optionally <code>null</code>)
700            * @param description the group's description (optionally
701            <code>null</code>)
702            * @param params the finder params (optionally <code>null</code>). To
703            include the user's inherited organizations and user groups in the
704            search, add entries having &quot;usersGroups&quot; and
705            &quot;inherit&quot; as keys mapped to the the user's ID. For more
706            information see {@link
707            com.liferay.portal.service.persistence.GroupFinder}
708            * @param start the lower bound of the range of groups to return
709            * @param end the upper bound of the range of groups to return (not
710            inclusive)
711            * @return the matching groups ordered by name
712            * @throws PortalException if a portal exception occurred
713            * @throws SystemException if a system exception occurred
714            */
715            @Override
716            public java.util.List<com.liferay.portal.model.Group> search(
717                    long companyId, java.lang.String name, java.lang.String description,
718                    java.lang.String[] params, int start, int end)
719                    throws com.liferay.portal.kernel.exception.PortalException,
720                            com.liferay.portal.kernel.exception.SystemException {
721                    return _groupService.search(companyId, name, description, params,
722                            start, end);
723            }
724    
725            /**
726            * Returns the number of groups and organization groups that match the name
727            * and description, optionally including the user's inherited organizations
728            * and user groups. System and staged groups are not included.
729            *
730            * @param companyId the primary key of the company
731            * @param name the group's name (optionally <code>null</code>)
732            * @param description the group's description (optionally
733            <code>null</code>)
734            * @param params the finder params (optionally <code>null</code>). To
735            include the user's inherited organizations and user groups in the
736            search, add entries having &quot;usersGroups&quot; and
737            &quot;inherit&quot; as keys mapped to the the user's ID. For more
738            information see {@link
739            com.liferay.portal.service.persistence.GroupFinder}
740            * @return the number of matching groups
741            * @throws SystemException if a system exception occurred
742            */
743            @Override
744            public int searchCount(long companyId, java.lang.String name,
745                    java.lang.String description, java.lang.String[] params)
746                    throws com.liferay.portal.kernel.exception.SystemException {
747                    return _groupService.searchCount(companyId, name, description, params);
748            }
749    
750            /**
751            * Sets the groups associated with the role, removing and adding
752            * associations as necessary.
753            *
754            * @param roleId the primary key of the role
755            * @param groupIds the primary keys of the groups
756            * @throws PortalException if the user did not have permission to update
757            update the role
758            * @throws SystemException if a system exception occurred
759            */
760            @Override
761            public void setRoleGroups(long roleId, long[] groupIds)
762                    throws com.liferay.portal.kernel.exception.PortalException,
763                            com.liferay.portal.kernel.exception.SystemException {
764                    _groupService.setRoleGroups(roleId, groupIds);
765            }
766    
767            /**
768            * Removes the groups from the role.
769            *
770            * @param roleId the primary key of the role
771            * @param groupIds the primary keys of the groups
772            * @throws PortalException if the user did not have permission to update the
773            role
774            * @throws SystemException if a system exception occurred
775            */
776            @Override
777            public void unsetRoleGroups(long roleId, long[] groupIds)
778                    throws com.liferay.portal.kernel.exception.PortalException,
779                            com.liferay.portal.kernel.exception.SystemException {
780                    _groupService.unsetRoleGroups(roleId, groupIds);
781            }
782    
783            /**
784            * Updates the group's friendly URL.
785            *
786            * @param groupId the primary key of the group
787            * @param friendlyURL the group's new friendlyURL (optionally
788            <code>null</code>)
789            * @return the group
790            * @throws PortalException if the user did not have permission to update the
791            group, if a group with the primary key could not be found, or if
792            a valid friendly URL could not be created for the group
793            * @throws SystemException if a system exception occurred
794            */
795            @Override
796            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
797                    java.lang.String friendlyURL)
798                    throws com.liferay.portal.kernel.exception.PortalException,
799                            com.liferay.portal.kernel.exception.SystemException {
800                    return _groupService.updateFriendlyURL(groupId, friendlyURL);
801            }
802    
803            /**
804            * Updates the group.
805            *
806            * @param groupId the primary key of the group
807            * @param parentGroupId the primary key of the parent group
808            * @param name the group's new name
809            * @param description the group's new description (optionally
810            <code>null</code>)
811            * @param type the group's new type. For more information see {@link
812            com.liferay.portal.model.GroupConstants}
813            * @param friendlyURL the group's new friendlyURL (optionally
814            <code>null</code>)
815            * @param active whether the group is active
816            * @param serviceContext the service context to be applied (optionally
817            <code>null</code>). Can set the asset category IDs and asset tag
818            names for the group.
819            * @return the group
820            * @throws PortalException if the user did not have permission to update the
821            group, if a group with the primary key could not be found, if the
822            friendly URL was invalid or could one not be created
823            * @throws SystemException if a system exception occurred
824            */
825            @Override
826            public com.liferay.portal.model.Group updateGroup(long groupId,
827                    long parentGroupId, java.lang.String name,
828                    java.lang.String description, int type, boolean manualMembership,
829                    int membershipRestriction, java.lang.String friendlyURL,
830                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
831                    throws com.liferay.portal.kernel.exception.PortalException,
832                            com.liferay.portal.kernel.exception.SystemException {
833                    return _groupService.updateGroup(groupId, parentGroupId, name,
834                            description, type, manualMembership, membershipRestriction,
835                            friendlyURL, active, serviceContext);
836            }
837    
838            /**
839            * Updates the group's type settings.
840            *
841            * @param groupId the primary key of the group
842            * @param typeSettings the group's new type settings (optionally
843            <code>null</code>)
844            * @return the group
845            * @throws PortalException if the user did not have permission to update the
846            group or if a group with the primary key could not be found
847            * @throws SystemException if a system exception occurred
848            */
849            @Override
850            public com.liferay.portal.model.Group updateGroup(long groupId,
851                    java.lang.String typeSettings)
852                    throws com.liferay.portal.kernel.exception.PortalException,
853                            com.liferay.portal.kernel.exception.SystemException {
854                    return _groupService.updateGroup(groupId, typeSettings);
855            }
856    
857            @Override
858            public void updateStagedPortlets(long groupId,
859                    java.util.Map<java.lang.String, java.lang.String> stagedPortletIds)
860                    throws com.liferay.portal.kernel.exception.PortalException,
861                            com.liferay.portal.kernel.exception.SystemException {
862                    _groupService.updateStagedPortlets(groupId, stagedPortletIds);
863            }
864    
865            /**
866             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
867             */
868            public GroupService getWrappedGroupService() {
869                    return _groupService;
870            }
871    
872            /**
873             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
874             */
875            public void setWrappedGroupService(GroupService groupService) {
876                    _groupService = groupService;
877            }
878    
879            @Override
880            public GroupService getWrappedService() {
881                    return _groupService;
882            }
883    
884            @Override
885            public void setWrappedService(GroupService groupService) {
886                    _groupService = groupService;
887            }
888    
889            private GroupService _groupService;
890    }