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