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