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    /**
018     * <p>
019     * This class is a wrapper for {@link GroupLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       GroupLocalService
024     * @generated
025     */
026    public class GroupLocalServiceWrapper implements GroupLocalService,
027            ServiceWrapper<GroupLocalService> {
028            public GroupLocalServiceWrapper(GroupLocalService groupLocalService) {
029                    _groupLocalService = groupLocalService;
030            }
031    
032            /**
033            * Adds the group to the database. Also notifies the appropriate model listeners.
034            *
035            * @param group the group
036            * @return the group that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Group addGroup(
040                    com.liferay.portal.model.Group group)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _groupLocalService.addGroup(group);
043            }
044    
045            /**
046            * Creates a new group with the primary key. Does not add the group to the database.
047            *
048            * @param groupId the primary key for the new group
049            * @return the new group
050            */
051            public com.liferay.portal.model.Group createGroup(long groupId) {
052                    return _groupLocalService.createGroup(groupId);
053            }
054    
055            /**
056            * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param groupId the primary key of the group
059            * @return the group that was removed
060            * @throws PortalException if a group with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public com.liferay.portal.model.Group deleteGroup(long groupId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _groupLocalService.deleteGroup(groupId);
067            }
068    
069            /**
070            * Deletes the group from the database. Also notifies the appropriate model listeners.
071            *
072            * @param group the group
073            * @return the group that was removed
074            * @throws PortalException
075            * @throws SystemException if a system exception occurred
076            */
077            public com.liferay.portal.model.Group deleteGroup(
078                    com.liferay.portal.model.Group group)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return _groupLocalService.deleteGroup(group);
082            }
083    
084            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
085                    return _groupLocalService.dynamicQuery();
086            }
087    
088            /**
089            * Performs a dynamic query on the database and returns the matching rows.
090            *
091            * @param dynamicQuery the dynamic query
092            * @return the matching rows
093            * @throws SystemException if a system exception occurred
094            */
095            @SuppressWarnings("rawtypes")
096            public java.util.List dynamicQuery(
097                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return _groupLocalService.dynamicQuery(dynamicQuery);
100            }
101    
102            /**
103            * Performs a dynamic query on the database and returns a range of the matching rows.
104            *
105            * <p>
106            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
107            * </p>
108            *
109            * @param dynamicQuery the dynamic query
110            * @param start the lower bound of the range of model instances
111            * @param end the upper bound of the range of model instances (not inclusive)
112            * @return the range of matching rows
113            * @throws SystemException if a system exception occurred
114            */
115            @SuppressWarnings("rawtypes")
116            public java.util.List dynamicQuery(
117                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
118                    int end) throws com.liferay.portal.kernel.exception.SystemException {
119                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end);
120            }
121    
122            /**
123            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
124            *
125            * <p>
126            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
127            * </p>
128            *
129            * @param dynamicQuery the dynamic query
130            * @param start the lower bound of the range of model instances
131            * @param end the upper bound of the range of model instances (not inclusive)
132            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
133            * @return the ordered range of matching rows
134            * @throws SystemException if a system exception occurred
135            */
136            @SuppressWarnings("rawtypes")
137            public java.util.List dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end,
143                            orderByComparator);
144            }
145    
146            /**
147            * Returns the number of rows that match the dynamic query.
148            *
149            * @param dynamicQuery the dynamic query
150            * @return the number of rows that match the dynamic query
151            * @throws SystemException if a system exception occurred
152            */
153            public long dynamicQueryCount(
154                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _groupLocalService.dynamicQueryCount(dynamicQuery);
157            }
158    
159            public com.liferay.portal.model.Group fetchGroup(long groupId)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _groupLocalService.fetchGroup(groupId);
162            }
163    
164            /**
165            * Returns the group with the primary key.
166            *
167            * @param groupId the primary key of the group
168            * @return the group
169            * @throws PortalException if a group with the primary key could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public com.liferay.portal.model.Group getGroup(long groupId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _groupLocalService.getGroup(groupId);
176            }
177    
178            public com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _groupLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the groups.
187            *
188            * <p>
189            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
190            * </p>
191            *
192            * @param start the lower bound of the range of groups
193            * @param end the upper bound of the range of groups (not inclusive)
194            * @return the range of groups
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
198                    int end) throws com.liferay.portal.kernel.exception.SystemException {
199                    return _groupLocalService.getGroups(start, end);
200            }
201    
202            /**
203            * Returns the number of groups.
204            *
205            * @return the number of groups
206            * @throws SystemException if a system exception occurred
207            */
208            public int getGroupsCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _groupLocalService.getGroupsCount();
211            }
212    
213            /**
214            * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param group the group
217            * @return the group that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.Group updateGroup(
221                    com.liferay.portal.model.Group group)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _groupLocalService.updateGroup(group);
224            }
225    
226            /**
227            * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param group the group
230            * @param merge whether to merge the group with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
231            * @return the group that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.Group updateGroup(
235                    com.liferay.portal.model.Group group, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _groupLocalService.updateGroup(group, merge);
238            }
239    
240            /**
241            * @throws SystemException if a system exception occurred
242            */
243            public void addOrganizationGroup(long organizationId, long groupId)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    _groupLocalService.addOrganizationGroup(organizationId, groupId);
246            }
247    
248            /**
249            * @throws SystemException if a system exception occurred
250            */
251            public void addOrganizationGroup(long organizationId,
252                    com.liferay.portal.model.Group group)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    _groupLocalService.addOrganizationGroup(organizationId, group);
255            }
256    
257            /**
258            * @throws SystemException if a system exception occurred
259            */
260            public void addOrganizationGroups(long organizationId, long[] groupIds)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    _groupLocalService.addOrganizationGroups(organizationId, groupIds);
263            }
264    
265            /**
266            * @throws SystemException if a system exception occurred
267            */
268            public void addOrganizationGroups(long organizationId,
269                    java.util.List<com.liferay.portal.model.Group> Groups)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    _groupLocalService.addOrganizationGroups(organizationId, Groups);
272            }
273    
274            /**
275            * @throws SystemException if a system exception occurred
276            */
277            public void clearOrganizationGroups(long organizationId)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _groupLocalService.clearOrganizationGroups(organizationId);
280            }
281    
282            /**
283            * @throws SystemException if a system exception occurred
284            */
285            public void deleteOrganizationGroup(long organizationId, long groupId)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    _groupLocalService.deleteOrganizationGroup(organizationId, groupId);
288            }
289    
290            /**
291            * @throws SystemException if a system exception occurred
292            */
293            public void deleteOrganizationGroup(long organizationId,
294                    com.liferay.portal.model.Group group)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    _groupLocalService.deleteOrganizationGroup(organizationId, group);
297            }
298    
299            /**
300            * @throws SystemException if a system exception occurred
301            */
302            public void deleteOrganizationGroups(long organizationId, long[] groupIds)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    _groupLocalService.deleteOrganizationGroups(organizationId, groupIds);
305            }
306    
307            /**
308            * @throws SystemException if a system exception occurred
309            */
310            public void deleteOrganizationGroups(long organizationId,
311                    java.util.List<com.liferay.portal.model.Group> Groups)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    _groupLocalService.deleteOrganizationGroups(organizationId, Groups);
314            }
315    
316            /**
317            * @throws SystemException if a system exception occurred
318            */
319            public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups(
320                    long organizationId)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _groupLocalService.getOrganizationGroups(organizationId);
323            }
324    
325            /**
326            * @throws SystemException if a system exception occurred
327            */
328            public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups(
329                    long organizationId, int start, int end)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _groupLocalService.getOrganizationGroups(organizationId, start,
332                            end);
333            }
334    
335            /**
336            * @throws SystemException if a system exception occurred
337            */
338            public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups(
339                    long organizationId, int start, int end,
340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return _groupLocalService.getOrganizationGroups(organizationId, start,
343                            end, orderByComparator);
344            }
345    
346            /**
347            * @throws SystemException if a system exception occurred
348            */
349            public int getOrganizationGroupsCount(long organizationId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _groupLocalService.getOrganizationGroupsCount(organizationId);
352            }
353    
354            /**
355            * @throws SystemException if a system exception occurred
356            */
357            public boolean hasOrganizationGroup(long organizationId, long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _groupLocalService.hasOrganizationGroup(organizationId, groupId);
360            }
361    
362            /**
363            * @throws SystemException if a system exception occurred
364            */
365            public boolean hasOrganizationGroups(long organizationId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _groupLocalService.hasOrganizationGroups(organizationId);
368            }
369    
370            /**
371            * @throws SystemException if a system exception occurred
372            */
373            public void setOrganizationGroups(long organizationId, long[] groupIds)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    _groupLocalService.setOrganizationGroups(organizationId, groupIds);
376            }
377    
378            /**
379            * @throws SystemException if a system exception occurred
380            */
381            public void addPermissionGroup(long permissionId, long groupId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    _groupLocalService.addPermissionGroup(permissionId, groupId);
384            }
385    
386            /**
387            * @throws SystemException if a system exception occurred
388            */
389            public void addPermissionGroup(long permissionId,
390                    com.liferay.portal.model.Group group)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    _groupLocalService.addPermissionGroup(permissionId, group);
393            }
394    
395            /**
396            * @throws SystemException if a system exception occurred
397            */
398            public void addPermissionGroups(long permissionId, long[] groupIds)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    _groupLocalService.addPermissionGroups(permissionId, groupIds);
401            }
402    
403            /**
404            * @throws SystemException if a system exception occurred
405            */
406            public void addPermissionGroups(long permissionId,
407                    java.util.List<com.liferay.portal.model.Group> Groups)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    _groupLocalService.addPermissionGroups(permissionId, Groups);
410            }
411    
412            /**
413            * @throws SystemException if a system exception occurred
414            */
415            public void clearPermissionGroups(long permissionId)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    _groupLocalService.clearPermissionGroups(permissionId);
418            }
419    
420            /**
421            * @throws SystemException if a system exception occurred
422            */
423            public void deletePermissionGroup(long permissionId, long groupId)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    _groupLocalService.deletePermissionGroup(permissionId, groupId);
426            }
427    
428            /**
429            * @throws SystemException if a system exception occurred
430            */
431            public void deletePermissionGroup(long permissionId,
432                    com.liferay.portal.model.Group group)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    _groupLocalService.deletePermissionGroup(permissionId, group);
435            }
436    
437            /**
438            * @throws SystemException if a system exception occurred
439            */
440            public void deletePermissionGroups(long permissionId, long[] groupIds)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    _groupLocalService.deletePermissionGroups(permissionId, groupIds);
443            }
444    
445            /**
446            * @throws SystemException if a system exception occurred
447            */
448            public void deletePermissionGroups(long permissionId,
449                    java.util.List<com.liferay.portal.model.Group> Groups)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    _groupLocalService.deletePermissionGroups(permissionId, Groups);
452            }
453    
454            /**
455            * @throws SystemException if a system exception occurred
456            */
457            public java.util.List<com.liferay.portal.model.Group> getPermissionGroups(
458                    long permissionId)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return _groupLocalService.getPermissionGroups(permissionId);
461            }
462    
463            /**
464            * @throws SystemException if a system exception occurred
465            */
466            public java.util.List<com.liferay.portal.model.Group> getPermissionGroups(
467                    long permissionId, int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    return _groupLocalService.getPermissionGroups(permissionId, start, end);
470            }
471    
472            /**
473            * @throws SystemException if a system exception occurred
474            */
475            public java.util.List<com.liferay.portal.model.Group> getPermissionGroups(
476                    long permissionId, int start, int end,
477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    return _groupLocalService.getPermissionGroups(permissionId, start, end,
480                            orderByComparator);
481            }
482    
483            /**
484            * @throws SystemException if a system exception occurred
485            */
486            public int getPermissionGroupsCount(long permissionId)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return _groupLocalService.getPermissionGroupsCount(permissionId);
489            }
490    
491            /**
492            * @throws SystemException if a system exception occurred
493            */
494            public boolean hasPermissionGroup(long permissionId, long groupId)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return _groupLocalService.hasPermissionGroup(permissionId, groupId);
497            }
498    
499            /**
500            * @throws SystemException if a system exception occurred
501            */
502            public boolean hasPermissionGroups(long permissionId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return _groupLocalService.hasPermissionGroups(permissionId);
505            }
506    
507            /**
508            * @throws SystemException if a system exception occurred
509            */
510            public void setPermissionGroups(long permissionId, long[] groupIds)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    _groupLocalService.setPermissionGroups(permissionId, groupIds);
513            }
514    
515            /**
516            * @throws SystemException if a system exception occurred
517            */
518            public void addRoleGroup(long roleId, long groupId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    _groupLocalService.addRoleGroup(roleId, groupId);
521            }
522    
523            /**
524            * @throws SystemException if a system exception occurred
525            */
526            public void addRoleGroup(long roleId, com.liferay.portal.model.Group group)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    _groupLocalService.addRoleGroup(roleId, group);
529            }
530    
531            /**
532            * @throws SystemException if a system exception occurred
533            */
534            public void addRoleGroups(long roleId, long[] groupIds)
535                    throws com.liferay.portal.kernel.exception.SystemException {
536                    _groupLocalService.addRoleGroups(roleId, groupIds);
537            }
538    
539            /**
540            * @throws SystemException if a system exception occurred
541            */
542            public void addRoleGroups(long roleId,
543                    java.util.List<com.liferay.portal.model.Group> Groups)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    _groupLocalService.addRoleGroups(roleId, Groups);
546            }
547    
548            /**
549            * @throws SystemException if a system exception occurred
550            */
551            public void clearRoleGroups(long roleId)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    _groupLocalService.clearRoleGroups(roleId);
554            }
555    
556            /**
557            * @throws SystemException if a system exception occurred
558            */
559            public void deleteRoleGroup(long roleId, long groupId)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    _groupLocalService.deleteRoleGroup(roleId, groupId);
562            }
563    
564            /**
565            * @throws SystemException if a system exception occurred
566            */
567            public void deleteRoleGroup(long roleId,
568                    com.liferay.portal.model.Group group)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    _groupLocalService.deleteRoleGroup(roleId, group);
571            }
572    
573            /**
574            * @throws SystemException if a system exception occurred
575            */
576            public void deleteRoleGroups(long roleId, long[] groupIds)
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    _groupLocalService.deleteRoleGroups(roleId, groupIds);
579            }
580    
581            /**
582            * @throws SystemException if a system exception occurred
583            */
584            public void deleteRoleGroups(long roleId,
585                    java.util.List<com.liferay.portal.model.Group> Groups)
586                    throws com.liferay.portal.kernel.exception.SystemException {
587                    _groupLocalService.deleteRoleGroups(roleId, Groups);
588            }
589    
590            /**
591            * @throws SystemException if a system exception occurred
592            */
593            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
594                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
595                    return _groupLocalService.getRoleGroups(roleId);
596            }
597    
598            /**
599            * @throws SystemException if a system exception occurred
600            */
601            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
602                    long roleId, int start, int end)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return _groupLocalService.getRoleGroups(roleId, start, end);
605            }
606    
607            /**
608            * @throws SystemException if a system exception occurred
609            */
610            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
611                    long roleId, int start, int end,
612                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return _groupLocalService.getRoleGroups(roleId, start, end,
615                            orderByComparator);
616            }
617    
618            /**
619            * @throws SystemException if a system exception occurred
620            */
621            public int getRoleGroupsCount(long roleId)
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return _groupLocalService.getRoleGroupsCount(roleId);
624            }
625    
626            /**
627            * @throws SystemException if a system exception occurred
628            */
629            public boolean hasRoleGroup(long roleId, long groupId)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    return _groupLocalService.hasRoleGroup(roleId, groupId);
632            }
633    
634            /**
635            * @throws SystemException if a system exception occurred
636            */
637            public boolean hasRoleGroups(long roleId)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    return _groupLocalService.hasRoleGroups(roleId);
640            }
641    
642            /**
643            * @throws SystemException if a system exception occurred
644            */
645            public void setRoleGroups(long roleId, long[] groupIds)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    _groupLocalService.setRoleGroups(roleId, groupIds);
648            }
649    
650            /**
651            * @throws SystemException if a system exception occurred
652            */
653            public void addUserGroupGroup(long userGroupId, long groupId)
654                    throws com.liferay.portal.kernel.exception.SystemException {
655                    _groupLocalService.addUserGroupGroup(userGroupId, groupId);
656            }
657    
658            /**
659            * @throws SystemException if a system exception occurred
660            */
661            public void addUserGroupGroup(long userGroupId,
662                    com.liferay.portal.model.Group group)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    _groupLocalService.addUserGroupGroup(userGroupId, group);
665            }
666    
667            /**
668            * @throws SystemException if a system exception occurred
669            */
670            public void addUserGroupGroups(long userGroupId, long[] groupIds)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    _groupLocalService.addUserGroupGroups(userGroupId, groupIds);
673            }
674    
675            /**
676            * @throws SystemException if a system exception occurred
677            */
678            public void addUserGroupGroups(long userGroupId,
679                    java.util.List<com.liferay.portal.model.Group> Groups)
680                    throws com.liferay.portal.kernel.exception.SystemException {
681                    _groupLocalService.addUserGroupGroups(userGroupId, Groups);
682            }
683    
684            /**
685            * @throws SystemException if a system exception occurred
686            */
687            public void clearUserGroupGroups(long userGroupId)
688                    throws com.liferay.portal.kernel.exception.SystemException {
689                    _groupLocalService.clearUserGroupGroups(userGroupId);
690            }
691    
692            /**
693            * @throws SystemException if a system exception occurred
694            */
695            public void deleteUserGroupGroup(long userGroupId, long groupId)
696                    throws com.liferay.portal.kernel.exception.SystemException {
697                    _groupLocalService.deleteUserGroupGroup(userGroupId, groupId);
698            }
699    
700            /**
701            * @throws SystemException if a system exception occurred
702            */
703            public void deleteUserGroupGroup(long userGroupId,
704                    com.liferay.portal.model.Group group)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    _groupLocalService.deleteUserGroupGroup(userGroupId, group);
707            }
708    
709            /**
710            * @throws SystemException if a system exception occurred
711            */
712            public void deleteUserGroupGroups(long userGroupId, long[] groupIds)
713                    throws com.liferay.portal.kernel.exception.SystemException {
714                    _groupLocalService.deleteUserGroupGroups(userGroupId, groupIds);
715            }
716    
717            /**
718            * @throws SystemException if a system exception occurred
719            */
720            public void deleteUserGroupGroups(long userGroupId,
721                    java.util.List<com.liferay.portal.model.Group> Groups)
722                    throws com.liferay.portal.kernel.exception.SystemException {
723                    _groupLocalService.deleteUserGroupGroups(userGroupId, Groups);
724            }
725    
726            /**
727            * @throws SystemException if a system exception occurred
728            */
729            public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups(
730                    long userGroupId)
731                    throws com.liferay.portal.kernel.exception.SystemException {
732                    return _groupLocalService.getUserGroupGroups(userGroupId);
733            }
734    
735            /**
736            * @throws SystemException if a system exception occurred
737            */
738            public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups(
739                    long userGroupId, int start, int end)
740                    throws com.liferay.portal.kernel.exception.SystemException {
741                    return _groupLocalService.getUserGroupGroups(userGroupId, start, end);
742            }
743    
744            /**
745            * @throws SystemException if a system exception occurred
746            */
747            public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups(
748                    long userGroupId, int start, int end,
749                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
750                    throws com.liferay.portal.kernel.exception.SystemException {
751                    return _groupLocalService.getUserGroupGroups(userGroupId, start, end,
752                            orderByComparator);
753            }
754    
755            /**
756            * @throws SystemException if a system exception occurred
757            */
758            public int getUserGroupGroupsCount(long userGroupId)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return _groupLocalService.getUserGroupGroupsCount(userGroupId);
761            }
762    
763            /**
764            * @throws SystemException if a system exception occurred
765            */
766            public boolean hasUserGroupGroup(long userGroupId, long groupId)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    return _groupLocalService.hasUserGroupGroup(userGroupId, groupId);
769            }
770    
771            /**
772            * @throws SystemException if a system exception occurred
773            */
774            public boolean hasUserGroupGroups(long userGroupId)
775                    throws com.liferay.portal.kernel.exception.SystemException {
776                    return _groupLocalService.hasUserGroupGroups(userGroupId);
777            }
778    
779            /**
780            * @throws SystemException if a system exception occurred
781            */
782            public void setUserGroupGroups(long userGroupId, long[] groupIds)
783                    throws com.liferay.portal.kernel.exception.SystemException {
784                    _groupLocalService.setUserGroupGroups(userGroupId, groupIds);
785            }
786    
787            /**
788            * @throws SystemException if a system exception occurred
789            */
790            public void addUserGroup(long userId, long groupId)
791                    throws com.liferay.portal.kernel.exception.SystemException {
792                    _groupLocalService.addUserGroup(userId, groupId);
793            }
794    
795            /**
796            * @throws SystemException if a system exception occurred
797            */
798            public void addUserGroup(long userId, com.liferay.portal.model.Group group)
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    _groupLocalService.addUserGroup(userId, group);
801            }
802    
803            /**
804            * @throws SystemException if a system exception occurred
805            */
806            public void addUserGroups(long userId, long[] groupIds)
807                    throws com.liferay.portal.kernel.exception.SystemException {
808                    _groupLocalService.addUserGroups(userId, groupIds);
809            }
810    
811            /**
812            * @throws SystemException if a system exception occurred
813            */
814            public void addUserGroups(long userId,
815                    java.util.List<com.liferay.portal.model.Group> Groups)
816                    throws com.liferay.portal.kernel.exception.SystemException {
817                    _groupLocalService.addUserGroups(userId, Groups);
818            }
819    
820            /**
821            * @throws SystemException if a system exception occurred
822            */
823            public void clearUserGroups(long userId)
824                    throws com.liferay.portal.kernel.exception.SystemException {
825                    _groupLocalService.clearUserGroups(userId);
826            }
827    
828            /**
829            * @throws SystemException if a system exception occurred
830            */
831            public void deleteUserGroup(long userId, long groupId)
832                    throws com.liferay.portal.kernel.exception.SystemException {
833                    _groupLocalService.deleteUserGroup(userId, groupId);
834            }
835    
836            /**
837            * @throws SystemException if a system exception occurred
838            */
839            public void deleteUserGroup(long userId,
840                    com.liferay.portal.model.Group group)
841                    throws com.liferay.portal.kernel.exception.SystemException {
842                    _groupLocalService.deleteUserGroup(userId, group);
843            }
844    
845            /**
846            * @throws SystemException if a system exception occurred
847            */
848            public void deleteUserGroups(long userId, long[] groupIds)
849                    throws com.liferay.portal.kernel.exception.SystemException {
850                    _groupLocalService.deleteUserGroups(userId, groupIds);
851            }
852    
853            /**
854            * @throws SystemException if a system exception occurred
855            */
856            public void deleteUserGroups(long userId,
857                    java.util.List<com.liferay.portal.model.Group> Groups)
858                    throws com.liferay.portal.kernel.exception.SystemException {
859                    _groupLocalService.deleteUserGroups(userId, Groups);
860            }
861    
862            /**
863            * @throws PortalException
864            * @throws SystemException if a system exception occurred
865            */
866            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
867                    long userId)
868                    throws com.liferay.portal.kernel.exception.PortalException,
869                            com.liferay.portal.kernel.exception.SystemException {
870                    return _groupLocalService.getUserGroups(userId);
871            }
872    
873            /**
874            * @throws PortalException
875            * @throws SystemException if a system exception occurred
876            */
877            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
878                    long userId, int start, int end)
879                    throws com.liferay.portal.kernel.exception.PortalException,
880                            com.liferay.portal.kernel.exception.SystemException {
881                    return _groupLocalService.getUserGroups(userId, start, end);
882            }
883    
884            /**
885            * @throws PortalException
886            * @throws SystemException if a system exception occurred
887            */
888            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
889                    long userId, int start, int end,
890                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
891                    throws com.liferay.portal.kernel.exception.PortalException,
892                            com.liferay.portal.kernel.exception.SystemException {
893                    return _groupLocalService.getUserGroups(userId, start, end,
894                            orderByComparator);
895            }
896    
897            /**
898            * @throws SystemException if a system exception occurred
899            */
900            public int getUserGroupsCount(long userId)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return _groupLocalService.getUserGroupsCount(userId);
903            }
904    
905            /**
906            * @throws SystemException if a system exception occurred
907            */
908            public boolean hasUserGroup(long userId, long groupId)
909                    throws com.liferay.portal.kernel.exception.SystemException {
910                    return _groupLocalService.hasUserGroup(userId, groupId);
911            }
912    
913            /**
914            * @throws SystemException if a system exception occurred
915            */
916            public boolean hasUserGroups(long userId)
917                    throws com.liferay.portal.kernel.exception.SystemException {
918                    return _groupLocalService.hasUserGroups(userId);
919            }
920    
921            /**
922            * @throws SystemException if a system exception occurred
923            */
924            public void setUserGroups(long userId, long[] groupIds)
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    _groupLocalService.setUserGroups(userId, groupIds);
927            }
928    
929            /**
930            * Returns the Spring bean ID for this bean.
931            *
932            * @return the Spring bean ID for this bean
933            */
934            public java.lang.String getBeanIdentifier() {
935                    return _groupLocalService.getBeanIdentifier();
936            }
937    
938            /**
939            * Sets the Spring bean ID for this bean.
940            *
941            * @param beanIdentifier the Spring bean ID for this bean
942            */
943            public void setBeanIdentifier(java.lang.String beanIdentifier) {
944                    _groupLocalService.setBeanIdentifier(beanIdentifier);
945            }
946    
947            /**
948            * Adds a group.
949            *
950            * @param userId the primary key of the group's creator/owner
951            * @param className the entity's class name
952            * @param classPK the primary key of the entity's instance
953            * @param liveGroupId the primary key of the live group
954            * @param name the entity's name
955            * @param description the group's description (optionally
956            <code>null</code>)
957            * @param type the group's type. For more information see {@link
958            com.liferay.portal.model.GroupConstants}
959            * @param friendlyURL the group's friendlyURL (optionally
960            <code>null</code>)
961            * @param site whether the group is to be associated with a main site
962            * @param active whether the group is active
963            * @param serviceContext the service context to be applied (optionally
964            <code>null</code>). Can set asset category IDs and asset tag
965            names for the group, and whether the group is for staging.
966            * @return the group
967            * @throws PortalException if a creator could not be found, if the group's
968            information was invalid, if a layout could not be found, or if a
969            valid friendly URL could not be created for the group
970            * @throws SystemException if a system exception occurred
971            */
972            public com.liferay.portal.model.Group addGroup(long userId,
973                    java.lang.String className, long classPK, long liveGroupId,
974                    java.lang.String name, java.lang.String description, int type,
975                    java.lang.String friendlyURL, boolean site, boolean active,
976                    com.liferay.portal.service.ServiceContext serviceContext)
977                    throws com.liferay.portal.kernel.exception.PortalException,
978                            com.liferay.portal.kernel.exception.SystemException {
979                    return _groupLocalService.addGroup(userId, className, classPK,
980                            liveGroupId, name, description, type, friendlyURL, site, active,
981                            serviceContext);
982            }
983    
984            /**
985            * Adds the group using the default live group.
986            *
987            * @param userId the primary key of the group's creator/owner
988            * @param className the entity's class name
989            * @param classPK the primary key of the entity's instance
990            * @param name the entity's name
991            * @param description the group's description (optionally
992            <code>null</code>)
993            * @param type the group's type. For more information see {@link
994            com.liferay.portal.model.GroupConstants}
995            * @param friendlyURL the group's friendlyURL
996            * @param site whether the group is to be associated with a main site
997            * @param active whether the group is active
998            * @param serviceContext the service context to be applied (optionally
999            <code>null</code>). Can set asset category IDs and asset tag
1000            names for the group, and whether the group is for staging.
1001            * @return the group
1002            * @throws PortalException if a creator could not be found, if the group's
1003            information was invalid, if a layout could not be found, or if a
1004            valid friendly URL could not be created for the group
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public com.liferay.portal.model.Group addGroup(long userId,
1008                    java.lang.String className, long classPK, java.lang.String name,
1009                    java.lang.String description, int type, java.lang.String friendlyURL,
1010                    boolean site, boolean active,
1011                    com.liferay.portal.service.ServiceContext serviceContext)
1012                    throws com.liferay.portal.kernel.exception.PortalException,
1013                            com.liferay.portal.kernel.exception.SystemException {
1014                    return _groupLocalService.addGroup(userId, className, classPK, name,
1015                            description, type, friendlyURL, site, active, serviceContext);
1016            }
1017    
1018            /**
1019            * Adds a company group if it does not exist. This method is typically used
1020            * when a virtual host is added.
1021            *
1022            * @param companyId the primary key of the company
1023            * @throws PortalException if a default user for the company could not be
1024            found, if the group's information was invalid, if a layout could
1025            not be found, or if a valid friendly URL could not be created for
1026            the group
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public void checkCompanyGroup(long companyId)
1030                    throws com.liferay.portal.kernel.exception.PortalException,
1031                            com.liferay.portal.kernel.exception.SystemException {
1032                    _groupLocalService.checkCompanyGroup(companyId);
1033            }
1034    
1035            /**
1036            * Creates systems groups and other related data needed by the system on the
1037            * very first startup. Also takes care of creating the control panel groups
1038            * and layouts.
1039            *
1040            * @param companyId the primary key of the company
1041            * @throws PortalException if a new system group could not be created
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public void checkSystemGroups(long companyId)
1045                    throws com.liferay.portal.kernel.exception.PortalException,
1046                            com.liferay.portal.kernel.exception.SystemException {
1047                    _groupLocalService.checkSystemGroups(companyId);
1048            }
1049    
1050            /**
1051            * Returns the group with the matching friendly URL.
1052            *
1053            * @param companyId the primary key of the company
1054            * @param friendlyURL the friendly URL
1055            * @return the group with the friendly URL, or <code>null</code> if a
1056            matching group could not be found
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public com.liferay.portal.model.Group fetchFriendlyURLGroup(
1060                    long companyId, java.lang.String friendlyURL)
1061                    throws com.liferay.portal.kernel.exception.SystemException {
1062                    return _groupLocalService.fetchFriendlyURLGroup(companyId, friendlyURL);
1063            }
1064    
1065            /**
1066            * Returns the group with the matching group name.
1067            *
1068            * @param companyId the primary key of the company
1069            * @param name the group's name
1070            * @return the group with the name and associated company, or
1071            <code>null</code> if a matching group could not be found
1072            * @throws SystemException if a system exception occurred
1073            */
1074            public com.liferay.portal.model.Group fetchGroup(long companyId,
1075                    java.lang.String name)
1076                    throws com.liferay.portal.kernel.exception.SystemException {
1077                    return _groupLocalService.fetchGroup(companyId, name);
1078            }
1079    
1080            /**
1081            * Returns the company group.
1082            *
1083            * @param companyId the primary key of the company
1084            * @return the group associated with the company
1085            * @throws PortalException if a matching group could not be found
1086            * @throws SystemException if a system exception occurred
1087            */
1088            public com.liferay.portal.model.Group getCompanyGroup(long companyId)
1089                    throws com.liferay.portal.kernel.exception.PortalException,
1090                            com.liferay.portal.kernel.exception.SystemException {
1091                    return _groupLocalService.getCompanyGroup(companyId);
1092            }
1093    
1094            /**
1095            * Returns a range of all the groups associated with the company.
1096            *
1097            * <p>
1098            * Useful when paginating results. Returns a maximum of <code>end -
1099            * start</code> instances. <code>start</code> and <code>end</code> are not
1100            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1101            * refers to the first result in the set. Setting both <code>start</code>
1102            * and <code>end</code> to {@link
1103            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1104            * result set.
1105            * </p>
1106            *
1107            * @param companyId the primary key of the company
1108            * @param start the lower bound of the range of groups to return
1109            * @param end the upper bound of the range of groups to return (not
1110            inclusive)
1111            * @return the range of groups associated with the company
1112            * @throws SystemException if a system exception occurred
1113            */
1114            public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
1115                    long companyId, int start, int end)
1116                    throws com.liferay.portal.kernel.exception.SystemException {
1117                    return _groupLocalService.getCompanyGroups(companyId, start, end);
1118            }
1119    
1120            /**
1121            * Returns the number of groups associated with the company.
1122            *
1123            * @param companyId the primary key of the company
1124            * @return the number of groups associated with the company
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public int getCompanyGroupsCount(long companyId)
1128                    throws com.liferay.portal.kernel.exception.SystemException {
1129                    return _groupLocalService.getCompanyGroupsCount(companyId);
1130            }
1131    
1132            /**
1133            * Returns the group with the matching friendly URL.
1134            *
1135            * @param companyId the primary key of the company
1136            * @param friendlyURL the group's friendlyURL
1137            * @return the group with the friendly URL
1138            * @throws PortalException if a matching group could not be found, or if the
1139            friendly URL was invalid
1140            * @throws SystemException if a system exception occurred
1141            */
1142            public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
1143                    java.lang.String friendlyURL)
1144                    throws com.liferay.portal.kernel.exception.PortalException,
1145                            com.liferay.portal.kernel.exception.SystemException {
1146                    return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL);
1147            }
1148    
1149            /**
1150            * Returns the group with the matching group name.
1151            *
1152            * @param companyId the primary key of the company
1153            * @param name the group's name
1154            * @return the group with the name
1155            * @throws PortalException if a matching group could not be found
1156            * @throws SystemException if a system exception occurred
1157            */
1158            public com.liferay.portal.model.Group getGroup(long companyId,
1159                    java.lang.String name)
1160                    throws com.liferay.portal.kernel.exception.PortalException,
1161                            com.liferay.portal.kernel.exception.SystemException {
1162                    return _groupLocalService.getGroup(companyId, name);
1163            }
1164    
1165            public java.lang.String getGroupDescriptiveName(
1166                    com.liferay.portal.model.Group group, java.util.Locale locale)
1167                    throws com.liferay.portal.kernel.exception.PortalException,
1168                            com.liferay.portal.kernel.exception.SystemException {
1169                    return _groupLocalService.getGroupDescriptiveName(group, locale);
1170            }
1171    
1172            public java.lang.String getGroupDescriptiveName(long groupId,
1173                    java.util.Locale locale)
1174                    throws com.liferay.portal.kernel.exception.PortalException,
1175                            com.liferay.portal.kernel.exception.SystemException {
1176                    return _groupLocalService.getGroupDescriptiveName(groupId, locale);
1177            }
1178    
1179            /**
1180            * Returns the groups with the matching primary keys.
1181            *
1182            * @param groupIds the primary keys of the groups
1183            * @return the groups with the primary keys
1184            * @throws PortalException if any one of the groups could not be found
1185            * @throws SystemException if a system exception occurred
1186            */
1187            public java.util.List<com.liferay.portal.model.Group> getGroups(
1188                    long[] groupIds)
1189                    throws com.liferay.portal.kernel.exception.PortalException,
1190                            com.liferay.portal.kernel.exception.SystemException {
1191                    return _groupLocalService.getGroups(groupIds);
1192            }
1193    
1194            /**
1195            * Returns the group associated with the layout.
1196            *
1197            * @param companyId the primary key of the company
1198            * @param plid the primary key of the layout
1199            * @return the group associated with the layout
1200            * @throws PortalException if a matching group could not be found
1201            * @throws SystemException if a system exception occurred
1202            */
1203            public com.liferay.portal.model.Group getLayoutGroup(long companyId,
1204                    long plid)
1205                    throws com.liferay.portal.kernel.exception.PortalException,
1206                            com.liferay.portal.kernel.exception.SystemException {
1207                    return _groupLocalService.getLayoutGroup(companyId, plid);
1208            }
1209    
1210            /**
1211            * Returns the group associated with the layout prototype.
1212            *
1213            * @param companyId the primary key of the company
1214            * @param layoutPrototypeId the primary key of the layout prototype
1215            * @return the group associated with the layout prototype
1216            * @throws PortalException if a matching group could not be found
1217            * @throws SystemException if a system exception occurred
1218            */
1219            public com.liferay.portal.model.Group getLayoutPrototypeGroup(
1220                    long companyId, long layoutPrototypeId)
1221                    throws com.liferay.portal.kernel.exception.PortalException,
1222                            com.liferay.portal.kernel.exception.SystemException {
1223                    return _groupLocalService.getLayoutPrototypeGroup(companyId,
1224                            layoutPrototypeId);
1225            }
1226    
1227            /**
1228            * Returns the group associated with the layout set prototype.
1229            *
1230            * @param companyId the primary key of the company
1231            * @param layoutSetPrototypeId the primary key of the layout set prototype
1232            * @return the group associated with the layout set prototype
1233            * @throws PortalException if a matching group could not be found
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
1237                    long companyId, long layoutSetPrototypeId)
1238                    throws com.liferay.portal.kernel.exception.PortalException,
1239                            com.liferay.portal.kernel.exception.SystemException {
1240                    return _groupLocalService.getLayoutSetPrototypeGroup(companyId,
1241                            layoutSetPrototypeId);
1242            }
1243    
1244            /**
1245            * Returns all live groups.
1246            *
1247            * @return all live groups
1248            * @throws SystemException if a system exception occurred
1249            */
1250            public java.util.List<com.liferay.portal.model.Group> getLiveGroups()
1251                    throws com.liferay.portal.kernel.exception.SystemException {
1252                    return _groupLocalService.getLiveGroups();
1253            }
1254    
1255            /**
1256            * Returns a range of all non-system groups of a specified type (className)
1257            * that have no layouts.
1258            *
1259            * <p>
1260            * Useful when paginating results. Returns a maximum of <code>end -
1261            * start</code> instances. <code>start</code> and <code>end</code> are not
1262            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1263            * refers to the first result in the set. Setting both <code>start</code>
1264            * and <code>end</code> to {@link
1265            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1266            * result set.
1267            * </p>
1268            *
1269            * @param className the entity's class name
1270            * @param privateLayout whether to include groups with private layout sets
1271            or non-private layout sets
1272            * @param start the lower bound of the range of groups to return
1273            * @param end the upper bound of the range of groups to return (not
1274            inclusive)
1275            * @return the range of matching groups
1276            * @throws SystemException if a system exception occurred
1277            */
1278            public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
1279                    java.lang.String className, boolean privateLayout, int start, int end)
1280                    throws com.liferay.portal.kernel.exception.SystemException {
1281                    return _groupLocalService.getNoLayoutsGroups(className, privateLayout,
1282                            start, end);
1283            }
1284    
1285            /**
1286            * Returns all non-system groups having <code>null</code> or empty friendly
1287            * URLs.
1288            *
1289            * @return the non-system groups having <code>null</code> or empty friendly
1290            URLs
1291            * @throws SystemException if a system exception occurred
1292            */
1293            public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
1294                    throws com.liferay.portal.kernel.exception.SystemException {
1295                    return _groupLocalService.getNullFriendlyURLGroups();
1296            }
1297    
1298            /**
1299            * Returns the specified organization group.
1300            *
1301            * @param companyId the primary key of the company
1302            * @param organizationId the primary key of the organization
1303            * @return the group associated with the organization
1304            * @throws PortalException if a matching group could not be found
1305            * @throws SystemException if a system exception occurred
1306            */
1307            public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
1308                    long organizationId)
1309                    throws com.liferay.portal.kernel.exception.PortalException,
1310                            com.liferay.portal.kernel.exception.SystemException {
1311                    return _groupLocalService.getOrganizationGroup(companyId, organizationId);
1312            }
1313    
1314            /**
1315            * Returns the specified organization groups.
1316            *
1317            * @param organizations the organizations
1318            * @return the groups associated with the organizations
1319            */
1320            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
1321                    java.util.List<com.liferay.portal.model.Organization> organizations) {
1322                    return _groupLocalService.getOrganizationsGroups(organizations);
1323            }
1324    
1325            /**
1326            * Returns all the groups related to the organizations.
1327            *
1328            * @param organizations the organizations
1329            * @return the groups related to the organizations
1330            * @throws SystemException if a system exception occurred
1331            */
1332            public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
1333                    java.util.List<com.liferay.portal.model.Organization> organizations)
1334                    throws com.liferay.portal.kernel.exception.SystemException {
1335                    return _groupLocalService.getOrganizationsRelatedGroups(organizations);
1336            }
1337    
1338            /**
1339            * Returns the staging group.
1340            *
1341            * @param liveGroupId the primary key of the live group
1342            * @return the staging group
1343            * @throws PortalException if a matching staging group could not be found
1344            * @throws SystemException if a system exception occurred
1345            */
1346            public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
1347                    throws com.liferay.portal.kernel.exception.PortalException,
1348                            com.liferay.portal.kernel.exception.SystemException {
1349                    return _groupLocalService.getStagingGroup(liveGroupId);
1350            }
1351    
1352            /**
1353            * Returns the group associated with the user.
1354            *
1355            * @param companyId the primary key of the company
1356            * @param userId the primary key of the user
1357            * @return the group associated with the user
1358            * @throws PortalException if a matching group could not be found
1359            * @throws SystemException if a system exception occurred
1360            */
1361            public com.liferay.portal.model.Group getUserGroup(long companyId,
1362                    long userId)
1363                    throws com.liferay.portal.kernel.exception.PortalException,
1364                            com.liferay.portal.kernel.exception.SystemException {
1365                    return _groupLocalService.getUserGroup(companyId, userId);
1366            }
1367    
1368            /**
1369            * Returns the specified "user group" group. That is, the group that
1370            * represents the {@link com.liferay.portal.model.UserGroup} entity.
1371            *
1372            * @param companyId the primary key of the company
1373            * @param userGroupId the primary key of the user group
1374            * @return the group associated with the user group
1375            * @throws PortalException if a matching group could not be found
1376            * @throws SystemException if a system exception occurred
1377            */
1378            public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
1379                    long userGroupId)
1380                    throws com.liferay.portal.kernel.exception.PortalException,
1381                            com.liferay.portal.kernel.exception.SystemException {
1382                    return _groupLocalService.getUserGroupGroup(companyId, userGroupId);
1383            }
1384    
1385            /**
1386            * Returns all the user's site groups and immediate organization groups,
1387            * optionally including the user's inherited organization groups and user
1388            * groups. System and staged groups are not included.
1389            *
1390            * @param userId the primary key of the user
1391            * @param inherit whether to include the user's inherited organization
1392            groups and user groups
1393            * @return the user's groups and immediate organization groups
1394            * @throws PortalException if a user with the primary key could not be found
1395            * @throws SystemException if a system exception occurred
1396            */
1397            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
1398                    long userId, boolean inherit)
1399                    throws com.liferay.portal.kernel.exception.PortalException,
1400                            com.liferay.portal.kernel.exception.SystemException {
1401                    return _groupLocalService.getUserGroups(userId, inherit);
1402            }
1403    
1404            /**
1405            * Returns a name ordered range of all the user's site groups and immediate
1406            * organization groups, optionally including the user's inherited
1407            * organization groups and user groups. System and staged groups are not
1408            * included.
1409            *
1410            * <p>
1411            * Useful when paginating results. Returns a maximum of <code>end -
1412            * start</code> instances. <code>start</code> and <code>end</code> are not
1413            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1414            * refers to the first result in the set. Setting both <code>start</code>
1415            * and <code>end</code> to {@link
1416            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1417            * result set.
1418            * </p>
1419            *
1420            * @param userId the primary key of the user
1421            * @param inherit whether to include the user's inherited organization
1422            groups and user groups
1423            * @param start the lower bound of the range of groups to return
1424            * @param end the upper bound of the range of groups to return (not
1425            inclusive)
1426            * @return the range of the user's groups and immediate organization groups
1427            ordered by name
1428            * @throws PortalException if a user with the primary key could not be found
1429            * @throws SystemException if a system exception occurred
1430            */
1431            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
1432                    long userId, boolean inherit, int start, int end)
1433                    throws com.liferay.portal.kernel.exception.PortalException,
1434                            com.liferay.portal.kernel.exception.SystemException {
1435                    return _groupLocalService.getUserGroups(userId, inherit, start, end);
1436            }
1437    
1438            /**
1439            * Returns the groups associated with the user groups.
1440            *
1441            * @param userGroups the user groups
1442            * @return the groups associated with the user groups
1443            * @throws PortalException if any one of the user group's group could not be
1444            found
1445            * @throws SystemException if a system exception occurred
1446            */
1447            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
1448                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1449                    throws com.liferay.portal.kernel.exception.PortalException,
1450                            com.liferay.portal.kernel.exception.SystemException {
1451                    return _groupLocalService.getUserGroupsGroups(userGroups);
1452            }
1453    
1454            /**
1455            * Returns all the groups related to the user groups.
1456            *
1457            * @param userGroups the user groups
1458            * @return the groups related to the user groups
1459            * @throws SystemException if a system exception occurred
1460            */
1461            public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
1462                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1463                    throws com.liferay.portal.kernel.exception.SystemException {
1464                    return _groupLocalService.getUserGroupsRelatedGroups(userGroups);
1465            }
1466    
1467            /**
1468            * Returns the range of all groups associated with the user's organization
1469            * groups, including the ancestors of the organization groups, unless portal
1470            * property <code>organizations.membership.strict</code> is set to
1471            * <code>true</code>.
1472            *
1473            * <p>
1474            * Useful when paginating results. Returns a maximum of <code>end -
1475            * start</code> instances. <code>start</code> and <code>end</code> are not
1476            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1477            * refers to the first result in the set. Setting both <code>start</code>
1478            * and <code>end</code> to {@link
1479            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1480            * result set.
1481            * </p>
1482            *
1483            * @param userId the primary key of the user
1484            * @param start the lower bound of the range of groups to consider
1485            * @param end the upper bound of the range of groups to consider (not
1486            inclusive)
1487            * @return the range of groups associated with the user's organization
1488            groups
1489            * @throws PortalException if a user with the primary key could not be found
1490            or if another portal exception occurred
1491            * @throws SystemException if a system exception occurred
1492            */
1493            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
1494                    long userId, int start, int end)
1495                    throws com.liferay.portal.kernel.exception.PortalException,
1496                            com.liferay.portal.kernel.exception.SystemException {
1497                    return _groupLocalService.getUserOrganizationsGroups(userId, start, end);
1498            }
1499    
1500            /**
1501            * Returns <code>true</code> if the live group has a staging group.
1502            *
1503            * @param liveGroupId the primary key of the live group
1504            * @return <code>true</code> if the live group has a staging group;
1505            <code>false</code> otherwise
1506            * @throws SystemException if a system exception occurred
1507            */
1508            public boolean hasStagingGroup(long liveGroupId)
1509                    throws com.liferay.portal.kernel.exception.SystemException {
1510                    return _groupLocalService.hasStagingGroup(liveGroupId);
1511            }
1512    
1513            /**
1514            * Returns <code>true</code> if the user is immediately associated with the
1515            * group, or optionally if the user is associated with the group via the
1516            * user's organizations, inherited organizations, or user groups.
1517            *
1518            * @param userId the primary key of the user
1519            * @param groupId the primary key of the group
1520            * @param inherit whether to include organization groups and user groups to
1521            which the user belongs in the determination
1522            * @return <code>true</code> if the user is associated with the group;
1523            <code>false</code> otherwise
1524            * @throws SystemException if a system exception occurred
1525            */
1526            public boolean hasUserGroup(long userId, long groupId, boolean inherit)
1527                    throws com.liferay.portal.kernel.exception.SystemException {
1528                    return _groupLocalService.hasUserGroup(userId, groupId, inherit);
1529            }
1530    
1531            public com.liferay.portal.model.Group loadFetchGroup(long companyId,
1532                    java.lang.String name)
1533                    throws com.liferay.portal.kernel.exception.SystemException {
1534                    return _groupLocalService.loadFetchGroup(companyId, name);
1535            }
1536    
1537            public com.liferay.portal.model.Group loadGetGroup(long companyId,
1538                    java.lang.String name)
1539                    throws com.liferay.portal.kernel.exception.PortalException,
1540                            com.liferay.portal.kernel.exception.SystemException {
1541                    return _groupLocalService.loadGetGroup(companyId, name);
1542            }
1543    
1544            public java.util.List<com.liferay.portal.model.Group> search(
1545                    long companyId,
1546                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1547                    int start, int end)
1548                    throws com.liferay.portal.kernel.exception.SystemException {
1549                    return _groupLocalService.search(companyId, params, start, end);
1550            }
1551    
1552            /**
1553            * Returns a name ordered range of all the groups that match the class name
1554            * IDs, name, and description, optionally including the user's inherited
1555            * organization groups and user groups. System and staged groups are not
1556            * included.
1557            *
1558            * <p>
1559            * Useful when paginating results. Returns a maximum of <code>end -
1560            * start</code> instances. <code>start</code> and <code>end</code> are not
1561            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1562            * refers to the first result in the set. Setting both <code>start</code>
1563            * and <code>end</code> to {@link
1564            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1565            * result set.
1566            * </p>
1567            *
1568            * @param companyId the primary key of the company
1569            * @param classNameIds the class names of entities to include in the search
1570            (optionally <code>null</code>)
1571            * @param name the group's name (optionally <code>null</code>)
1572            * @param description the group's description (optionally
1573            <code>null</code>)
1574            * @param params the finder params (optionally <code>null</code>). To
1575            include a user's organizations, inherited organizations, and user
1576            groups in the search, add an entry with key
1577            &quot;usersGroups&quot; mapped to the user's ID and an entry with
1578            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
1579            For more information see {@link
1580            com.liferay.portal.service.persistence.GroupFinder}
1581            com.liferay.portal.service.persistence.GroupFinder}
1582            * @param start the lower bound of the range of groups to return
1583            * @param end the upper bound of the range of groups to return (not
1584            inclusive)
1585            * @return the matching groups ordered by name
1586            * @throws SystemException if a system exception occurred
1587            */
1588            public java.util.List<com.liferay.portal.model.Group> search(
1589                    long companyId, long[] classNameIds, java.lang.String name,
1590                    java.lang.String description,
1591                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1592                    int start, int end)
1593                    throws com.liferay.portal.kernel.exception.SystemException {
1594                    return _groupLocalService.search(companyId, classNameIds, name,
1595                            description, params, start, end);
1596            }
1597    
1598            /**
1599            * Returns an ordered range of all the groups that match the class name IDs,
1600            * name, and description, optionally including the user's inherited
1601            * organization groups and user groups. System and staged groups are not
1602            * included.
1603            *
1604            * <p>
1605            * Useful when paginating results. Returns a maximum of <code>end -
1606            * start</code> instances. <code>start</code> and <code>end</code> are not
1607            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1608            * refers to the first result in the set. Setting both <code>start</code>
1609            * and <code>end</code> to {@link
1610            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1611            * result set.
1612            * </p>
1613            *
1614            * @param companyId the primary key of the company
1615            * @param classNameIds the group's class name IDs (optionally
1616            <code>null</code>)
1617            * @param name the group's name (optionally <code>null</code>)
1618            * @param description the group's description (optionally
1619            <code>null</code>)
1620            * @param params the finder params (optionally <code>null</code>). To
1621            include a user's organizations, inherited organizations, and user
1622            groups in the search, add an entry with key
1623            &quot;usersGroups&quot; mapped to the user's ID and an entry with
1624            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
1625            For more information see {@link
1626            com.liferay.portal.service.persistence.GroupFinder}
1627            * @param start the lower bound of the range of groups to return
1628            * @param end the upper bound of the range of groups to return (not
1629            inclusive)
1630            * @param obc the comparator to order the groups (optionally
1631            <code>null</code>)
1632            * @return the matching groups ordered by comparator <code>obc</code>
1633            * @throws SystemException if a system exception occurred
1634            */
1635            public java.util.List<com.liferay.portal.model.Group> search(
1636                    long companyId, long[] classNameIds, java.lang.String name,
1637                    java.lang.String description,
1638                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1639                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1640                    throws com.liferay.portal.kernel.exception.SystemException {
1641                    return _groupLocalService.search(companyId, classNameIds, name,
1642                            description, params, start, end, obc);
1643            }
1644    
1645            /**
1646            * Returns a name ordered range of all the site groups and organization
1647            * groups that match the name and description, optionally including the
1648            * user's inherited organization groups and user groups. System and staged
1649            * groups are not included.
1650            *
1651            * <p>
1652            * Useful when paginating results. Returns a maximum of <code>end -
1653            * start</code> instances. <code>start</code> and <code>end</code> are not
1654            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1655            * refers to the first result in the set. Setting both <code>start</code>
1656            * and <code>end</code> to {@link
1657            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1658            * result set.
1659            * </p>
1660            *
1661            * @param companyId the primary key of the company
1662            * @param name the group's name (optionally <code>null</code>)
1663            * @param description the group's description (optionally
1664            <code>null</code>)
1665            * @param params the finder params (optionally <code>null</code>). To
1666            include the user's inherited organizations and user groups in the
1667            search, add entries having &quot;usersGroups&quot; and
1668            &quot;inherit&quot; as keys mapped to the the user's ID. For more
1669            information see {@link
1670            com.liferay.portal.service.persistence.GroupFinder}
1671            * @param start the lower bound of the range of groups to return
1672            * @param end the upper bound of the range of groups to return (not
1673            inclusive)
1674            * @return the matching groups ordered by name
1675            * @throws SystemException if a system exception occurred
1676            */
1677            public java.util.List<com.liferay.portal.model.Group> search(
1678                    long companyId, java.lang.String name, java.lang.String description,
1679                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1680                    int start, int end)
1681                    throws com.liferay.portal.kernel.exception.SystemException {
1682                    return _groupLocalService.search(companyId, name, description, params,
1683                            start, end);
1684            }
1685    
1686            /**
1687            * Returns an ordered range of all the site groups and organization groups
1688            * that match the name and description, optionally including the user's
1689            * inherited organization groups and user groups. System and staged groups
1690            * are not included.
1691            *
1692            * <p>
1693            * Useful when paginating results. Returns a maximum of <code>end -
1694            * start</code> instances. <code>start</code> and <code>end</code> are not
1695            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1696            * refers to the first result in the set. Setting both <code>start</code>
1697            * and <code>end</code> to {@link
1698            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1699            * result set.
1700            * </p>
1701            *
1702            * @param companyId the primary key of the company
1703            * @param name the group's name (optionally <code>null</code>)
1704            * @param description the group's description (optionally
1705            <code>null</code>)
1706            * @param params the finder params (optionally <code>null</code>). To
1707            include the user's inherited organizations and user groups in the
1708            search, add entries having &quot;usersGroups&quot; and
1709            &quot;inherit&quot; as keys mapped to the the user's ID. For more
1710            information see {@link
1711            com.liferay.portal.service.persistence.GroupFinder}
1712            * @param start the lower bound of the range of groups to return
1713            * @param end the upper bound of the range of groups to return (not
1714            inclusive)
1715            * @param obc the comparator to order the groups (optionally
1716            <code>null</code>)
1717            * @return the matching groups ordered by comparator <code>obc</code>
1718            * @throws SystemException if a system exception occurred
1719            */
1720            public java.util.List<com.liferay.portal.model.Group> search(
1721                    long companyId, java.lang.String name, java.lang.String description,
1722                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1723                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1724                    throws com.liferay.portal.kernel.exception.SystemException {
1725                    return _groupLocalService.search(companyId, name, description, params,
1726                            start, end, obc);
1727            }
1728    
1729            /**
1730            * Returns the number of groups that match the class name IDs, name, and
1731            * description, optionally including the user's inherited organization
1732            * groups and user groups. System and staged groups are not included.
1733            *
1734            * @param companyId the primary key of the company
1735            * @param classNameIds the class names of entities to include in the search
1736            (optionally <code>null</code>)
1737            * @param name the group's name (optionally <code>null</code>)
1738            * @param description the group's description (optionally
1739            <code>null</code>)
1740            * @param params the finder params (optionally <code>null</code>). To
1741            include the user's inherited organization groups and user groups
1742            in the search, add entries having &quot;usersGroups&quot; and
1743            &quot;inherit&quot; as keys mapped to the the user's ID. For more
1744            information see {@link
1745            com.liferay.portal.service.persistence.GroupFinder}
1746            * @return the number of matching groups
1747            * @throws SystemException if a system exception occurred
1748            */
1749            public int searchCount(long companyId, long[] classNameIds,
1750                    java.lang.String name, java.lang.String description,
1751                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1752                    throws com.liferay.portal.kernel.exception.SystemException {
1753                    return _groupLocalService.searchCount(companyId, classNameIds, name,
1754                            description, params);
1755            }
1756    
1757            /**
1758            * Returns the number of groups and immediate organization groups that match
1759            * the name and description, optionally including the user's inherited
1760            * organization groups and user groups. System and staged groups are not
1761            * included.
1762            *
1763            * @param companyId the primary key of the company
1764            * @param name the group's name (optionally <code>null</code>)
1765            * @param description the group's description (optionally
1766            <code>null</code>)
1767            * @param params the finder params (optionally <code>null</code>). To
1768            include the user's inherited organization groups and user groups
1769            in the search, add entries having &quot;usersGroups&quot; and
1770            &quot;inherit&quot; as keys mapped to the the user's ID. For more
1771            information see {@link
1772            com.liferay.portal.service.persistence.GroupFinder}
1773            * @return the number of matching groups
1774            * @throws SystemException if a system exception occurred
1775            */
1776            public int searchCount(long companyId, java.lang.String name,
1777                    java.lang.String description,
1778                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1779                    throws com.liferay.portal.kernel.exception.SystemException {
1780                    return _groupLocalService.searchCount(companyId, name, description,
1781                            params);
1782            }
1783    
1784            /**
1785            * Removes the groups from the role.
1786            *
1787            * @param roleId the primary key of the role
1788            * @param groupIds the primary keys of the groups
1789            * @throws SystemException if a system exception occurred
1790            */
1791            public void unsetRoleGroups(long roleId, long[] groupIds)
1792                    throws com.liferay.portal.kernel.exception.SystemException {
1793                    _groupLocalService.unsetRoleGroups(roleId, groupIds);
1794            }
1795    
1796            /**
1797            * Removes the user from the groups.
1798            *
1799            * @param userId the primary key of the user
1800            * @param groupIds the primary keys of the groups
1801            * @throws SystemException if a system exception occurred
1802            */
1803            public void unsetUserGroups(long userId, long[] groupIds)
1804                    throws com.liferay.portal.kernel.exception.SystemException {
1805                    _groupLocalService.unsetUserGroups(userId, groupIds);
1806            }
1807    
1808            /**
1809            * Updates the group's asset replacing categories and tag names.
1810            *
1811            * @param userId the primary key of the user
1812            * @param group the group
1813            * @param assetCategoryIds the primary keys of the asset categories
1814            (optionally <code>null</code>)
1815            * @param assetTagNames the asset tag names (optionally <code>null</code>)
1816            * @throws PortalException if a user with the primary key could not be found
1817            * @throws SystemException if a system exception occurred
1818            */
1819            public void updateAsset(long userId, com.liferay.portal.model.Group group,
1820                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
1821                    throws com.liferay.portal.kernel.exception.PortalException,
1822                            com.liferay.portal.kernel.exception.SystemException {
1823                    _groupLocalService.updateAsset(userId, group, assetCategoryIds,
1824                            assetTagNames);
1825            }
1826    
1827            /**
1828            * Updates the group's friendly URL.
1829            *
1830            * @param groupId the primary key of the group
1831            * @param friendlyURL the group's new friendlyURL (optionally
1832            <code>null</code>)
1833            * @return the group
1834            * @throws PortalException if a group with the primary key could not be
1835            found or if a valid friendly URL could not be created for the
1836            group
1837            * @throws SystemException if a system exception occurred
1838            */
1839            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
1840                    java.lang.String friendlyURL)
1841                    throws com.liferay.portal.kernel.exception.PortalException,
1842                            com.liferay.portal.kernel.exception.SystemException {
1843                    return _groupLocalService.updateFriendlyURL(groupId, friendlyURL);
1844            }
1845    
1846            /**
1847            * Updates the group's type settings.
1848            *
1849            * @param groupId the primary key of the group
1850            * @param typeSettings the group's new type settings (optionally
1851            <code>null</code>)
1852            * @return the group
1853            * @throws PortalException if a group with the primary key could not be
1854            found
1855            * @throws SystemException if a system exception occurred
1856            */
1857            public com.liferay.portal.model.Group updateGroup(long groupId,
1858                    java.lang.String typeSettings)
1859                    throws com.liferay.portal.kernel.exception.PortalException,
1860                            com.liferay.portal.kernel.exception.SystemException {
1861                    return _groupLocalService.updateGroup(groupId, typeSettings);
1862            }
1863    
1864            /**
1865            * Updates the group.
1866            *
1867            * @param groupId the primary key of the group
1868            * @param name the group's new name
1869            * @param description the group's new description (optionally
1870            <code>null</code>)
1871            * @param type the group's new type. For more information see {@link
1872            com.liferay.portal.model.GroupConstants}
1873            * @param friendlyURL the group's new friendlyURL (optionally
1874            <code>null</code>)
1875            * @param active whether the group is active
1876            * @param serviceContext the service context to be applied (optionally
1877            <code>null</code>). Can set asset category IDs and asset tag
1878            names for the group.
1879            * @return the group
1880            * @throws PortalException if a group with the primary key could not be
1881            found or if the friendly URL was invalid or could one not be
1882            created
1883            * @throws SystemException if a system exception occurred
1884            */
1885            public com.liferay.portal.model.Group updateGroup(long groupId,
1886                    java.lang.String name, java.lang.String description, int type,
1887                    java.lang.String friendlyURL, boolean active,
1888                    com.liferay.portal.service.ServiceContext serviceContext)
1889                    throws com.liferay.portal.kernel.exception.PortalException,
1890                            com.liferay.portal.kernel.exception.SystemException {
1891                    return _groupLocalService.updateGroup(groupId, name, description, type,
1892                            friendlyURL, active, serviceContext);
1893            }
1894    
1895            /**
1896            * Associates the group with a main site if the group is an organization.
1897            *
1898            * @param groupId the primary key of the group
1899            * @param site whether the group is to be associated with a main site
1900            * @return the group
1901            * @throws PortalException if a group with the primary key could not be
1902            found
1903            * @throws SystemException if a system exception occurred
1904            */
1905            public com.liferay.portal.model.Group updateSite(long groupId, boolean site)
1906                    throws com.liferay.portal.kernel.exception.PortalException,
1907                            com.liferay.portal.kernel.exception.SystemException {
1908                    return _groupLocalService.updateSite(groupId, site);
1909            }
1910    
1911            /**
1912             * @deprecated Renamed to {@link #getWrappedService}
1913             */
1914            public GroupLocalService getWrappedGroupLocalService() {
1915                    return _groupLocalService;
1916            }
1917    
1918            /**
1919             * @deprecated Renamed to {@link #setWrappedService}
1920             */
1921            public void setWrappedGroupLocalService(GroupLocalService groupLocalService) {
1922                    _groupLocalService = groupLocalService;
1923            }
1924    
1925            public GroupLocalService getWrappedService() {
1926                    return _groupLocalService;
1927            }
1928    
1929            public void setWrappedService(GroupLocalService groupLocalService) {
1930                    _groupLocalService = groupLocalService;
1931            }
1932    
1933            private GroupLocalService _groupLocalService;
1934    }