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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the group remote service. This utility wraps {@link com.liferay.portal.service.impl.GroupServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see GroupService
029     * @see com.liferay.portal.service.base.GroupServiceBaseImpl
030     * @see com.liferay.portal.service.impl.GroupServiceImpl
031     * @generated
032     */
033    public class GroupServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.GroupServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            /**
059            * Adds a group.
060            *
061            * @param parentGroupId the primary key of the parent group
062            * @param liveGroupId the primary key of the live group
063            * @param name the entity's name
064            * @param description the group's description (optionally
065            <code>null</code>)
066            * @param type the group's type. For more information see {@link
067            com.liferay.portal.model.GroupConstants}
068            * @param friendlyURL the group's friendlyURL (optionally
069            <code>null</code>)
070            * @param site whether the group is to be associated with a main site
071            * @param active whether the group is active
072            * @param serviceContext the service context to be applied (optionally
073            <code>null</code>). Can set the asset category IDs and asset tag
074            names for the group, and can set whether the group is for staging
075            * @return the group
076            * @throws PortalException if the user did not have permission to add the
077            group, if a creator could not be found, if the group's
078            information was invalid, if a layout could not be found, or if a
079            valid friendly URL could not be created for the group
080            * @throws SystemException if a system exception occurred
081            */
082            public static com.liferay.portal.model.Group addGroup(long parentGroupId,
083                    long liveGroupId, java.lang.String name, java.lang.String description,
084                    int type, java.lang.String friendlyURL, boolean site, boolean active,
085                    com.liferay.portal.service.ServiceContext serviceContext)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return getService()
089                                       .addGroup(parentGroupId, liveGroupId, name, description,
090                            type, friendlyURL, site, active, serviceContext);
091            }
092    
093            /**
094            * Adds the group using the group default live group ID.
095            *
096            * @param parentGroupId the primary key of the parent group
097            * @param name the entity's name
098            * @param description the group's description (optionally
099            <code>null</code>)
100            * @param type the group's type. For more information see {@link
101            com.liferay.portal.model.GroupConstants}
102            * @param friendlyURL the group's friendlyURL
103            * @param site whether the group is to be associated with a main site
104            * @param active whether the group is active
105            * @param serviceContext the service context to be applied (optionally
106            <code>null</code>). Can set asset category IDs and asset tag
107            names for the group, and can set whether the group is for
108            staging
109            * @return the group
110            * @throws PortalException if the user did not have permission to add
111            the group, if a creator could not be found, if the group's
112            information was invalid, if a layout could not be found, or
113            if a valid friendly URL could not be created for the group
114            * @throws SystemException if a system exception occurred
115            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String,
116            String, int, String, boolean, boolean, ServiceContext)}
117            */
118            public static com.liferay.portal.model.Group addGroup(long parentGroupId,
119                    java.lang.String name, java.lang.String description, int type,
120                    java.lang.String friendlyURL, boolean site, boolean active,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return getService()
125                                       .addGroup(parentGroupId, name, description, type,
126                            friendlyURL, site, active, serviceContext);
127            }
128    
129            /**
130            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, String,
131            String, int, String, boolean, boolean, ServiceContext)}
132            */
133            public static com.liferay.portal.model.Group addGroup(
134                    java.lang.String name, java.lang.String description, int type,
135                    java.lang.String friendlyURL, boolean site, boolean active,
136                    com.liferay.portal.service.ServiceContext serviceContext)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return getService()
140                                       .addGroup(name, description, type, friendlyURL, site,
141                            active, serviceContext);
142            }
143    
144            /**
145            * Adds the groups to the role.
146            *
147            * @param roleId the primary key of the role
148            * @param groupIds the primary keys of the groups
149            * @throws PortalException if the user did not have permission to update the
150            role
151            * @throws SystemException if a system exception occurred
152            */
153            public static void addRoleGroups(long roleId, long[] groupIds)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    getService().addRoleGroups(roleId, groupIds);
157            }
158    
159            /**
160            * Checks that the current user is permitted to use the group for Remote
161            * Staging.
162            *
163            * @param groupId the primary key of the group
164            * @throws PortalException if a group with the primary key could not be
165            found, if the current user did not have permission to view the
166            group, or if the group's company was different from the current
167            user's company
168            * @throws SystemException if a system exception occurred
169            */
170            public static void checkRemoteStagingGroup(long groupId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    getService().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            public static void deleteGroup(long groupId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    getService().deleteGroup(groupId);
196            }
197    
198            /**
199            * Returns the group with the primary key.
200            *
201            * @param groupId the primary key of the group
202            * @return the group with the primary key
203            * @throws PortalException if a group with the primary key could not be
204            found or if the current user did not have permission to view the
205            group
206            * @throws SystemException if a system exception occurred
207            */
208            public static com.liferay.portal.model.Group getGroup(long groupId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return getService().getGroup(groupId);
212            }
213    
214            /**
215            * Returns the group with the name.
216            *
217            * @param companyId the primary key of the company
218            * @param name the group's name
219            * @return the group with the name
220            * @throws PortalException if a matching group could not be found or if the
221            current user did not have permission to view the group
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portal.model.Group getGroup(long companyId,
225                    java.lang.String name)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return getService().getGroup(companyId, name);
229            }
230    
231            /**
232            * Returns a range of all the site groups for which the user has control
233            * panel access.
234            *
235            * @param portlets the portlets to manage
236            * @param max the upper bound of the range of groups to consider (not
237            inclusive)
238            * @return the range of site groups for which the user has Control Panel
239            access
240            * @throws PortalException if a portal exception occurred
241            * @throws SystemException if a system exception occurred
242            */
243            public static java.util.List<com.liferay.portal.model.Group> getManageableSites(
244                    java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    return getService().getManageableSites(portlets, max);
248            }
249    
250            /**
251            * Returns the groups associated with the organizations.
252            *
253            * @param organizations the organizations
254            * @return the groups associated with the organizations
255            * @throws PortalException if a portal exception occurred
256            * @throws SystemException if a system exception occurred
257            */
258            public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
259                    java.util.List<com.liferay.portal.model.Organization> organizations)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    return getService().getOrganizationsGroups(organizations);
263            }
264    
265            /**
266            * Returns the group associated with the user.
267            *
268            * @param companyId the primary key of the company
269            * @param userId the primary key of the user
270            * @return the group associated with the user
271            * @throws PortalException if a matching group could not be found or if the
272            current user did not have permission to view the group
273            * @throws SystemException if a system exception occurred
274            */
275            public static com.liferay.portal.model.Group getUserGroup(long companyId,
276                    long userId)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return getService().getUserGroup(companyId, userId);
280            }
281    
282            /**
283            * Returns the groups associated with the user groups.
284            *
285            * @param userGroups the user groups
286            * @return the groups associated with the user groups
287            * @throws PortalException if any one of the user group's group could not be
288            found
289            * @throws SystemException if a system exception occurred
290            */
291            public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
292                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return getService().getUserGroupsGroups(userGroups);
296            }
297    
298            /**
299            * Returns the range of all groups associated with the user's organization
300            * groups, including the ancestors of the organization groups, unless portal
301            * property <code>organizations.membership.strict</code> is set to
302            * <code>true</code>.
303            *
304            * <p>
305            * Useful when paginating results. Returns a maximum of <code>end -
306            * start</code> instances. <code>start</code> and <code>end</code> are not
307            * primary keys, they are indexes in the result set. Thus, <code>0</code>
308            * refers to the first result in the set. Setting both <code>start</code>
309            * and <code>end</code> to {@link
310            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
311            * result set.
312            * </p>
313            *
314            * @param userId the primary key of the user
315            * @param start the lower bound of the range of groups to consider
316            * @param end the upper bound of the range of groups to consider (not
317            inclusive)
318            * @return the range of groups associated with the user's organizations
319            * @throws PortalException if a user with the primary key could not be found
320            or if another portal exception occurred
321            * @throws SystemException if a system exception occurred
322            */
323            public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
324                    long userId, int start, int end)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return getService().getUserOrganizationsGroups(userId, start, end);
328            }
329    
330            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
331                    long userId, java.lang.String[] classNames,
332                    boolean includeControlPanel, int max)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return getService()
336                                       .getUserPlaces(userId, classNames, includeControlPanel, max);
337            }
338    
339            /**
340            * Returns the user's group &quot;places&quot; associated with the group
341            * entity class names, including the Control Panel group if the user is
342            * permitted to view the Control Panel.
343            *
344            * <ul>
345            * <li>
346            * Class name &quot;User&quot; includes the user's layout set
347            * group.
348            * </li>
349            * <li>
350            * Class name &quot;Organization&quot; includes the user's
351            * immediate organization groups and inherited organization groups.
352            * </li>
353            * <li>
354            * Class name &quot;Group&quot; includes the user's immediate
355            * organization groups and site groups.
356            * </li>
357            * <li>
358            * A <code>classNames</code>
359            * value of <code>null</code> includes the user's layout set group,
360            * organization groups, inherited organization groups, and site groups.
361            * </li>
362            * </ul>
363            *
364            * @param userId the primary key of the user
365            * @param classNames the group entity class names (optionally
366            <code>null</code>). For more information see {@link
367            #getUserPlaces(long, String[], int)}
368            * @param max the maximum number of groups to return
369            * @return the user's group &quot;places&quot;
370            * @throws PortalException if a portal exception occurred
371            * @throws SystemException if a system exception occurred
372            */
373            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
374                    long userId, java.lang.String[] classNames, int max)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return getService().getUserPlaces(userId, classNames, max);
378            }
379    
380            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
381                    long userId, java.lang.String[] classNames, java.lang.String name,
382                    boolean active, boolean includeControlPanel, int start, int end)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException {
385                    return getService()
386                                       .getUserPlaces(userId, classNames, name, active,
387                            includeControlPanel, start, end);
388            }
389    
390            /**
391            * Returns the guest or current user's group &quot;places&quot; associated
392            * with the group entity class names, including the Control Panel group if
393            * the user is permitted to view the Control Panel.
394            *
395            * <ul>
396            * <li>
397            * Class name &quot;User&quot; includes the user's layout set
398            * group.
399            * </li>
400            * <li>
401            * Class name &quot;Organization&quot; includes the user's
402            * immediate organization groups and inherited organization groups.
403            * </li>
404            * <li>
405            * Class name &quot;Group&quot; includes the user's immediate
406            * organization groups and site groups.
407            * </li>
408            * <li>
409            * A <code>classNames</code>
410            * value of <code>null</code> includes the user's layout set group,
411            * organization groups, inherited organization groups, and site groups.
412            * </li>
413            * </ul>
414            *
415            * @param classNames the group entity class names (optionally
416            <code>null</code>). For more information see {@link
417            #getUserPlaces(String[], int)}
418            * @param max the maximum number of groups to return
419            * @return the user's group &quot;places&quot;
420            * @throws PortalException if a portal exception occurred
421            * @throws SystemException if a system exception occurred
422            */
423            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
424                    java.lang.String[] classNames, int max)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException {
427                    return getService().getUserPlaces(classNames, max);
428            }
429    
430            /**
431            * Returns the number of the guest or current user's group
432            * &quot;places&quot; associated with the group entity class names,
433            * including the Control Panel group if the user is permitted to view the
434            * Control Panel.
435            *
436            * @return the number of user's group &quot;places&quot;
437            * @throws PortalException if a portal exception occurred
438            * @throws SystemException if a system exception occurred
439            */
440            public static int getUserPlacesCount()
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    return getService().getUserPlacesCount();
444            }
445    
446            /**
447            * Returns the guest or current user's layout set group, organization
448            * groups, inherited organization groups, and site groups.
449            *
450            * @return the user's layout set group, organization groups, and inherited
451            organization groups, and site groups
452            * @throws PortalException if a portal exception occurred
453            * @throws SystemException if a system exception occurred
454            */
455            public static java.util.List<com.liferay.portal.model.Group> getUserSites()
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    return getService().getUserSites();
459            }
460    
461            /**
462            * Returns <code>true</code> if the user is associated with the group,
463            * including the user's inherited organizations and user groups. System and
464            * staged groups are not included.
465            *
466            * @param userId the primary key of the user
467            * @param groupId the primary key of the group
468            * @return <code>true</code> if the user is associated with the group;
469            <code>false</code> otherwise
470            * @throws PortalException if the current user did not have permission to
471            view the user or group members
472            * @throws SystemException if a system exception occurred
473            */
474            public static boolean hasUserGroup(long userId, long groupId)
475                    throws com.liferay.portal.kernel.exception.PortalException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    return getService().hasUserGroup(userId, groupId);
478            }
479    
480            /**
481            * Returns an ordered range of all the site groups and organization groups
482            * that match the name and description, optionally including the user's
483            * inherited organization groups and user groups. System and staged groups
484            * are not included.
485            *
486            * <p>
487            * Useful when paginating results. Returns a maximum of <code>end -
488            * start</code> instances. <code>start</code> and <code>end</code> are not
489            * primary keys, they are indexes in the result set. Thus, <code>0</code>
490            * refers to the first result in the set. Setting both <code>start</code>
491            * and <code>end</code> to {@link
492            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
493            * result set.
494            * </p>
495            *
496            * @param companyId the primary key of the company
497            * @param name the group's name (optionally <code>null</code>)
498            * @param description the group's description (optionally
499            <code>null</code>)
500            * @param params the finder params (optionally <code>null</code>). To
501            include the user's inherited organizations and user groups in the
502            search, add entries having &quot;usersGroups&quot; and
503            &quot;inherit&quot; as keys mapped to the the user's ID. For more
504            information see {@link
505            com.liferay.portal.service.persistence.GroupFinder}
506            * @param start the lower bound of the range of groups to return
507            * @param end the upper bound of the range of groups to return (not
508            inclusive)
509            * @return the matching groups ordered by name
510            * @throws PortalException if a portal exception occurred
511            * @throws SystemException if a system exception occurred
512            */
513            public static java.util.List<com.liferay.portal.model.Group> search(
514                    long companyId, java.lang.String name, java.lang.String description,
515                    java.lang.String[] params, int start, int end)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException {
518                    return getService()
519                                       .search(companyId, name, description, params, start, end);
520            }
521    
522            /**
523            * Returns the number of groups and organization groups that match the name
524            * and description, optionally including the user's inherited organizations
525            * and user groups. System and staged groups are not included.
526            *
527            * @param companyId the primary key of the company
528            * @param name the group's name (optionally <code>null</code>)
529            * @param description the group's description (optionally
530            <code>null</code>)
531            * @param params the finder params (optionally <code>null</code>). To
532            include the user's inherited organizations and user groups in the
533            search, add entries having &quot;usersGroups&quot; and
534            &quot;inherit&quot; as keys mapped to the the user's ID. For more
535            information see {@link
536            com.liferay.portal.service.persistence.GroupFinder}
537            * @return the number of matching groups
538            * @throws SystemException if a system exception occurred
539            */
540            public static int searchCount(long companyId, java.lang.String name,
541                    java.lang.String description, java.lang.String[] params)
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    return getService().searchCount(companyId, name, description, params);
544            }
545    
546            /**
547            * Sets the groups associated with the role, removing and adding
548            * associations as necessary.
549            *
550            * @param roleId the primary key of the role
551            * @param groupIds the primary keys of the groups
552            * @throws PortalException if the user did not have permission to update
553            update the role
554            * @throws SystemException if a system exception occurred
555            */
556            public static void setRoleGroups(long roleId, long[] groupIds)
557                    throws com.liferay.portal.kernel.exception.PortalException,
558                            com.liferay.portal.kernel.exception.SystemException {
559                    getService().setRoleGroups(roleId, groupIds);
560            }
561    
562            /**
563            * Removes the groups from the role.
564            *
565            * @param roleId the primary key of the role
566            * @param groupIds the primary keys of the groups
567            * @throws PortalException if the user did not have permission to update the
568            role
569            * @throws SystemException if a system exception occurred
570            */
571            public static void unsetRoleGroups(long roleId, long[] groupIds)
572                    throws com.liferay.portal.kernel.exception.PortalException,
573                            com.liferay.portal.kernel.exception.SystemException {
574                    getService().unsetRoleGroups(roleId, groupIds);
575            }
576    
577            /**
578            * Updates the group's friendly URL.
579            *
580            * @param groupId the primary key of the group
581            * @param friendlyURL the group's new friendlyURL (optionally
582            <code>null</code>)
583            * @return the group
584            * @throws PortalException if the user did not have permission to update the
585            group, if a group with the primary key could not be found, or if
586            a valid friendly URL could not be created for the group
587            * @throws SystemException if a system exception occurred
588            */
589            public static com.liferay.portal.model.Group updateFriendlyURL(
590                    long groupId, java.lang.String friendlyURL)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException {
593                    return getService().updateFriendlyURL(groupId, friendlyURL);
594            }
595    
596            /**
597            * Updates the group.
598            *
599            * @param groupId the primary key of the group
600            * @param parentGroupId the primary key of the parent group
601            * @param name the group's new name
602            * @param description the group's new description (optionally
603            <code>null</code>)
604            * @param type the group's new type. For more information see {@link
605            com.liferay.portal.model.GroupConstants}
606            * @param friendlyURL the group's new friendlyURL (optionally
607            <code>null</code>)
608            * @param active whether the group is active
609            * @param serviceContext the service context to be applied (optionally
610            <code>null</code>). Can set the asset category IDs and asset tag
611            names for the group.
612            * @return the group
613            * @throws PortalException if the user did not have permission to update the
614            group, if a group with the primary key could not be found, if the
615            friendly URL was invalid or could one not be created
616            * @throws SystemException if a system exception occurred
617            */
618            public static com.liferay.portal.model.Group updateGroup(long groupId,
619                    long parentGroupId, java.lang.String name,
620                    java.lang.String description, int type, java.lang.String friendlyURL,
621                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
622                    throws com.liferay.portal.kernel.exception.PortalException,
623                            com.liferay.portal.kernel.exception.SystemException {
624                    return getService()
625                                       .updateGroup(groupId, parentGroupId, name, description,
626                            type, friendlyURL, active, serviceContext);
627            }
628    
629            /**
630            * Updates the group's type settings.
631            *
632            * @param groupId the primary key of the group
633            * @param typeSettings the group's new type settings (optionally
634            <code>null</code>)
635            * @return the group
636            * @throws PortalException if the user did not have permission to update the
637            group or if a group with the primary key could not be found
638            * @throws SystemException if a system exception occurred
639            */
640            public static com.liferay.portal.model.Group updateGroup(long groupId,
641                    java.lang.String typeSettings)
642                    throws com.liferay.portal.kernel.exception.PortalException,
643                            com.liferay.portal.kernel.exception.SystemException {
644                    return getService().updateGroup(groupId, typeSettings);
645            }
646    
647            public static GroupService getService() {
648                    if (_service == null) {
649                            _service = (GroupService)PortalBeanLocatorUtil.locate(GroupService.class.getName());
650    
651                            ReferenceRegistry.registerReference(GroupServiceUtil.class,
652                                    "_service");
653                    }
654    
655                    return _service;
656            }
657    
658            /**
659             * @deprecated As of 6.2.0
660             */
661            public void setService(GroupService service) {
662            }
663    
664            private static GroupService _service;
665    }