001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link GroupLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see GroupLocalService
024     * @generated
025     */
026    @ProviderType
027    public class GroupLocalServiceWrapper implements GroupLocalService,
028            ServiceWrapper<GroupLocalService> {
029            public GroupLocalServiceWrapper(GroupLocalService groupLocalService) {
030                    _groupLocalService = groupLocalService;
031            }
032    
033            /**
034            * Adds the group to the database. Also notifies the appropriate model listeners.
035            *
036            * @param group the group
037            * @return the group that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portal.model.Group addGroup(
042                    com.liferay.portal.model.Group group)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _groupLocalService.addGroup(group);
045            }
046    
047            /**
048            * Creates a new group with the primary key. Does not add the group to the database.
049            *
050            * @param groupId the primary key for the new group
051            * @return the new group
052            */
053            @Override
054            public com.liferay.portal.model.Group createGroup(long groupId) {
055                    return _groupLocalService.createGroup(groupId);
056            }
057    
058            /**
059            * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param groupId the primary key of the group
062            * @return the group that was removed
063            * @throws PortalException if a group with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            @Override
067            public com.liferay.portal.model.Group deleteGroup(long groupId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _groupLocalService.deleteGroup(groupId);
071            }
072    
073            /**
074            * Deletes the group from the database. Also notifies the appropriate model listeners.
075            *
076            * @param group the group
077            * @return the group that was removed
078            * @throws PortalException
079            * @throws SystemException if a system exception occurred
080            */
081            @Override
082            public com.liferay.portal.model.Group deleteGroup(
083                    com.liferay.portal.model.Group group)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _groupLocalService.deleteGroup(group);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _groupLocalService.dynamicQuery();
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @Override
102            @SuppressWarnings("rawtypes")
103            public java.util.List dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _groupLocalService.dynamicQuery(dynamicQuery);
107            }
108    
109            /**
110            * Performs a dynamic query on the database and returns a range of the matching rows.
111            *
112            * <p>
113            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
114            * </p>
115            *
116            * @param dynamicQuery the dynamic query
117            * @param start the lower bound of the range of model instances
118            * @param end the upper bound of the range of model instances (not inclusive)
119            * @return the range of matching rows
120            * @throws SystemException if a system exception occurred
121            */
122            @Override
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end,
152                            orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _groupLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _groupLocalService.dynamicQueryCount(dynamicQuery, projection);
183            }
184    
185            @Override
186            public com.liferay.portal.model.Group fetchGroup(long groupId)
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    return _groupLocalService.fetchGroup(groupId);
189            }
190    
191            /**
192            * Returns the group with the matching UUID and company.
193            *
194            * @param uuid the group's UUID
195            * @param companyId the primary key of the company
196            * @return the matching group, or <code>null</code> if a matching group could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            @Override
200            public com.liferay.portal.model.Group fetchGroupByUuidAndCompanyId(
201                    java.lang.String uuid, long companyId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return _groupLocalService.fetchGroupByUuidAndCompanyId(uuid, companyId);
204            }
205    
206            /**
207            * Returns the group with the primary key.
208            *
209            * @param groupId the primary key of the group
210            * @return the group
211            * @throws PortalException if a group with the primary key could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            @Override
215            public com.liferay.portal.model.Group getGroup(long groupId)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    return _groupLocalService.getGroup(groupId);
219            }
220    
221            @Override
222            public com.liferay.portal.model.PersistedModel getPersistedModel(
223                    java.io.Serializable primaryKeyObj)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    return _groupLocalService.getPersistedModel(primaryKeyObj);
227            }
228    
229            /**
230            * Returns the group with the matching UUID and company.
231            *
232            * @param uuid the group's UUID
233            * @param companyId the primary key of the company
234            * @return the matching group
235            * @throws PortalException if a matching group could not be found
236            * @throws SystemException if a system exception occurred
237            */
238            @Override
239            public com.liferay.portal.model.Group getGroupByUuidAndCompanyId(
240                    java.lang.String uuid, long companyId)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    return _groupLocalService.getGroupByUuidAndCompanyId(uuid, companyId);
244            }
245    
246            /**
247            * Returns a range of all the groups.
248            *
249            * <p>
250            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
251            * </p>
252            *
253            * @param start the lower bound of the range of groups
254            * @param end the upper bound of the range of groups (not inclusive)
255            * @return the range of groups
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
260                    int end) throws com.liferay.portal.kernel.exception.SystemException {
261                    return _groupLocalService.getGroups(start, end);
262            }
263    
264            /**
265            * Returns the number of groups.
266            *
267            * @return the number of groups
268            * @throws SystemException if a system exception occurred
269            */
270            @Override
271            public int getGroupsCount()
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return _groupLocalService.getGroupsCount();
274            }
275    
276            /**
277            * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
278            *
279            * @param group the group
280            * @return the group that was updated
281            * @throws SystemException if a system exception occurred
282            */
283            @Override
284            public com.liferay.portal.model.Group updateGroup(
285                    com.liferay.portal.model.Group group)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return _groupLocalService.updateGroup(group);
288            }
289    
290            /**
291            * @throws SystemException if a system exception occurred
292            */
293            @Override
294            public void addOrganizationGroup(long organizationId, long groupId)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    _groupLocalService.addOrganizationGroup(organizationId, groupId);
297            }
298    
299            /**
300            * @throws SystemException if a system exception occurred
301            */
302            @Override
303            public void addOrganizationGroup(long organizationId,
304                    com.liferay.portal.model.Group group)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    _groupLocalService.addOrganizationGroup(organizationId, group);
307            }
308    
309            /**
310            * @throws SystemException if a system exception occurred
311            */
312            @Override
313            public void addOrganizationGroups(long organizationId, long[] groupIds)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    _groupLocalService.addOrganizationGroups(organizationId, groupIds);
316            }
317    
318            /**
319            * @throws SystemException if a system exception occurred
320            */
321            @Override
322            public void addOrganizationGroups(long organizationId,
323                    java.util.List<com.liferay.portal.model.Group> Groups)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    _groupLocalService.addOrganizationGroups(organizationId, Groups);
326            }
327    
328            /**
329            * @throws SystemException if a system exception occurred
330            */
331            @Override
332            public void clearOrganizationGroups(long organizationId)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    _groupLocalService.clearOrganizationGroups(organizationId);
335            }
336    
337            /**
338            * @throws SystemException if a system exception occurred
339            */
340            @Override
341            public void deleteOrganizationGroup(long organizationId, long groupId)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    _groupLocalService.deleteOrganizationGroup(organizationId, groupId);
344            }
345    
346            /**
347            * @throws SystemException if a system exception occurred
348            */
349            @Override
350            public void deleteOrganizationGroup(long organizationId,
351                    com.liferay.portal.model.Group group)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    _groupLocalService.deleteOrganizationGroup(organizationId, group);
354            }
355    
356            /**
357            * @throws SystemException if a system exception occurred
358            */
359            @Override
360            public void deleteOrganizationGroups(long organizationId, long[] groupIds)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    _groupLocalService.deleteOrganizationGroups(organizationId, groupIds);
363            }
364    
365            /**
366            * @throws SystemException if a system exception occurred
367            */
368            @Override
369            public void deleteOrganizationGroups(long organizationId,
370                    java.util.List<com.liferay.portal.model.Group> Groups)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    _groupLocalService.deleteOrganizationGroups(organizationId, Groups);
373            }
374    
375            /**
376            * @throws SystemException if a system exception occurred
377            */
378            @Override
379            public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups(
380                    long organizationId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _groupLocalService.getOrganizationGroups(organizationId);
383            }
384    
385            /**
386            * @throws SystemException if a system exception occurred
387            */
388            @Override
389            public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups(
390                    long organizationId, int start, int end)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _groupLocalService.getOrganizationGroups(organizationId, start,
393                            end);
394            }
395    
396            /**
397            * @throws SystemException if a system exception occurred
398            */
399            @Override
400            public java.util.List<com.liferay.portal.model.Group> getOrganizationGroups(
401                    long organizationId, int start, int end,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _groupLocalService.getOrganizationGroups(organizationId, start,
405                            end, orderByComparator);
406            }
407    
408            /**
409            * @throws SystemException if a system exception occurred
410            */
411            @Override
412            public int getOrganizationGroupsCount(long organizationId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _groupLocalService.getOrganizationGroupsCount(organizationId);
415            }
416    
417            /**
418            * @throws SystemException if a system exception occurred
419            */
420            @Override
421            public boolean hasOrganizationGroup(long organizationId, long groupId)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return _groupLocalService.hasOrganizationGroup(organizationId, groupId);
424            }
425    
426            /**
427            * @throws SystemException if a system exception occurred
428            */
429            @Override
430            public boolean hasOrganizationGroups(long organizationId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return _groupLocalService.hasOrganizationGroups(organizationId);
433            }
434    
435            /**
436            * @throws SystemException if a system exception occurred
437            */
438            @Override
439            public void setOrganizationGroups(long organizationId, long[] groupIds)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    _groupLocalService.setOrganizationGroups(organizationId, groupIds);
442            }
443    
444            /**
445            * @throws SystemException if a system exception occurred
446            */
447            @Override
448            public void addRoleGroup(long roleId, long groupId)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    _groupLocalService.addRoleGroup(roleId, groupId);
451            }
452    
453            /**
454            * @throws SystemException if a system exception occurred
455            */
456            @Override
457            public void addRoleGroup(long roleId, com.liferay.portal.model.Group group)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    _groupLocalService.addRoleGroup(roleId, group);
460            }
461    
462            /**
463            * @throws SystemException if a system exception occurred
464            */
465            @Override
466            public void addRoleGroups(long roleId, long[] groupIds)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    _groupLocalService.addRoleGroups(roleId, groupIds);
469            }
470    
471            /**
472            * @throws SystemException if a system exception occurred
473            */
474            @Override
475            public void addRoleGroups(long roleId,
476                    java.util.List<com.liferay.portal.model.Group> Groups)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    _groupLocalService.addRoleGroups(roleId, Groups);
479            }
480    
481            /**
482            * @throws SystemException if a system exception occurred
483            */
484            @Override
485            public void clearRoleGroups(long roleId)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    _groupLocalService.clearRoleGroups(roleId);
488            }
489    
490            /**
491            * @throws SystemException if a system exception occurred
492            */
493            @Override
494            public void deleteRoleGroup(long roleId, long groupId)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    _groupLocalService.deleteRoleGroup(roleId, groupId);
497            }
498    
499            /**
500            * @throws SystemException if a system exception occurred
501            */
502            @Override
503            public void deleteRoleGroup(long roleId,
504                    com.liferay.portal.model.Group group)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    _groupLocalService.deleteRoleGroup(roleId, group);
507            }
508    
509            /**
510            * @throws SystemException if a system exception occurred
511            */
512            @Override
513            public void deleteRoleGroups(long roleId, long[] groupIds)
514                    throws com.liferay.portal.kernel.exception.SystemException {
515                    _groupLocalService.deleteRoleGroups(roleId, groupIds);
516            }
517    
518            /**
519            * @throws SystemException if a system exception occurred
520            */
521            @Override
522            public void deleteRoleGroups(long roleId,
523                    java.util.List<com.liferay.portal.model.Group> Groups)
524                    throws com.liferay.portal.kernel.exception.SystemException {
525                    _groupLocalService.deleteRoleGroups(roleId, Groups);
526            }
527    
528            /**
529            * @throws SystemException if a system exception occurred
530            */
531            @Override
532            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
533                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
534                    return _groupLocalService.getRoleGroups(roleId);
535            }
536    
537            /**
538            * @throws SystemException if a system exception occurred
539            */
540            @Override
541            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
542                    long roleId, int start, int end)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return _groupLocalService.getRoleGroups(roleId, start, end);
545            }
546    
547            /**
548            * @throws SystemException if a system exception occurred
549            */
550            @Override
551            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
552                    long roleId, int start, int end,
553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    return _groupLocalService.getRoleGroups(roleId, start, end,
556                            orderByComparator);
557            }
558    
559            /**
560            * @throws SystemException if a system exception occurred
561            */
562            @Override
563            public int getRoleGroupsCount(long roleId)
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    return _groupLocalService.getRoleGroupsCount(roleId);
566            }
567    
568            /**
569            * @throws SystemException if a system exception occurred
570            */
571            @Override
572            public boolean hasRoleGroup(long roleId, long groupId)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return _groupLocalService.hasRoleGroup(roleId, groupId);
575            }
576    
577            /**
578            * @throws SystemException if a system exception occurred
579            */
580            @Override
581            public boolean hasRoleGroups(long roleId)
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    return _groupLocalService.hasRoleGroups(roleId);
584            }
585    
586            /**
587            * @throws SystemException if a system exception occurred
588            */
589            @Override
590            public void setRoleGroups(long roleId, long[] groupIds)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    _groupLocalService.setRoleGroups(roleId, groupIds);
593            }
594    
595            /**
596            * @throws SystemException if a system exception occurred
597            */
598            @Override
599            public void addUserGroupGroup(long userGroupId, long groupId)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    _groupLocalService.addUserGroupGroup(userGroupId, groupId);
602            }
603    
604            /**
605            * @throws SystemException if a system exception occurred
606            */
607            @Override
608            public void addUserGroupGroup(long userGroupId,
609                    com.liferay.portal.model.Group group)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    _groupLocalService.addUserGroupGroup(userGroupId, group);
612            }
613    
614            /**
615            * @throws SystemException if a system exception occurred
616            */
617            @Override
618            public void addUserGroupGroups(long userGroupId, long[] groupIds)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    _groupLocalService.addUserGroupGroups(userGroupId, groupIds);
621            }
622    
623            /**
624            * @throws SystemException if a system exception occurred
625            */
626            @Override
627            public void addUserGroupGroups(long userGroupId,
628                    java.util.List<com.liferay.portal.model.Group> Groups)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    _groupLocalService.addUserGroupGroups(userGroupId, Groups);
631            }
632    
633            /**
634            * @throws SystemException if a system exception occurred
635            */
636            @Override
637            public void clearUserGroupGroups(long userGroupId)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    _groupLocalService.clearUserGroupGroups(userGroupId);
640            }
641    
642            /**
643            * @throws SystemException if a system exception occurred
644            */
645            @Override
646            public void deleteUserGroupGroup(long userGroupId, long groupId)
647                    throws com.liferay.portal.kernel.exception.SystemException {
648                    _groupLocalService.deleteUserGroupGroup(userGroupId, groupId);
649            }
650    
651            /**
652            * @throws SystemException if a system exception occurred
653            */
654            @Override
655            public void deleteUserGroupGroup(long userGroupId,
656                    com.liferay.portal.model.Group group)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    _groupLocalService.deleteUserGroupGroup(userGroupId, group);
659            }
660    
661            /**
662            * @throws SystemException if a system exception occurred
663            */
664            @Override
665            public void deleteUserGroupGroups(long userGroupId, long[] groupIds)
666                    throws com.liferay.portal.kernel.exception.SystemException {
667                    _groupLocalService.deleteUserGroupGroups(userGroupId, groupIds);
668            }
669    
670            /**
671            * @throws SystemException if a system exception occurred
672            */
673            @Override
674            public void deleteUserGroupGroups(long userGroupId,
675                    java.util.List<com.liferay.portal.model.Group> Groups)
676                    throws com.liferay.portal.kernel.exception.SystemException {
677                    _groupLocalService.deleteUserGroupGroups(userGroupId, Groups);
678            }
679    
680            /**
681            * @throws SystemException if a system exception occurred
682            */
683            @Override
684            public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups(
685                    long userGroupId)
686                    throws com.liferay.portal.kernel.exception.SystemException {
687                    return _groupLocalService.getUserGroupGroups(userGroupId);
688            }
689    
690            /**
691            * @throws SystemException if a system exception occurred
692            */
693            @Override
694            public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups(
695                    long userGroupId, int start, int end)
696                    throws com.liferay.portal.kernel.exception.SystemException {
697                    return _groupLocalService.getUserGroupGroups(userGroupId, start, end);
698            }
699    
700            /**
701            * @throws SystemException if a system exception occurred
702            */
703            @Override
704            public java.util.List<com.liferay.portal.model.Group> getUserGroupGroups(
705                    long userGroupId, int start, int end,
706                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return _groupLocalService.getUserGroupGroups(userGroupId, start, end,
709                            orderByComparator);
710            }
711    
712            /**
713            * @throws SystemException if a system exception occurred
714            */
715            @Override
716            public int getUserGroupGroupsCount(long userGroupId)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return _groupLocalService.getUserGroupGroupsCount(userGroupId);
719            }
720    
721            /**
722            * @throws SystemException if a system exception occurred
723            */
724            @Override
725            public boolean hasUserGroupGroup(long userGroupId, long groupId)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return _groupLocalService.hasUserGroupGroup(userGroupId, groupId);
728            }
729    
730            /**
731            * @throws SystemException if a system exception occurred
732            */
733            @Override
734            public boolean hasUserGroupGroups(long userGroupId)
735                    throws com.liferay.portal.kernel.exception.SystemException {
736                    return _groupLocalService.hasUserGroupGroups(userGroupId);
737            }
738    
739            /**
740            * @throws SystemException if a system exception occurred
741            */
742            @Override
743            public void setUserGroupGroups(long userGroupId, long[] groupIds)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    _groupLocalService.setUserGroupGroups(userGroupId, groupIds);
746            }
747    
748            /**
749            * @throws SystemException if a system exception occurred
750            */
751            @Override
752            public void addUserGroup(long userId, long groupId)
753                    throws com.liferay.portal.kernel.exception.SystemException {
754                    _groupLocalService.addUserGroup(userId, groupId);
755            }
756    
757            /**
758            * @throws SystemException if a system exception occurred
759            */
760            @Override
761            public void addUserGroup(long userId, com.liferay.portal.model.Group group)
762                    throws com.liferay.portal.kernel.exception.SystemException {
763                    _groupLocalService.addUserGroup(userId, group);
764            }
765    
766            /**
767            * @throws SystemException if a system exception occurred
768            */
769            @Override
770            public void addUserGroups(long userId, long[] groupIds)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    _groupLocalService.addUserGroups(userId, groupIds);
773            }
774    
775            /**
776            * @throws SystemException if a system exception occurred
777            */
778            @Override
779            public void addUserGroups(long userId,
780                    java.util.List<com.liferay.portal.model.Group> Groups)
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    _groupLocalService.addUserGroups(userId, Groups);
783            }
784    
785            /**
786            * @throws SystemException if a system exception occurred
787            */
788            @Override
789            public void clearUserGroups(long userId)
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    _groupLocalService.clearUserGroups(userId);
792            }
793    
794            /**
795            * @throws SystemException if a system exception occurred
796            */
797            @Override
798            public void deleteUserGroup(long userId, long groupId)
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    _groupLocalService.deleteUserGroup(userId, groupId);
801            }
802    
803            /**
804            * @throws SystemException if a system exception occurred
805            */
806            @Override
807            public void deleteUserGroup(long userId,
808                    com.liferay.portal.model.Group group)
809                    throws com.liferay.portal.kernel.exception.SystemException {
810                    _groupLocalService.deleteUserGroup(userId, group);
811            }
812    
813            /**
814            * @throws SystemException if a system exception occurred
815            */
816            @Override
817            public void deleteUserGroups(long userId, long[] groupIds)
818                    throws com.liferay.portal.kernel.exception.SystemException {
819                    _groupLocalService.deleteUserGroups(userId, groupIds);
820            }
821    
822            /**
823            * @throws SystemException if a system exception occurred
824            */
825            @Override
826            public void deleteUserGroups(long userId,
827                    java.util.List<com.liferay.portal.model.Group> Groups)
828                    throws com.liferay.portal.kernel.exception.SystemException {
829                    _groupLocalService.deleteUserGroups(userId, Groups);
830            }
831    
832            /**
833            * @throws SystemException if a system exception occurred
834            */
835            @Override
836            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
837                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
838                    return _groupLocalService.getUserGroups(userId);
839            }
840    
841            /**
842            * @throws SystemException if a system exception occurred
843            */
844            @Override
845            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
846                    long userId, int start, int end)
847                    throws com.liferay.portal.kernel.exception.SystemException {
848                    return _groupLocalService.getUserGroups(userId, start, end);
849            }
850    
851            /**
852            * @throws PortalException
853            * @throws SystemException if a system exception occurred
854            */
855            @Override
856            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
857                    long userId, int start, int end,
858                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
859                    throws com.liferay.portal.kernel.exception.PortalException,
860                            com.liferay.portal.kernel.exception.SystemException {
861                    return _groupLocalService.getUserGroups(userId, start, end,
862                            orderByComparator);
863            }
864    
865            /**
866            * @throws SystemException if a system exception occurred
867            */
868            @Override
869            public int getUserGroupsCount(long userId)
870                    throws com.liferay.portal.kernel.exception.SystemException {
871                    return _groupLocalService.getUserGroupsCount(userId);
872            }
873    
874            /**
875            * @throws SystemException if a system exception occurred
876            */
877            @Override
878            public boolean hasUserGroup(long userId, long groupId)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return _groupLocalService.hasUserGroup(userId, groupId);
881            }
882    
883            /**
884            * @throws SystemException if a system exception occurred
885            */
886            @Override
887            public boolean hasUserGroups(long userId)
888                    throws com.liferay.portal.kernel.exception.SystemException {
889                    return _groupLocalService.hasUserGroups(userId);
890            }
891    
892            /**
893            * @throws SystemException if a system exception occurred
894            */
895            @Override
896            public void setUserGroups(long userId, long[] groupIds)
897                    throws com.liferay.portal.kernel.exception.SystemException {
898                    _groupLocalService.setUserGroups(userId, groupIds);
899            }
900    
901            /**
902            * Returns the Spring bean ID for this bean.
903            *
904            * @return the Spring bean ID for this bean
905            */
906            @Override
907            public java.lang.String getBeanIdentifier() {
908                    return _groupLocalService.getBeanIdentifier();
909            }
910    
911            /**
912            * Sets the Spring bean ID for this bean.
913            *
914            * @param beanIdentifier the Spring bean ID for this bean
915            */
916            @Override
917            public void setBeanIdentifier(java.lang.String beanIdentifier) {
918                    _groupLocalService.setBeanIdentifier(beanIdentifier);
919            }
920    
921            /**
922            * Adds a group.
923            *
924            * @param userId the primary key of the group's creator/owner
925            * @param parentGroupId the primary key of the parent group
926            * @param className the entity's class name
927            * @param classPK the primary key of the entity's instance
928            * @param liveGroupId the primary key of the live group
929            * @param name the entity's name
930            * @param description the group's description (optionally
931            <code>null</code>)
932            * @param type the group's type. For more information see {@link
933            com.liferay.portal.model.GroupConstants}
934            * @param friendlyURL the group's friendlyURL (optionally
935            <code>null</code>)
936            * @param site whether the group is to be associated with a main site
937            * @param active whether the group is active
938            * @param serviceContext the service context to be applied (optionally
939            <code>null</code>). Can set asset category IDs and asset tag
940            names for the group, and whether the group is for staging.
941            * @return the group
942            * @throws PortalException if a creator could not be found, if the group's
943            information was invalid, if a layout could not be found, or if a
944            valid friendly URL could not be created for the group
945            * @throws SystemException if a system exception occurred
946            */
947            @Override
948            public com.liferay.portal.model.Group addGroup(long userId,
949                    long parentGroupId, java.lang.String className, long classPK,
950                    long liveGroupId, java.lang.String name, java.lang.String description,
951                    int type, boolean manualMembership, int membershipRestriction,
952                    java.lang.String friendlyURL, boolean site, boolean active,
953                    com.liferay.portal.service.ServiceContext serviceContext)
954                    throws com.liferay.portal.kernel.exception.PortalException,
955                            com.liferay.portal.kernel.exception.SystemException {
956                    return _groupLocalService.addGroup(userId, parentGroupId, className,
957                            classPK, liveGroupId, name, description, type, manualMembership,
958                            membershipRestriction, friendlyURL, site, active, serviceContext);
959            }
960    
961            /**
962            * Adds the group using the default live group.
963            *
964            * @param userId the primary key of the group's creator/owner
965            * @param parentGroupId the primary key of the parent group
966            * @param className the entity's class name
967            * @param classPK the primary key of the entity's instance
968            * @param name the entity's name
969            * @param description the group's description (optionally
970            <code>null</code>)
971            * @param type the group's type. For more information see {@link
972            com.liferay.portal.model.GroupConstants}
973            * @param friendlyURL the group's friendlyURL
974            * @param site whether the group is to be associated with a main site
975            * @param active whether the group is active
976            * @param serviceContext the service context to be applied (optionally
977            <code>null</code>). Can set asset category IDs and asset tag
978            names for the group, and whether the group is for staging.
979            * @return the group
980            * @throws PortalException if a creator could not be found, if the
981            group's information was invalid, if a layout could not be
982            found, or if a valid friendly URL could not be created for
983            the group
984            * @throws SystemException if a system exception occurred
985            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String,
986            long, long, String, String, int, boolean, int, String,
987            boolean, boolean, ServiceContext)}
988            */
989            @Override
990            public com.liferay.portal.model.Group addGroup(long userId,
991                    long parentGroupId, java.lang.String className, long classPK,
992                    java.lang.String name, java.lang.String description, int type,
993                    java.lang.String friendlyURL, boolean site, boolean active,
994                    com.liferay.portal.service.ServiceContext serviceContext)
995                    throws com.liferay.portal.kernel.exception.PortalException,
996                            com.liferay.portal.kernel.exception.SystemException {
997                    return _groupLocalService.addGroup(userId, parentGroupId, className,
998                            classPK, name, description, type, friendlyURL, site, active,
999                            serviceContext);
1000            }
1001    
1002            /**
1003            * Adds a group.
1004            *
1005            * @param userId the primary key of the group's creator/owner
1006            * @param className the entity's class name
1007            * @param classPK the primary key of the entity's instance
1008            * @param liveGroupId the primary key of the live group
1009            * @param name the entity's name
1010            * @param description the group's description (optionally
1011            <code>null</code>)
1012            * @param type the group's type. For more information see {@link
1013            com.liferay.portal.model.GroupConstants}
1014            * @param friendlyURL the group's friendlyURL (optionally
1015            <code>null</code>)
1016            * @param site whether the group is to be associated with a main site
1017            * @param active whether the group is active
1018            * @param serviceContext the service context to be applied (optionally
1019            <code>null</code>). Can set asset category IDs and asset tag
1020            names for the group, and whether the group is for staging.
1021            * @return the group
1022            * @throws PortalException if a creator could not be found, if the
1023            group's information was invalid, if a layout could not be
1024            found, or if a valid friendly URL could not be created for
1025            the group
1026            * @throws SystemException if a system exception occurred
1027            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String,
1028            long, long, String, String, int, boolean, int, String,
1029            boolean, boolean, ServiceContext)}
1030            */
1031            @Override
1032            public com.liferay.portal.model.Group addGroup(long userId,
1033                    java.lang.String className, long classPK, long liveGroupId,
1034                    java.lang.String name, java.lang.String description, int type,
1035                    java.lang.String friendlyURL, boolean site, boolean active,
1036                    com.liferay.portal.service.ServiceContext serviceContext)
1037                    throws com.liferay.portal.kernel.exception.PortalException,
1038                            com.liferay.portal.kernel.exception.SystemException {
1039                    return _groupLocalService.addGroup(userId, className, classPK,
1040                            liveGroupId, name, description, type, friendlyURL, site, active,
1041                            serviceContext);
1042            }
1043    
1044            /**
1045            * Adds the group using the default live group.
1046            *
1047            * @param userId the primary key of the group's creator/owner
1048            * @param className the entity's class name
1049            * @param classPK the primary key of the entity's instance
1050            * @param name the entity's name
1051            * @param description the group's description (optionally
1052            <code>null</code>)
1053            * @param type the group's type. For more information see {@link
1054            com.liferay.portal.model.GroupConstants}
1055            * @param friendlyURL the group's friendlyURL
1056            * @param site whether the group is to be associated with a main site
1057            * @param active whether the group is active
1058            * @param serviceContext the service context to be applied (optionally
1059            <code>null</code>). Can set asset category IDs and asset tag
1060            names for the group, and whether the group is for staging.
1061            * @return the group
1062            * @throws PortalException if a creator could not be found, if the
1063            group's information was invalid, if a layout could not be
1064            found, or if a valid friendly URL could not be created for
1065            the group
1066            * @throws SystemException if a system exception occurred
1067            * @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String,
1068            long, long, String, String, int, boolean, int, String,
1069            boolean, boolean, ServiceContext)}
1070            */
1071            @Override
1072            public com.liferay.portal.model.Group addGroup(long userId,
1073                    java.lang.String className, long classPK, java.lang.String name,
1074                    java.lang.String description, int type, java.lang.String friendlyURL,
1075                    boolean site, boolean active,
1076                    com.liferay.portal.service.ServiceContext serviceContext)
1077                    throws com.liferay.portal.kernel.exception.PortalException,
1078                            com.liferay.portal.kernel.exception.SystemException {
1079                    return _groupLocalService.addGroup(userId, className, classPK, name,
1080                            description, type, friendlyURL, site, active, serviceContext);
1081            }
1082    
1083            /**
1084            * Adds a company group if it does not exist. This method is typically used
1085            * when a virtual host is added.
1086            *
1087            * @param companyId the primary key of the company
1088            * @throws PortalException if a default user for the company could not be
1089            found, if the group's information was invalid, if a layout could
1090            not be found, or if a valid friendly URL could not be created for
1091            the group
1092            * @throws SystemException if a system exception occurred
1093            */
1094            @Override
1095            public void checkCompanyGroup(long companyId)
1096                    throws com.liferay.portal.kernel.exception.PortalException,
1097                            com.liferay.portal.kernel.exception.SystemException {
1098                    _groupLocalService.checkCompanyGroup(companyId);
1099            }
1100    
1101            /**
1102            * Creates systems groups and other related data needed by the system on the
1103            * very first startup. Also takes care of creating the Control Panel groups
1104            * and layouts.
1105            *
1106            * @param companyId the primary key of the company
1107            * @throws PortalException if a new system group could not be created
1108            * @throws SystemException if a system exception occurred
1109            */
1110            @Override
1111            public void checkSystemGroups(long companyId)
1112                    throws com.liferay.portal.kernel.exception.PortalException,
1113                            com.liferay.portal.kernel.exception.SystemException {
1114                    _groupLocalService.checkSystemGroups(companyId);
1115            }
1116    
1117            @Override
1118            public void disableStaging(long groupId)
1119                    throws com.liferay.portal.kernel.exception.PortalException,
1120                            com.liferay.portal.kernel.exception.SystemException {
1121                    _groupLocalService.disableStaging(groupId);
1122            }
1123    
1124            @Override
1125            public void enableStaging(long groupId)
1126                    throws com.liferay.portal.kernel.exception.PortalException,
1127                            com.liferay.portal.kernel.exception.SystemException {
1128                    _groupLocalService.enableStaging(groupId);
1129            }
1130    
1131            /**
1132            * Returns the group with the matching friendly URL.
1133            *
1134            * @param companyId the primary key of the company
1135            * @param friendlyURL the friendly URL
1136            * @return the group with the friendly URL, or <code>null</code> if a
1137            matching group could not be found
1138            * @throws SystemException if a system exception occurred
1139            */
1140            @Override
1141            public com.liferay.portal.model.Group fetchFriendlyURLGroup(
1142                    long companyId, java.lang.String friendlyURL)
1143                    throws com.liferay.portal.kernel.exception.SystemException {
1144                    return _groupLocalService.fetchFriendlyURLGroup(companyId, friendlyURL);
1145            }
1146    
1147            /**
1148            * Returns the group with the matching group name by first searching the
1149            * system groups and then using the finder cache.
1150            *
1151            * @param companyId the primary key of the company
1152            * @param name the group's name
1153            * @return the group with the name and associated company, or
1154            <code>null</code> if a matching group could not be found
1155            * @throws SystemException if a system exception occurred
1156            */
1157            @Override
1158            public com.liferay.portal.model.Group fetchGroup(long companyId,
1159                    java.lang.String name)
1160                    throws com.liferay.portal.kernel.exception.SystemException {
1161                    return _groupLocalService.fetchGroup(companyId, name);
1162            }
1163    
1164            /**
1165            * Returns the company group.
1166            *
1167            * @param companyId the primary key of the company
1168            * @return the group associated with the company
1169            * @throws PortalException if a matching group could not be found
1170            * @throws SystemException if a system exception occurred
1171            */
1172            @Override
1173            public com.liferay.portal.model.Group getCompanyGroup(long companyId)
1174                    throws com.liferay.portal.kernel.exception.PortalException,
1175                            com.liferay.portal.kernel.exception.SystemException {
1176                    return _groupLocalService.getCompanyGroup(companyId);
1177            }
1178    
1179            /**
1180            * Returns a range of all the groups associated with the company.
1181            *
1182            * <p>
1183            * Useful when paginating results. Returns a maximum of <code>end -
1184            * start</code> instances. <code>start</code> and <code>end</code> are not
1185            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1186            * refers to the first result in the set. Setting both <code>start</code>
1187            * and <code>end</code> to {@link
1188            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1189            * result set.
1190            * </p>
1191            *
1192            * @param companyId the primary key of the company
1193            * @param start the lower bound of the range of groups to return
1194            * @param end the upper bound of the range of groups to return (not
1195            inclusive)
1196            * @return the range of groups associated with the company
1197            * @throws SystemException if a system exception occurred
1198            */
1199            @Override
1200            public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
1201                    long companyId, int start, int end)
1202                    throws com.liferay.portal.kernel.exception.SystemException {
1203                    return _groupLocalService.getCompanyGroups(companyId, start, end);
1204            }
1205    
1206            /**
1207            * Returns the number of groups associated with the company.
1208            *
1209            * @param companyId the primary key of the company
1210            * @return the number of groups associated with the company
1211            * @throws SystemException if a system exception occurred
1212            */
1213            @Override
1214            public int getCompanyGroupsCount(long companyId)
1215                    throws com.liferay.portal.kernel.exception.SystemException {
1216                    return _groupLocalService.getCompanyGroupsCount(companyId);
1217            }
1218    
1219            /**
1220            * Returns the group with the matching friendly URL.
1221            *
1222            * @param companyId the primary key of the company
1223            * @param friendlyURL the group's friendlyURL
1224            * @return the group with the friendly URL
1225            * @throws PortalException if a matching group could not be found, or if the
1226            friendly URL was invalid
1227            * @throws SystemException if a system exception occurred
1228            */
1229            @Override
1230            public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
1231                    java.lang.String friendlyURL)
1232                    throws com.liferay.portal.kernel.exception.PortalException,
1233                            com.liferay.portal.kernel.exception.SystemException {
1234                    return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL);
1235            }
1236    
1237            /**
1238            * Returns the group with the matching group name.
1239            *
1240            * @param companyId the primary key of the company
1241            * @param name the group's name
1242            * @return the group with the name
1243            * @throws PortalException if a matching group could not be found
1244            * @throws SystemException if a system exception occurred
1245            */
1246            @Override
1247            public com.liferay.portal.model.Group getGroup(long companyId,
1248                    java.lang.String name)
1249                    throws com.liferay.portal.kernel.exception.PortalException,
1250                            com.liferay.portal.kernel.exception.SystemException {
1251                    return _groupLocalService.getGroup(companyId, name);
1252            }
1253    
1254            @Override
1255            public java.lang.String getGroupDescriptiveName(
1256                    com.liferay.portal.model.Group group, java.util.Locale locale)
1257                    throws com.liferay.portal.kernel.exception.PortalException,
1258                            com.liferay.portal.kernel.exception.SystemException {
1259                    return _groupLocalService.getGroupDescriptiveName(group, locale);
1260            }
1261    
1262            @Override
1263            public java.lang.String getGroupDescriptiveName(long groupId,
1264                    java.util.Locale locale)
1265                    throws com.liferay.portal.kernel.exception.PortalException,
1266                            com.liferay.portal.kernel.exception.SystemException {
1267                    return _groupLocalService.getGroupDescriptiveName(groupId, locale);
1268            }
1269    
1270            /**
1271            * Returns all the groups that are direct children of the parent group.
1272            *
1273            * @param companyId the primary key of the company
1274            * @param parentGroupId the primary key of the parent group
1275            * @param site whether the group is to be associated with a main site
1276            * @return the matching groups, or <code>null</code> if no matches were
1277            found
1278            * @throws SystemException if a system exception occurred
1279            */
1280            @Override
1281            public java.util.List<com.liferay.portal.model.Group> getGroups(
1282                    long companyId, long parentGroupId, boolean site)
1283                    throws com.liferay.portal.kernel.exception.SystemException {
1284                    return _groupLocalService.getGroups(companyId, parentGroupId, site);
1285            }
1286    
1287            /**
1288            * Returns all the groups that are direct children of the parent group with
1289            * the matching className.
1290            *
1291            * @param companyId the primary key of the company
1292            * @param className the class name of the group
1293            * @param parentGroupId the primary key of the parent group
1294            * @return the matching groups, or <code>null</code> if no matches were
1295            found
1296            * @throws SystemException if a system exception occurred
1297            */
1298            @Override
1299            public java.util.List<com.liferay.portal.model.Group> getGroups(
1300                    long companyId, java.lang.String className, long parentGroupId)
1301                    throws com.liferay.portal.kernel.exception.SystemException {
1302                    return _groupLocalService.getGroups(companyId, className, parentGroupId);
1303            }
1304    
1305            /**
1306            * Returns a range of all the groups that are direct children of the parent
1307            * group with the matching className.
1308            *
1309            * @param companyId the primary key of the company
1310            * @param className the class name of the group
1311            * @param parentGroupId the primary key of the parent group
1312            * @param start the lower bound of the range of results
1313            * @param end the upper bound of the range of results (not inclusive)
1314            * @return the range of matching groups
1315            * @throws SystemException if a system exception occurred
1316            */
1317            @Override
1318            public java.util.List<com.liferay.portal.model.Group> getGroups(
1319                    long companyId, java.lang.String className, long parentGroupId,
1320                    int start, int end)
1321                    throws com.liferay.portal.kernel.exception.SystemException {
1322                    return _groupLocalService.getGroups(companyId, className,
1323                            parentGroupId, start, end);
1324            }
1325    
1326            /**
1327            * Returns the groups with the matching primary keys.
1328            *
1329            * @param groupIds the primary keys of the groups
1330            * @return the groups with the primary keys
1331            * @throws PortalException if any one of the groups could not be found
1332            * @throws SystemException if a system exception occurred
1333            */
1334            @Override
1335            public java.util.List<com.liferay.portal.model.Group> getGroups(
1336                    long[] groupIds)
1337                    throws com.liferay.portal.kernel.exception.PortalException,
1338                            com.liferay.portal.kernel.exception.SystemException {
1339                    return _groupLocalService.getGroups(groupIds);
1340            }
1341    
1342            /**
1343            * Returns the number of groups that are direct children of the parent
1344            * group.
1345            *
1346            * @param companyId the primary key of the company
1347            * @param parentGroupId the primary key of the parent group
1348            * @param site whether the group is to be associated with a main site
1349            * @return the number of matching groups
1350            * @throws SystemException if a system exception occurred
1351            */
1352            @Override
1353            public int getGroupsCount(long companyId, long parentGroupId, boolean site)
1354                    throws com.liferay.portal.kernel.exception.SystemException {
1355                    return _groupLocalService.getGroupsCount(companyId, parentGroupId, site);
1356            }
1357    
1358            /**
1359            * Returns the number of groups that are direct children of the parent group
1360            * with the matching className.
1361            *
1362            * @param companyId the primary key of the company
1363            * @param className the class name of the group
1364            * @param parentGroupId the primary key of the parent group
1365            * @return the number of matching groups
1366            * @throws SystemException if a system exception occurred
1367            */
1368            @Override
1369            public int getGroupsCount(long companyId, java.lang.String className,
1370                    long parentGroupId)
1371                    throws com.liferay.portal.kernel.exception.SystemException {
1372                    return _groupLocalService.getGroupsCount(companyId, className,
1373                            parentGroupId);
1374            }
1375    
1376            /**
1377            * Returns the group associated with the layout.
1378            *
1379            * @param companyId the primary key of the company
1380            * @param plid the primary key of the layout
1381            * @return the group associated with the layout
1382            * @throws PortalException if a matching group could not be found
1383            * @throws SystemException if a system exception occurred
1384            */
1385            @Override
1386            public com.liferay.portal.model.Group getLayoutGroup(long companyId,
1387                    long plid)
1388                    throws com.liferay.portal.kernel.exception.PortalException,
1389                            com.liferay.portal.kernel.exception.SystemException {
1390                    return _groupLocalService.getLayoutGroup(companyId, plid);
1391            }
1392    
1393            /**
1394            * Returns the group associated with the layout prototype.
1395            *
1396            * @param companyId the primary key of the company
1397            * @param layoutPrototypeId the primary key of the layout prototype
1398            * @return the group associated with the layout prototype
1399            * @throws PortalException if a matching group could not be found
1400            * @throws SystemException if a system exception occurred
1401            */
1402            @Override
1403            public com.liferay.portal.model.Group getLayoutPrototypeGroup(
1404                    long companyId, long layoutPrototypeId)
1405                    throws com.liferay.portal.kernel.exception.PortalException,
1406                            com.liferay.portal.kernel.exception.SystemException {
1407                    return _groupLocalService.getLayoutPrototypeGroup(companyId,
1408                            layoutPrototypeId);
1409            }
1410    
1411            /**
1412            * Returns the group associated with the layout set prototype.
1413            *
1414            * @param companyId the primary key of the company
1415            * @param layoutSetPrototypeId the primary key of the layout set prototype
1416            * @return the group associated with the layout set prototype
1417            * @throws PortalException if a matching group could not be found
1418            * @throws SystemException if a system exception occurred
1419            */
1420            @Override
1421            public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
1422                    long companyId, long layoutSetPrototypeId)
1423                    throws com.liferay.portal.kernel.exception.PortalException,
1424                            com.liferay.portal.kernel.exception.SystemException {
1425                    return _groupLocalService.getLayoutSetPrototypeGroup(companyId,
1426                            layoutSetPrototypeId);
1427            }
1428    
1429            /**
1430            * Returns a range of all groups that are children of the parent group and
1431            * that have at least one layout.
1432            *
1433            * <p>
1434            * Useful when paginating results. Returns a maximum of <code>end -
1435            * start</code> instances. <code>start</code> and <code>end</code> are not
1436            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1437            * refers to the first result in the set. Setting both <code>start</code>
1438            * and <code>end</code> to {@link
1439            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1440            * result set.
1441            * </p>
1442            *
1443            * @param companyId the primary key of the company
1444            * @param parentGroupId the primary key of the parent group
1445            * @param site whether the group is to be associated with a main site
1446            * @param start the lower bound of the range of groups to return
1447            * @param end the upper bound of the range of groups to return (not
1448            inclusive)
1449            * @return the range of matching groups
1450            * @throws SystemException if a system exception occurred
1451            * @deprecated As of 6.2.0, replaced by {@link #getLayoutsGroups(long, long,
1452            boolean, int, int, OrderByComparator)}
1453            */
1454            @Override
1455            public java.util.List<com.liferay.portal.model.Group> getLayoutsGroups(
1456                    long companyId, long parentGroupId, boolean site, int start, int end)
1457                    throws com.liferay.portal.kernel.exception.SystemException {
1458                    return _groupLocalService.getLayoutsGroups(companyId, parentGroupId,
1459                            site, start, end);
1460            }
1461    
1462            /**
1463            * Returns a range of all groups that are children of the parent group and
1464            * that have at least one layout.
1465            *
1466            * <p>
1467            * Useful when paginating results. Returns a maximum of <code>end -
1468            * start</code> instances. <code>start</code> and <code>end</code> are not
1469            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1470            * refers to the first result in the set. Setting both <code>start</code>
1471            * and <code>end</code> to {@link
1472            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1473            * result set.
1474            * </p>
1475            *
1476            * @param companyId the primary key of the company
1477            * @param parentGroupId the primary key of the parent group
1478            * @param site whether the group is to be associated with a main site
1479            * @param start the lower bound of the range of groups to return
1480            * @param end the upper bound of the range of groups to return (not
1481            inclusive)
1482            * @param obc the comparator to order the groups (optionally
1483            <code>null</code>)
1484            * @return the range of matching groups ordered by comparator
1485            <code>obc</code>
1486            * @throws SystemException if a system exception occurred
1487            */
1488            @Override
1489            public java.util.List<com.liferay.portal.model.Group> getLayoutsGroups(
1490                    long companyId, long parentGroupId, boolean site, int start, int end,
1491                    com.liferay.portal.kernel.util.OrderByComparator obc)
1492                    throws com.liferay.portal.kernel.exception.SystemException {
1493                    return _groupLocalService.getLayoutsGroups(companyId, parentGroupId,
1494                            site, start, end, obc);
1495            }
1496    
1497            /**
1498            * Returns the number of groups that are children or the parent group and
1499            * that have at least one layout
1500            *
1501            * @param companyId the primary key of the company
1502            * @param parentGroupId the primary key of the parent group
1503            * @param site whether the group is to be associated with a main site
1504            * @return the number of matching groups
1505            * @throws SystemException if a system exception occurred
1506            */
1507            @Override
1508            public int getLayoutsGroupsCount(long companyId, long parentGroupId,
1509                    boolean site)
1510                    throws com.liferay.portal.kernel.exception.SystemException {
1511                    return _groupLocalService.getLayoutsGroupsCount(companyId,
1512                            parentGroupId, site);
1513            }
1514    
1515            /**
1516            * Returns all live groups.
1517            *
1518            * @return all live groups
1519            * @throws SystemException if a system exception occurred
1520            */
1521            @Override
1522            public java.util.List<com.liferay.portal.model.Group> getLiveGroups()
1523                    throws com.liferay.portal.kernel.exception.SystemException {
1524                    return _groupLocalService.getLiveGroups();
1525            }
1526    
1527            /**
1528            * Returns a range of all non-system groups of a specified type (className)
1529            * that have no layouts.
1530            *
1531            * <p>
1532            * Useful when paginating results. Returns a maximum of <code>end -
1533            * start</code> instances. <code>start</code> and <code>end</code> are not
1534            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1535            * refers to the first result in the set. Setting both <code>start</code>
1536            * and <code>end</code> to {@link
1537            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1538            * result set.
1539            * </p>
1540            *
1541            * @param className the entity's class name
1542            * @param privateLayout whether to include groups with private layout sets
1543            or non-private layout sets
1544            * @param start the lower bound of the range of groups to return
1545            * @param end the upper bound of the range of groups to return (not
1546            inclusive)
1547            * @return the range of matching groups
1548            * @throws SystemException if a system exception occurred
1549            */
1550            @Override
1551            public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
1552                    java.lang.String className, boolean privateLayout, int start, int end)
1553                    throws com.liferay.portal.kernel.exception.SystemException {
1554                    return _groupLocalService.getNoLayoutsGroups(className, privateLayout,
1555                            start, end);
1556            }
1557    
1558            /**
1559            * Returns all non-system groups having <code>null</code> or empty friendly
1560            * URLs.
1561            *
1562            * @return the non-system groups having <code>null</code> or empty friendly
1563            URLs
1564            * @throws SystemException if a system exception occurred
1565            */
1566            @Override
1567            public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
1568                    throws com.liferay.portal.kernel.exception.SystemException {
1569                    return _groupLocalService.getNullFriendlyURLGroups();
1570            }
1571    
1572            /**
1573            * Returns the specified organization group.
1574            *
1575            * @param companyId the primary key of the company
1576            * @param organizationId the primary key of the organization
1577            * @return the group associated with the organization
1578            * @throws PortalException if a matching group could not be found
1579            * @throws SystemException if a system exception occurred
1580            */
1581            @Override
1582            public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
1583                    long organizationId)
1584                    throws com.liferay.portal.kernel.exception.PortalException,
1585                            com.liferay.portal.kernel.exception.SystemException {
1586                    return _groupLocalService.getOrganizationGroup(companyId, organizationId);
1587            }
1588    
1589            /**
1590            * Returns the specified organization groups.
1591            *
1592            * @param organizations the organizations
1593            * @return the groups associated with the organizations
1594            */
1595            @Override
1596            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
1597                    java.util.List<com.liferay.portal.model.Organization> organizations) {
1598                    return _groupLocalService.getOrganizationsGroups(organizations);
1599            }
1600    
1601            /**
1602            * Returns all the groups related to the organizations.
1603            *
1604            * @param organizations the organizations
1605            * @return the groups related to the organizations
1606            * @throws SystemException if a system exception occurred
1607            */
1608            @Override
1609            public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
1610                    java.util.List<com.liferay.portal.model.Organization> organizations)
1611                    throws com.liferay.portal.kernel.exception.SystemException {
1612                    return _groupLocalService.getOrganizationsRelatedGroups(organizations);
1613            }
1614    
1615            /**
1616            * Returns the group followed by all its parent groups ordered by closest
1617            * ancestor.
1618            *
1619            * @param groupId the primary key of the group
1620            * @return the group followed by all its parent groups ordered by closest
1621            ancestor
1622            * @throws PortalException if a group with the primary key could not be
1623            found
1624            * @throws SystemException if a system exception occurred
1625            */
1626            @Override
1627            public java.util.List<com.liferay.portal.model.Group> getParentGroups(
1628                    long groupId)
1629                    throws com.liferay.portal.kernel.exception.PortalException,
1630                            com.liferay.portal.kernel.exception.SystemException {
1631                    return _groupLocalService.getParentGroups(groupId);
1632            }
1633    
1634            /**
1635            * Returns the staging group.
1636            *
1637            * @param liveGroupId the primary key of the live group
1638            * @return the staging group
1639            * @throws PortalException if a matching staging group could not be found
1640            * @throws SystemException if a system exception occurred
1641            */
1642            @Override
1643            public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
1644                    throws com.liferay.portal.kernel.exception.PortalException,
1645                            com.liferay.portal.kernel.exception.SystemException {
1646                    return _groupLocalService.getStagingGroup(liveGroupId);
1647            }
1648    
1649            /**
1650            * Returns the group associated with the user.
1651            *
1652            * @param companyId the primary key of the company
1653            * @param userId the primary key of the user
1654            * @return the group associated with the user
1655            * @throws PortalException if a matching group could not be found
1656            * @throws SystemException if a system exception occurred
1657            */
1658            @Override
1659            public com.liferay.portal.model.Group getUserGroup(long companyId,
1660                    long userId)
1661                    throws com.liferay.portal.kernel.exception.PortalException,
1662                            com.liferay.portal.kernel.exception.SystemException {
1663                    return _groupLocalService.getUserGroup(companyId, userId);
1664            }
1665    
1666            /**
1667            * Returns the specified "user group" group. That is, the group that
1668            * represents the {@link com.liferay.portal.model.UserGroup} entity.
1669            *
1670            * @param companyId the primary key of the company
1671            * @param userGroupId the primary key of the user group
1672            * @return the group associated with the user group
1673            * @throws PortalException if a matching group could not be found
1674            * @throws SystemException if a system exception occurred
1675            */
1676            @Override
1677            public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
1678                    long userGroupId)
1679                    throws com.liferay.portal.kernel.exception.PortalException,
1680                            com.liferay.portal.kernel.exception.SystemException {
1681                    return _groupLocalService.getUserGroupGroup(companyId, userGroupId);
1682            }
1683    
1684            /**
1685            * Returns all the user's site groups and immediate organization groups,
1686            * optionally including the user's inherited organization groups and user
1687            * groups. System and staged groups are not included.
1688            *
1689            * @param userId the primary key of the user
1690            * @param inherit whether to include the user's inherited organization
1691            groups and user groups
1692            * @return the user's groups and immediate organization groups
1693            * @throws PortalException if a user with the primary key could not be found
1694            * @throws SystemException if a system exception occurred
1695            */
1696            @Override
1697            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
1698                    long userId, boolean inherit)
1699                    throws com.liferay.portal.kernel.exception.PortalException,
1700                            com.liferay.portal.kernel.exception.SystemException {
1701                    return _groupLocalService.getUserGroups(userId, inherit);
1702            }
1703    
1704            /**
1705            * Returns an ordered range of all the user's site groups and immediate
1706            * organization groups, optionally including the user's inherited
1707            * organization groups and user groups. System and staged groups are not
1708            * included.
1709            *
1710            * <p>
1711            * Useful when paginating results. Returns a maximum of <code>end -
1712            * start</code> instances. <code>start</code> and <code>end</code> are not
1713            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1714            * refers to the first result in the set. Setting both <code>start</code>
1715            * and <code>end</code> to {@link
1716            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1717            * result set.
1718            * </p>
1719            *
1720            * @param userId the primary key of the user
1721            * @param inherit whether to include the user's inherited organization
1722            groups and user groups
1723            * @param start the lower bound of the range of groups to return
1724            * @param end the upper bound of the range of groups to return (not
1725            inclusive)
1726            * @return the range of the user's groups and immediate organization groups
1727            ordered by name
1728            * @throws PortalException if a user with the primary key could not be found
1729            * @throws SystemException if a system exception occurred
1730            */
1731            @Override
1732            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
1733                    long userId, boolean inherit, int start, int end)
1734                    throws com.liferay.portal.kernel.exception.PortalException,
1735                            com.liferay.portal.kernel.exception.SystemException {
1736                    return _groupLocalService.getUserGroups(userId, inherit, start, end);
1737            }
1738    
1739            /**
1740            * Returns the groups associated with the user groups.
1741            *
1742            * @param userGroups the user groups
1743            * @return the groups associated with the user groups
1744            * @throws PortalException if any one of the user group's group could not be
1745            found
1746            * @throws SystemException if a system exception occurred
1747            */
1748            @Override
1749            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
1750                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1751                    throws com.liferay.portal.kernel.exception.PortalException,
1752                            com.liferay.portal.kernel.exception.SystemException {
1753                    return _groupLocalService.getUserGroupsGroups(userGroups);
1754            }
1755    
1756            /**
1757            * Returns all the groups related to the user groups.
1758            *
1759            * @param userGroups the user groups
1760            * @return the groups related to the user groups
1761            * @throws SystemException if a system exception occurred
1762            */
1763            @Override
1764            public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
1765                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1766                    throws com.liferay.portal.kernel.exception.SystemException {
1767                    return _groupLocalService.getUserGroupsRelatedGroups(userGroups);
1768            }
1769    
1770            /**
1771            * Returns the range of all groups associated with the user's organization
1772            * groups, including the ancestors of the organization groups, unless portal
1773            * property <code>organizations.membership.strict</code> is set to
1774            * <code>true</code>.
1775            *
1776            * <p>
1777            * Useful when paginating results. Returns a maximum of <code>end -
1778            * start</code> instances. <code>start</code> and <code>end</code> are not
1779            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1780            * refers to the first result in the set. Setting both <code>start</code>
1781            * and <code>end</code> to {@link
1782            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1783            * result set.
1784            * </p>
1785            *
1786            * @param userId the primary key of the user
1787            * @param start the lower bound of the range of groups to consider
1788            * @param end the upper bound of the range of groups to consider (not
1789            inclusive)
1790            * @return the range of groups associated with the user's organization
1791            groups
1792            * @throws PortalException if a user with the primary key could not be found
1793            or if another portal exception occurred
1794            * @throws SystemException if a system exception occurred
1795            */
1796            @Override
1797            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
1798                    long userId, int start, int end)
1799                    throws com.liferay.portal.kernel.exception.PortalException,
1800                            com.liferay.portal.kernel.exception.SystemException {
1801                    return _groupLocalService.getUserOrganizationsGroups(userId, start, end);
1802            }
1803    
1804            @Override
1805            public com.liferay.portal.model.Group getUserPersonalSiteGroup(
1806                    long companyId)
1807                    throws com.liferay.portal.kernel.exception.PortalException,
1808                            com.liferay.portal.kernel.exception.SystemException {
1809                    return _groupLocalService.getUserPersonalSiteGroup(companyId);
1810            }
1811    
1812            @Override
1813            public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
1814                    long userId)
1815                    throws com.liferay.portal.kernel.exception.PortalException,
1816                            com.liferay.portal.kernel.exception.SystemException {
1817                    return _groupLocalService.getUserSitesGroups(userId);
1818            }
1819    
1820            @Override
1821            public java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
1822                    long userId, boolean includeAdministrative)
1823                    throws com.liferay.portal.kernel.exception.PortalException,
1824                            com.liferay.portal.kernel.exception.SystemException {
1825                    return _groupLocalService.getUserSitesGroups(userId,
1826                            includeAdministrative);
1827            }
1828    
1829            /**
1830            * Returns <code>true</code> if the live group has a staging group.
1831            *
1832            * @param liveGroupId the primary key of the live group
1833            * @return <code>true</code> if the live group has a staging group;
1834            <code>false</code> otherwise
1835            * @throws SystemException if a system exception occurred
1836            */
1837            @Override
1838            public boolean hasStagingGroup(long liveGroupId)
1839                    throws com.liferay.portal.kernel.exception.SystemException {
1840                    return _groupLocalService.hasStagingGroup(liveGroupId);
1841            }
1842    
1843            /**
1844            * Returns <code>true</code> if the user is immediately associated with the
1845            * group, or optionally if the user is associated with the group via the
1846            * user's organizations, inherited organizations, or user groups.
1847            *
1848            * @param userId the primary key of the user
1849            * @param groupId the primary key of the group
1850            * @param inherit whether to include organization groups and user groups to
1851            which the user belongs in the determination
1852            * @return <code>true</code> if the user is associated with the group;
1853            <code>false</code> otherwise
1854            * @throws SystemException if a system exception occurred
1855            */
1856            @Override
1857            public boolean hasUserGroup(long userId, long groupId, boolean inherit)
1858                    throws com.liferay.portal.kernel.exception.SystemException {
1859                    return _groupLocalService.hasUserGroup(userId, groupId, inherit);
1860            }
1861    
1862            /**
1863            * Returns the group with the matching group name by first searching the
1864            * system groups and then using the finder cache.
1865            *
1866            * @param companyId the primary key of the company
1867            * @param name the group's name
1868            * @return the group with the name and associated company, or
1869            <code>null</code> if a matching group could not be found
1870            * @throws SystemException if a system exception occurred
1871            */
1872            @Override
1873            public com.liferay.portal.model.Group loadFetchGroup(long companyId,
1874                    java.lang.String name)
1875                    throws com.liferay.portal.kernel.exception.SystemException {
1876                    return _groupLocalService.loadFetchGroup(companyId, name);
1877            }
1878    
1879            /**
1880            * Returns the group with the matching group name.
1881            *
1882            * @param companyId the primary key of the company
1883            * @param name the group's name
1884            * @return the group with the name and associated company
1885            * @throws PortalException if a matching group could not be found
1886            * @throws SystemException if a system exception occurred
1887            */
1888            @Override
1889            public com.liferay.portal.model.Group loadGetGroup(long companyId,
1890                    java.lang.String name)
1891                    throws com.liferay.portal.kernel.exception.PortalException,
1892                            com.liferay.portal.kernel.exception.SystemException {
1893                    return _groupLocalService.loadGetGroup(companyId, name);
1894            }
1895    
1896            /**
1897            * Rebuilds the group tree.
1898            *
1899            * <p>
1900            * Only call this method if the tree has become stale through operations
1901            * other than normal CRUD. Under normal circumstances the tree is
1902            * automatically rebuilt whenever necessary.
1903            * </p>
1904            *
1905            * @param companyId the primary key of the group's company
1906            * @throws PortalException if a group with the primary key could not be
1907            found
1908            * @throws SystemException if a system exception occurred
1909            */
1910            @Override
1911            public void rebuildTree(long companyId)
1912                    throws com.liferay.portal.kernel.exception.PortalException,
1913                            com.liferay.portal.kernel.exception.SystemException {
1914                    _groupLocalService.rebuildTree(companyId);
1915            }
1916    
1917            /**
1918            * Returns an ordered range of all the company's groups, optionally
1919            * including the user's inherited organization groups and user groups.
1920            * System and staged groups are not included.
1921            *
1922            * <p>
1923            * Useful when paginating results. Returns a maximum of <code>end -
1924            * start</code> instances. <code>start</code> and <code>end</code> are not
1925            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1926            * refers to the first result in the set. Setting both <code>start</code>
1927            * and <code>end</code> to {@link
1928            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1929            * result set.
1930            * </p>
1931            *
1932            * @param companyId the primary key of the company
1933            * @param params the finder params (optionally <code>null</code>). To
1934            include a user's organizations, inherited organizations, and user
1935            groups in the search, add an entry with key
1936            &quot;usersGroups&quot; mapped to the user's ID and an entry with
1937            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
1938            For more information see {@link
1939            com.liferay.portal.service.persistence.GroupFinder}
1940            * @param start the lower bound of the range of groups to return
1941            * @param end the upper bound of the range of groups to return (not
1942            inclusive)
1943            * @return the matching groups ordered by name
1944            * @throws SystemException if a system exception occurred
1945            */
1946            @Override
1947            public java.util.List<com.liferay.portal.model.Group> search(
1948                    long companyId,
1949                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1950                    int start, int end)
1951                    throws com.liferay.portal.kernel.exception.SystemException {
1952                    return _groupLocalService.search(companyId, params, start, end);
1953            }
1954    
1955            /**
1956            * Returns an ordered range of all the groups belonging to the parent group
1957            * that match the keywords, optionally including the user's inherited
1958            * organization groups and user groups. System and staged groups are not
1959            * included.
1960            *
1961            * <p>
1962            * Useful when paginating results. Returns a maximum of <code>end -
1963            * start</code> instances. <code>start</code> and <code>end</code> are not
1964            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1965            * refers to the first result in the set. Setting both <code>start</code>
1966            * and <code>end</code> to {@link
1967            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1968            * result set.
1969            * </p>
1970            *
1971            * @param companyId the primary key of the company
1972            * @param parentGroupId the primary key of the parent group
1973            * @param keywords the keywords (space separated), which may occur in the
1974            sites's name, or description (optionally <code>null</code>)
1975            * @param params the finder params (optionally <code>null</code>). To
1976            include the user's inherited organizations and user groups in the
1977            search, add entries having &quot;usersGroups&quot; and
1978            &quot;inherit&quot; as keys mapped to the the user's ID. For more
1979            information see {@link
1980            com.liferay.portal.service.persistence.GroupFinder}
1981            * @param start the lower bound of the range of groups to return
1982            * @param end the upper bound of the range of groups to return (not
1983            inclusive)
1984            * @return the matching groups ordered by name
1985            * @throws SystemException if a system exception occurred
1986            */
1987            @Override
1988            public java.util.List<com.liferay.portal.model.Group> search(
1989                    long companyId, long parentGroupId, java.lang.String keywords,
1990                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1991                    int start, int end)
1992                    throws com.liferay.portal.kernel.exception.SystemException {
1993                    return _groupLocalService.search(companyId, parentGroupId, keywords,
1994                            params, start, end);
1995            }
1996    
1997            /**
1998            * Returns an ordered range of all the groups belonging to the parent group
1999            * that match the keywords, optionally including the user's inherited
2000            * organization groups and user groups. System and staged groups are not
2001            * included.
2002            *
2003            * <p>
2004            * Useful when paginating results. Returns a maximum of <code>end -
2005            * start</code> instances. <code>start</code> and <code>end</code> are not
2006            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2007            * refers to the first result in the set. Setting both <code>start</code>
2008            * and <code>end</code> to {@link
2009            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2010            * result set.
2011            * </p>
2012            *
2013            * @param companyId the primary key of the company
2014            * @param parentGroupId the primary key of the parent group
2015            * @param keywords the keywords (space separated), which may occur in the
2016            sites's name, or description (optionally <code>null</code>)
2017            * @param params the finder params (optionally <code>null</code>). To
2018            include the user's inherited organizations and user groups in the
2019            search, add entries having &quot;usersGroups&quot; and
2020            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2021            information see {@link
2022            com.liferay.portal.service.persistence.GroupFinder}
2023            * @param start the lower bound of the range of groups to return
2024            * @param end the upper bound of the range of groups to return (not
2025            inclusive)
2026            * @param obc the comparator to order the groups (optionally
2027            <code>null</code>)
2028            * @return the matching groups ordered by comparator <code>obc</code>
2029            * @throws SystemException if a system exception occurred
2030            */
2031            @Override
2032            public java.util.List<com.liferay.portal.model.Group> search(
2033                    long companyId, long parentGroupId, java.lang.String keywords,
2034                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2035                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2036                    throws com.liferay.portal.kernel.exception.SystemException {
2037                    return _groupLocalService.search(companyId, parentGroupId, keywords,
2038                            params, start, end, obc);
2039            }
2040    
2041            /**
2042            * Returns an ordered range of all the site groups belonging to the parent
2043            * group and organization groups that match the name and description,
2044            * optionally including the user's inherited organization groups and user
2045            * groups. System and staged groups are not included.
2046            *
2047            * <p>
2048            * Useful when paginating results. Returns a maximum of <code>end -
2049            * start</code> instances. <code>start</code> and <code>end</code> are not
2050            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2051            * refers to the first result in the set. Setting both <code>start</code>
2052            * and <code>end</code> to {@link
2053            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2054            * result set.
2055            * </p>
2056            *
2057            * @param companyId the primary key of the company
2058            * @param parentGroupId the primary key of the parent group
2059            * @param name the group's name (optionally <code>null</code>)
2060            * @param description the group's description (optionally
2061            <code>null</code>)
2062            * @param params the finder params (optionally <code>null</code>). To
2063            include the user's inherited organizations and user groups in the
2064            search, add entries having &quot;usersGroups&quot; and
2065            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2066            information see {@link
2067            com.liferay.portal.service.persistence.GroupFinder}
2068            * @param andOperator whether every field must match its keywords, or just
2069            one field.
2070            * @param start the lower bound of the range of groups to return
2071            * @param end the upper bound of the range of groups to return (not
2072            inclusive)
2073            * @return the matching groups ordered by name
2074            * @throws SystemException if a system exception occurred
2075            */
2076            @Override
2077            public java.util.List<com.liferay.portal.model.Group> search(
2078                    long companyId, long parentGroupId, java.lang.String name,
2079                    java.lang.String description,
2080                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2081                    boolean andOperator, int start, int end)
2082                    throws com.liferay.portal.kernel.exception.SystemException {
2083                    return _groupLocalService.search(companyId, parentGroupId, name,
2084                            description, params, andOperator, start, end);
2085            }
2086    
2087            /**
2088            * Returns an ordered range of all the site groups belonging to the parent
2089            * group and organization groups that match the name and description,
2090            * optionally including the user's inherited organization groups and user
2091            * groups. System and staged groups are not included.
2092            *
2093            * <p>
2094            * Useful when paginating results. Returns a maximum of <code>end -
2095            * start</code> instances. <code>start</code> and <code>end</code> are not
2096            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2097            * refers to the first result in the set. Setting both <code>start</code>
2098            * and <code>end</code> to {@link
2099            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2100            * result set.
2101            * </p>
2102            *
2103            * @param companyId the primary key of the company
2104            * @param parentGroupId the primary key of the parent group
2105            * @param name the group's name (optionally <code>null</code>)
2106            * @param description the group's description (optionally
2107            <code>null</code>)
2108            * @param params the finder params (optionally <code>null</code>). To
2109            include the user's inherited organizations and user groups in the
2110            search, add entries having &quot;usersGroups&quot; and
2111            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2112            information see {@link
2113            com.liferay.portal.service.persistence.GroupFinder}
2114            * @param andOperator whether every field must match its keywords, or just
2115            one field.
2116            * @param start the lower bound of the range of groups to return
2117            * @param end the upper bound of the range of groups to return (not
2118            inclusive)
2119            * @param obc the comparator to order the groups (optionally
2120            <code>null</code>)
2121            * @return the matching groups ordered by comparator <code>obc</code>
2122            * @throws SystemException if a system exception occurred
2123            */
2124            @Override
2125            public java.util.List<com.liferay.portal.model.Group> search(
2126                    long companyId, long parentGroupId, java.lang.String name,
2127                    java.lang.String description,
2128                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2129                    boolean andOperator, int start, int end,
2130                    com.liferay.portal.kernel.util.OrderByComparator obc)
2131                    throws com.liferay.portal.kernel.exception.SystemException {
2132                    return _groupLocalService.search(companyId, parentGroupId, name,
2133                            description, params, andOperator, start, end, obc);
2134            }
2135    
2136            /**
2137            * Returns an ordered range of all the groups belonging to the parent group
2138            * that match the class name IDs and keywords, optionally including the
2139            * user's inherited organization groups and user groups. System and staged
2140            * groups are not included.
2141            *
2142            * <p>
2143            * Useful when paginating results. Returns a maximum of <code>end -
2144            * start</code> instances. <code>start</code> and <code>end</code> are not
2145            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2146            * refers to the first result in the set. Setting both <code>start</code>
2147            * and <code>end</code> to {@link
2148            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2149            * result set.
2150            * </p>
2151            *
2152            * @param companyId the primary key of the company
2153            * @param classNameIds the primary keys of the class names of the entities
2154            the groups are related to (optionally <code>null</code>)
2155            * @param parentGroupId the primary key of the parent group
2156            * @param keywords the keywords (space separated), which may occur in the
2157            sites's name, or description (optionally <code>null</code>)
2158            * @param params the finder params (optionally <code>null</code>). To
2159            include a user's organizations, inherited organizations, and user
2160            groups in the search, add an entry with key
2161            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2162            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2163            For more information see {@link
2164            com.liferay.portal.service.persistence.GroupFinder}
2165            * @param start the lower bound of the range of groups to return
2166            * @param end the upper bound of the range of groups to return (not
2167            inclusive)
2168            * @return the matching groups ordered by name
2169            * @throws SystemException if a system exception occurred
2170            */
2171            @Override
2172            public java.util.List<com.liferay.portal.model.Group> search(
2173                    long companyId, long[] classNameIds, long parentGroupId,
2174                    java.lang.String keywords,
2175                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2176                    int start, int end)
2177                    throws com.liferay.portal.kernel.exception.SystemException {
2178                    return _groupLocalService.search(companyId, classNameIds,
2179                            parentGroupId, keywords, params, start, end);
2180            }
2181    
2182            /**
2183            * Returns an ordered range of all the groups belonging to the parent group
2184            * that match the class name IDs and keywords, optionally including the
2185            * user's inherited organization groups and user groups. System and staged
2186            * groups are not included.
2187            *
2188            * <p>
2189            * Useful when paginating results. Returns a maximum of <code>end -
2190            * start</code> instances. <code>start</code> and <code>end</code> are not
2191            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2192            * refers to the first result in the set. Setting both <code>start</code>
2193            * and <code>end</code> to {@link
2194            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2195            * result set.
2196            * </p>
2197            *
2198            * @param companyId the primary key of the company
2199            * @param classNameIds the primary keys of the class names of the entities
2200            the groups are related to (optionally <code>null</code>)
2201            * @param parentGroupId the primary key of the parent group
2202            * @param keywords the keywords (space separated), which may occur in the
2203            sites's name, or description (optionally <code>null</code>)
2204            * @param params the finder params (optionally <code>null</code>). To
2205            include a user's organizations, inherited organizations, and user
2206            groups in the search, add an entry with key
2207            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2208            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2209            For more information see {@link
2210            com.liferay.portal.service.persistence.GroupFinder}
2211            * @param start the lower bound of the range of groups to return
2212            * @param end the upper bound of the range of groups to return (not
2213            inclusive)
2214            * @param obc the comparator to order the groups (optionally
2215            <code>null</code>)
2216            * @return the matching groups ordered by comparator <code>obc</code>
2217            * @throws SystemException if a system exception occurred
2218            */
2219            @Override
2220            public java.util.List<com.liferay.portal.model.Group> search(
2221                    long companyId, long[] classNameIds, long parentGroupId,
2222                    java.lang.String keywords,
2223                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2224                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2225                    throws com.liferay.portal.kernel.exception.SystemException {
2226                    return _groupLocalService.search(companyId, classNameIds,
2227                            parentGroupId, keywords, params, start, end, obc);
2228            }
2229    
2230            /**
2231            * Returns an ordered range of all the groups belonging to the parent group
2232            * that match the class name IDs, name, and description, optionally
2233            * including the user's inherited organization groups and user groups.
2234            * System and staged groups are not included.
2235            *
2236            * <p>
2237            * Useful when paginating results. Returns a maximum of <code>end -
2238            * start</code> instances. <code>start</code> and <code>end</code> are not
2239            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2240            * refers to the first result in the set. Setting both <code>start</code>
2241            * and <code>end</code> to {@link
2242            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2243            * result set.
2244            * </p>
2245            *
2246            * @param companyId the primary key of the company
2247            * @param classNameIds the primary keys of the class names of the entities
2248            the groups are related to (optionally <code>null</code>)
2249            * @param parentGroupId the primary key of the parent group
2250            * @param name the group's name (optionally <code>null</code>)
2251            * @param description the group's description (optionally
2252            <code>null</code>)
2253            * @param params the finder params (optionally <code>null</code>). To
2254            include a user's organizations, inherited organizations, and user
2255            groups in the search, add an entry with key
2256            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2257            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2258            For more information see {@link
2259            com.liferay.portal.service.persistence.GroupFinder}
2260            * @param andOperator whether every field must match its keywords, or just
2261            one field.
2262            * @param start the lower bound of the range of groups to return
2263            * @param end the upper bound of the range of groups to return (not
2264            inclusive)
2265            * @return the matching groups ordered by name
2266            * @throws SystemException if a system exception occurred
2267            */
2268            @Override
2269            public java.util.List<com.liferay.portal.model.Group> search(
2270                    long companyId, long[] classNameIds, long parentGroupId,
2271                    java.lang.String name, java.lang.String description,
2272                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2273                    boolean andOperator, int start, int end)
2274                    throws com.liferay.portal.kernel.exception.SystemException {
2275                    return _groupLocalService.search(companyId, classNameIds,
2276                            parentGroupId, name, description, params, andOperator, start, end);
2277            }
2278    
2279            /**
2280            * Returns an ordered range of all the groups belonging to the parent group
2281            * that match the class name IDs, name, and description, optionally
2282            * including the user's inherited organization groups and user groups.
2283            * System and staged groups are not included.
2284            *
2285            * <p>
2286            * Useful when paginating results. Returns a maximum of <code>end -
2287            * start</code> instances. <code>start</code> and <code>end</code> are not
2288            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2289            * refers to the first result in the set. Setting both <code>start</code>
2290            * and <code>end</code> to {@link
2291            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2292            * result set.
2293            * </p>
2294            *
2295            * @param companyId the primary key of the company
2296            * @param classNameIds the primary keys of the class names of the entities
2297            the groups are related to (optionally <code>null</code>)
2298            * @param parentGroupId the primary key of the parent group
2299            * @param name the group's name (optionally <code>null</code>)
2300            * @param description the group's description (optionally
2301            <code>null</code>)
2302            * @param params the finder params (optionally <code>null</code>). To
2303            include a user's organizations, inherited organizations, and user
2304            groups in the search, add an entry with key
2305            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2306            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2307            For more information see {@link
2308            com.liferay.portal.service.persistence.GroupFinder}
2309            * @param andOperator whether every field must match its keywords, or just
2310            one field.
2311            * @param start the lower bound of the range of groups to return
2312            * @param end the upper bound of the range of groups to return (not
2313            inclusive)
2314            * @param obc the comparator to order the groups (optionally
2315            <code>null</code>)
2316            * @return the matching groups ordered by comparator <code>obc</code>
2317            * @throws SystemException if a system exception occurred
2318            */
2319            @Override
2320            public java.util.List<com.liferay.portal.model.Group> search(
2321                    long companyId, long[] classNameIds, long parentGroupId,
2322                    java.lang.String name, java.lang.String description,
2323                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2324                    boolean andOperator, int start, int end,
2325                    com.liferay.portal.kernel.util.OrderByComparator obc)
2326                    throws com.liferay.portal.kernel.exception.SystemException {
2327                    return _groupLocalService.search(companyId, classNameIds,
2328                            parentGroupId, name, description, params, andOperator, start, end,
2329                            obc);
2330            }
2331    
2332            /**
2333            * Returns an ordered range of all the groups that match the class name IDs
2334            * and keywords, optionally including the user's inherited organization
2335            * groups and user groups. System and staged groups are not included.
2336            *
2337            * <p>
2338            * Useful when paginating results. Returns a maximum of <code>end -
2339            * start</code> instances. <code>start</code> and <code>end</code> are not
2340            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2341            * refers to the first result in the set. Setting both <code>start</code>
2342            * and <code>end</code> to {@link
2343            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2344            * result set.
2345            * </p>
2346            *
2347            * @param companyId the primary key of the company
2348            * @param classNameIds the primary keys of the class names of the entities
2349            the groups are related to (optionally <code>null</code>)
2350            * @param keywords the keywords (space separated), which may occur in the
2351            sites's name, or description (optionally <code>null</code>)
2352            * @param params the finder params (optionally <code>null</code>). To
2353            include a user's organizations, inherited organizations, and user
2354            groups in the search, add an entry with key
2355            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2356            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2357            For more information see {@link
2358            com.liferay.portal.service.persistence.GroupFinder}
2359            * @param start the lower bound of the range of groups to return
2360            * @param end the upper bound of the range of groups to return (not
2361            inclusive)
2362            * @return the matching groups ordered by name
2363            * @throws SystemException if a system exception occurred
2364            */
2365            @Override
2366            public java.util.List<com.liferay.portal.model.Group> search(
2367                    long companyId, long[] classNameIds, java.lang.String keywords,
2368                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2369                    int start, int end)
2370                    throws com.liferay.portal.kernel.exception.SystemException {
2371                    return _groupLocalService.search(companyId, classNameIds, keywords,
2372                            params, start, end);
2373            }
2374    
2375            /**
2376            * Returns an ordered range of all the groups that match the class name IDs
2377            * and keywords, optionally including the user's inherited organization
2378            * groups and user groups. System and staged groups are not included.
2379            *
2380            * <p>
2381            * Useful when paginating results. Returns a maximum of <code>end -
2382            * start</code> instances. <code>start</code> and <code>end</code> are not
2383            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2384            * refers to the first result in the set. Setting both <code>start</code>
2385            * and <code>end</code> to {@link
2386            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2387            * result set.
2388            * </p>
2389            *
2390            * @param companyId the primary key of the company
2391            * @param classNameIds the primary keys of the class names of the entities
2392            the groups are related to (optionally <code>null</code>)
2393            * @param keywords the keywords (space separated), which may occur in the
2394            sites's name, or description (optionally <code>null</code>)
2395            * @param params the finder params (optionally <code>null</code>). To
2396            include a user's organizations, inherited organizations, and user
2397            groups in the search, add an entry with key
2398            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2399            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2400            For more information see {@link
2401            com.liferay.portal.service.persistence.GroupFinder}
2402            * @param start the lower bound of the range of groups to return
2403            * @param end the upper bound of the range of groups to return (not
2404            inclusive)
2405            * @param obc the comparator to order the groups (optionally
2406            <code>null</code>)
2407            * @return the matching groups ordered by comparator <code>obc</code>
2408            * @throws SystemException if a system exception occurred
2409            */
2410            @Override
2411            public java.util.List<com.liferay.portal.model.Group> search(
2412                    long companyId, long[] classNameIds, java.lang.String keywords,
2413                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2414                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2415                    throws com.liferay.portal.kernel.exception.SystemException {
2416                    return _groupLocalService.search(companyId, classNameIds, keywords,
2417                            params, start, end, obc);
2418            }
2419    
2420            /**
2421            * Returns an ordered range of all the groups that match the class name IDs,
2422            * name, and description, optionally including the user's inherited
2423            * organization groups and user groups. System and staged groups are not
2424            * included.
2425            *
2426            * <p>
2427            * Useful when paginating results. Returns a maximum of <code>end -
2428            * start</code> instances. <code>start</code> and <code>end</code> are not
2429            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2430            * refers to the first result in the set. Setting both <code>start</code>
2431            * and <code>end</code> to {@link
2432            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2433            * result set.
2434            * </p>
2435            *
2436            * @param companyId the primary key of the company
2437            * @param classNameIds the primary keys of the class names of the entities
2438            the groups are related to (optionally <code>null</code>)
2439            * @param name the group's name (optionally <code>null</code>)
2440            * @param description the group's description (optionally
2441            <code>null</code>)
2442            * @param params the finder params (optionally <code>null</code>). To
2443            include a user's organizations, inherited organizations, and user
2444            groups in the search, add an entry with key
2445            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2446            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2447            For more information see {@link
2448            com.liferay.portal.service.persistence.GroupFinder}
2449            * @param andOperator whether every field must match its keywords, or just
2450            one field.
2451            * @param start the lower bound of the range of groups to return
2452            * @param end the upper bound of the range of groups to return (not
2453            inclusive)
2454            * @return the matching groups ordered by name
2455            * @throws SystemException if a system exception occurred
2456            */
2457            @Override
2458            public java.util.List<com.liferay.portal.model.Group> search(
2459                    long companyId, long[] classNameIds, java.lang.String name,
2460                    java.lang.String description,
2461                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2462                    boolean andOperator, int start, int end)
2463                    throws com.liferay.portal.kernel.exception.SystemException {
2464                    return _groupLocalService.search(companyId, classNameIds, name,
2465                            description, params, andOperator, start, end);
2466            }
2467    
2468            /**
2469            * Returns an ordered range of all the groups that match the class name IDs,
2470            * name, and description, optionally including the user's inherited
2471            * organization groups and user groups. System and staged groups are not
2472            * included.
2473            *
2474            * <p>
2475            * Useful when paginating results. Returns a maximum of <code>end -
2476            * start</code> instances. <code>start</code> and <code>end</code> are not
2477            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2478            * refers to the first result in the set. Setting both <code>start</code>
2479            * and <code>end</code> to {@link
2480            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2481            * result set.
2482            * </p>
2483            *
2484            * @param companyId the primary key of the company
2485            * @param classNameIds the primary keys of the class names of the entities
2486            the groups are related to (optionally <code>null</code>)
2487            * @param name the group's name (optionally <code>null</code>)
2488            * @param description the group's description (optionally
2489            <code>null</code>)
2490            * @param params the finder params (optionally <code>null</code>). To
2491            include a user's organizations, inherited organizations, and user
2492            groups in the search, add an entry with key
2493            &quot;usersGroups&quot; mapped to the user's ID and an entry with
2494            key &quot;inherit&quot; mapped to a non-<code>null</code> object.
2495            For more information see {@link
2496            com.liferay.portal.service.persistence.GroupFinder}
2497            * @param andOperator whether every field must match its keywords, or just
2498            one field.
2499            * @param start the lower bound of the range of groups to return
2500            * @param end the upper bound of the range of groups to return (not
2501            inclusive)
2502            * @param obc the comparator to order the groups (optionally
2503            <code>null</code>)
2504            * @return the matching groups ordered by comparator <code>obc</code>
2505            * @throws SystemException if a system exception occurred
2506            */
2507            @Override
2508            public java.util.List<com.liferay.portal.model.Group> search(
2509                    long companyId, long[] classNameIds, java.lang.String name,
2510                    java.lang.String description,
2511                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2512                    boolean andOperator, int start, int end,
2513                    com.liferay.portal.kernel.util.OrderByComparator obc)
2514                    throws com.liferay.portal.kernel.exception.SystemException {
2515                    return _groupLocalService.search(companyId, classNameIds, name,
2516                            description, params, andOperator, start, end, obc);
2517            }
2518    
2519            /**
2520            * Returns an ordered range of all the groups that match the keywords,
2521            * optionally including the user's inherited organization groups and user
2522            * groups. System and staged groups are not included.
2523            *
2524            * <p>
2525            * Useful when paginating results. Returns a maximum of <code>end -
2526            * start</code> instances. <code>start</code> and <code>end</code> are not
2527            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2528            * refers to the first result in the set. Setting both <code>start</code>
2529            * and <code>end</code> to {@link
2530            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2531            * result set.
2532            * </p>
2533            *
2534            * @param companyId the primary key of the company
2535            * @param keywords the keywords (space separated), which may occur in the
2536            sites's name, or description (optionally <code>null</code>)
2537            * @param params the finder params (optionally <code>null</code>). To
2538            include the user's inherited organizations and user groups in the
2539            search, add entries having &quot;usersGroups&quot; and
2540            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2541            information see {@link
2542            com.liferay.portal.service.persistence.GroupFinder}
2543            * @param start the lower bound of the range of groups to return
2544            * @param end the upper bound of the range of groups to return (not
2545            inclusive)
2546            * @return the matching groups ordered by name
2547            * @throws SystemException if a system exception occurred
2548            */
2549            @Override
2550            public java.util.List<com.liferay.portal.model.Group> search(
2551                    long companyId, java.lang.String keywords,
2552                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2553                    int start, int end)
2554                    throws com.liferay.portal.kernel.exception.SystemException {
2555                    return _groupLocalService.search(companyId, keywords, params, start, end);
2556            }
2557    
2558            /**
2559            * Returns an ordered range of all the groups that match the keywords,
2560            * optionally including the user's inherited organization groups and user
2561            * groups. System and staged groups are not included.
2562            *
2563            * <p>
2564            * Useful when paginating results. Returns a maximum of <code>end -
2565            * start</code> instances. <code>start</code> and <code>end</code> are not
2566            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2567            * refers to the first result in the set. Setting both <code>start</code>
2568            * and <code>end</code> to {@link
2569            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2570            * result set.
2571            * </p>
2572            *
2573            * @param companyId the primary key of the company
2574            * @param keywords the keywords (space separated), which may occur in the
2575            sites's name, or description (optionally <code>null</code>)
2576            * @param params the finder params (optionally <code>null</code>). To
2577            include the user's inherited organizations and user groups in the
2578            search, add entries having &quot;usersGroups&quot; and
2579            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2580            information see {@link
2581            com.liferay.portal.service.persistence.GroupFinder}
2582            * @param start the lower bound of the range of groups to return
2583            * @param end the upper bound of the range of groups to return (not
2584            inclusive)
2585            * @param obc the comparator to order the groups (optionally
2586            <code>null</code>)
2587            * @return the matching groups ordered by comparator <code>obc</code>
2588            * @throws SystemException if a system exception occurred
2589            */
2590            @Override
2591            public java.util.List<com.liferay.portal.model.Group> search(
2592                    long companyId, java.lang.String keywords,
2593                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2594                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2595                    throws com.liferay.portal.kernel.exception.SystemException {
2596                    return _groupLocalService.search(companyId, keywords, params, start,
2597                            end, obc);
2598            }
2599    
2600            /**
2601            * Returns an ordered range of all the site groups and organization groups
2602            * that match the name and description, optionally including the user's
2603            * inherited organization groups and user groups. System and staged groups
2604            * are not included.
2605            *
2606            * <p>
2607            * Useful when paginating results. Returns a maximum of <code>end -
2608            * start</code> instances. <code>start</code> and <code>end</code> are not
2609            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2610            * refers to the first result in the set. Setting both <code>start</code>
2611            * and <code>end</code> to {@link
2612            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2613            * result set.
2614            * </p>
2615            *
2616            * @param companyId the primary key of the company
2617            * @param name the group's name (optionally <code>null</code>)
2618            * @param description the group's description (optionally
2619            <code>null</code>)
2620            * @param params the finder params (optionally <code>null</code>). To
2621            include the user's inherited organizations and user groups in the
2622            search, add entries having &quot;usersGroups&quot; and
2623            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2624            information see {@link
2625            com.liferay.portal.service.persistence.GroupFinder}
2626            * @param andOperator whether every field must match its keywords, or just
2627            one field.
2628            * @param start the lower bound of the range of groups to return
2629            * @param end the upper bound of the range of groups to return (not
2630            inclusive)
2631            * @return the matching groups ordered by name
2632            * @throws SystemException if a system exception occurred
2633            */
2634            @Override
2635            public java.util.List<com.liferay.portal.model.Group> search(
2636                    long companyId, java.lang.String name, java.lang.String description,
2637                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2638                    boolean andOperator, int start, int end)
2639                    throws com.liferay.portal.kernel.exception.SystemException {
2640                    return _groupLocalService.search(companyId, name, description, params,
2641                            andOperator, start, end);
2642            }
2643    
2644            /**
2645            * Returns an ordered range of all the site groups and organization groups
2646            * that match the name and description, optionally including the user's
2647            * inherited organization groups and user groups. System and staged groups
2648            * are not included.
2649            *
2650            * <p>
2651            * Useful when paginating results. Returns a maximum of <code>end -
2652            * start</code> instances. <code>start</code> and <code>end</code> are not
2653            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2654            * refers to the first result in the set. Setting both <code>start</code>
2655            * and <code>end</code> to {@link
2656            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
2657            * result set.
2658            * </p>
2659            *
2660            * @param companyId the primary key of the company
2661            * @param name the group's name (optionally <code>null</code>)
2662            * @param description the group's description (optionally
2663            <code>null</code>)
2664            * @param params the finder params (optionally <code>null</code>). To
2665            include the user's inherited organizations and user groups in the
2666            search, add entries having &quot;usersGroups&quot; and
2667            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2668            information see {@link
2669            com.liferay.portal.service.persistence.GroupFinder}
2670            * @param andOperator whether every field must match its keywords, or just
2671            one field.
2672            * @param start the lower bound of the range of groups to return
2673            * @param end the upper bound of the range of groups to return (not
2674            inclusive)
2675            * @param obc the comparator to order the groups (optionally
2676            <code>null</code>)
2677            * @return the matching groups ordered by comparator <code>obc</code>
2678            * @throws SystemException if a system exception occurred
2679            */
2680            @Override
2681            public java.util.List<com.liferay.portal.model.Group> search(
2682                    long companyId, java.lang.String name, java.lang.String description,
2683                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2684                    boolean andOperator, int start, int end,
2685                    com.liferay.portal.kernel.util.OrderByComparator obc)
2686                    throws com.liferay.portal.kernel.exception.SystemException {
2687                    return _groupLocalService.search(companyId, name, description, params,
2688                            andOperator, start, end, obc);
2689            }
2690    
2691            /**
2692            * Returns the number of groups belonging to the parent group that match the
2693            * keywords, optionally including the user's inherited organization groups
2694            * and user groups. System and staged groups are not included.
2695            *
2696            * @param companyId the primary key of the company
2697            * @param parentGroupId the primary key of the parent group
2698            * @param keywords the keywords (space separated), which may occur in the
2699            sites's name, or description (optionally <code>null</code>)
2700            * @param params the finder params (optionally <code>null</code>). To
2701            include the user's inherited organization groups and user groups
2702            in the search, add entries having &quot;usersGroups&quot; and
2703            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2704            information see {@link
2705            com.liferay.portal.service.persistence.GroupFinder}
2706            * @return the number of matching groups
2707            * @throws SystemException if a system exception occurred
2708            */
2709            @Override
2710            public int searchCount(long companyId, long parentGroupId,
2711                    java.lang.String keywords,
2712                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
2713                    throws com.liferay.portal.kernel.exception.SystemException {
2714                    return _groupLocalService.searchCount(companyId, parentGroupId,
2715                            keywords, params);
2716            }
2717    
2718            /**
2719            * Returns the number of groups belonging to the parent group and immediate
2720            * organization groups that match the name and description, optionally
2721            * including the user's inherited organization groups and user groups.
2722            * System and staged groups are not included.
2723            *
2724            * @param companyId the primary key of the company
2725            * @param parentGroupId the primary key of the parent group
2726            * @param name the group's name (optionally <code>null</code>)
2727            * @param description the group's description (optionally
2728            <code>null</code>)
2729            * @param params the finder params (optionally <code>null</code>). To
2730            include the user's inherited organization groups and user groups
2731            in the search, add entries having &quot;usersGroups&quot; and
2732            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2733            information see {@link
2734            com.liferay.portal.service.persistence.GroupFinder}
2735            * @param andOperator whether every field must match its keywords, or just
2736            one field.
2737            * @return the number of matching groups
2738            * @throws SystemException if a system exception occurred
2739            */
2740            @Override
2741            public int searchCount(long companyId, long parentGroupId,
2742                    java.lang.String name, java.lang.String description,
2743                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2744                    boolean andOperator)
2745                    throws com.liferay.portal.kernel.exception.SystemException {
2746                    return _groupLocalService.searchCount(companyId, parentGroupId, name,
2747                            description, params, andOperator);
2748            }
2749    
2750            /**
2751            * Returns the number of groups belonging to the parent group that match the
2752            * class name IDs, and keywords, optionally including the user's inherited
2753            * organization groups and user groups. System and staged groups are not
2754            * included.
2755            *
2756            * @param companyId the primary key of the company
2757            * @param classNameIds the primary keys of the class names of the entities
2758            the groups are related to (optionally <code>null</code>)
2759            * @param parentGroupId the primary key of the parent group
2760            * @param keywords the keywords (space separated), which may occur in the
2761            sites's name, or description (optionally <code>null</code>)
2762            * @param params the finder params (optionally <code>null</code>). To
2763            include the user's inherited organization groups and user groups
2764            in the search, add entries having &quot;usersGroups&quot; and
2765            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2766            information see {@link
2767            com.liferay.portal.service.persistence.GroupFinder}
2768            * @return the number of matching groups
2769            * @throws SystemException if a system exception occurred
2770            */
2771            @Override
2772            public int searchCount(long companyId, long[] classNameIds,
2773                    long parentGroupId, java.lang.String keywords,
2774                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
2775                    throws com.liferay.portal.kernel.exception.SystemException {
2776                    return _groupLocalService.searchCount(companyId, classNameIds,
2777                            parentGroupId, keywords, params);
2778            }
2779    
2780            /**
2781            * Returns the number of groups belonging to the parent group that match the
2782            * class name IDs, name, and description, optionally including the user's
2783            * inherited organization groups and user groups. System and staged groups
2784            * are not included.
2785            *
2786            * @param companyId the primary key of the company
2787            * @param classNameIds the primary keys of the class names of the entities
2788            the groups are related to (optionally <code>null</code>)
2789            * @param parentGroupId the primary key of the parent group
2790            * @param name the group's name (optionally <code>null</code>)
2791            * @param description the group's description (optionally
2792            <code>null</code>)
2793            * @param params the finder params (optionally <code>null</code>). To
2794            include the user's inherited organization groups and user groups
2795            in the search, add entries having &quot;usersGroups&quot; and
2796            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2797            information see {@link
2798            com.liferay.portal.service.persistence.GroupFinder}
2799            * @param andOperator whether every field must match its keywords, or just
2800            one field.
2801            * @return the number of matching groups
2802            * @throws SystemException if a system exception occurred
2803            */
2804            @Override
2805            public int searchCount(long companyId, long[] classNameIds,
2806                    long parentGroupId, java.lang.String name,
2807                    java.lang.String description,
2808                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2809                    boolean andOperator)
2810                    throws com.liferay.portal.kernel.exception.SystemException {
2811                    return _groupLocalService.searchCount(companyId, classNameIds,
2812                            parentGroupId, name, description, params, andOperator);
2813            }
2814    
2815            /**
2816            * Returns the number of groups that match the class name IDs, and keywords,
2817            * optionally including the user's inherited organization groups and user
2818            * groups. System and staged groups are not included.
2819            *
2820            * @param companyId the primary key of the company
2821            * @param classNameIds the primary keys of the class names of the entities
2822            the groups are related to (optionally <code>null</code>)
2823            * @param keywords the keywords (space separated), which may occur in the
2824            sites's name, or description (optionally <code>null</code>)
2825            * @param params the finder params (optionally <code>null</code>). To
2826            include the user's inherited organization groups and user groups
2827            in the search, add entries having &quot;usersGroups&quot; and
2828            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2829            information see {@link
2830            com.liferay.portal.service.persistence.GroupFinder}
2831            * @return the number of matching groups
2832            * @throws SystemException if a system exception occurred
2833            */
2834            @Override
2835            public int searchCount(long companyId, long[] classNameIds,
2836                    java.lang.String keywords,
2837                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
2838                    throws com.liferay.portal.kernel.exception.SystemException {
2839                    return _groupLocalService.searchCount(companyId, classNameIds,
2840                            keywords, params);
2841            }
2842    
2843            /**
2844            * Returns the number of groups that match the class name IDs, name, and
2845            * description, optionally including the user's inherited organization
2846            * groups and user groups. System and staged groups are not included.
2847            *
2848            * @param companyId the primary key of the company
2849            * @param classNameIds the primary keys of the class names of the entities
2850            the groups are related to (optionally <code>null</code>)
2851            * @param name the group's name (optionally <code>null</code>)
2852            * @param description the group's description (optionally
2853            <code>null</code>)
2854            * @param params the finder params (optionally <code>null</code>). To
2855            include the user's inherited organization groups and user groups
2856            in the search, add entries having &quot;usersGroups&quot; and
2857            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2858            information see {@link
2859            com.liferay.portal.service.persistence.GroupFinder}
2860            * @param andOperator whether every field must match its keywords, or just
2861            one field.
2862            * @return the number of matching groups
2863            * @throws SystemException if a system exception occurred
2864            */
2865            @Override
2866            public int searchCount(long companyId, long[] classNameIds,
2867                    java.lang.String name, java.lang.String description,
2868                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2869                    boolean andOperator)
2870                    throws com.liferay.portal.kernel.exception.SystemException {
2871                    return _groupLocalService.searchCount(companyId, classNameIds, name,
2872                            description, params, andOperator);
2873            }
2874    
2875            /**
2876            * Returns the number of groups that match the keywords, optionally
2877            * including the user's inherited organization groups and user groups.
2878            * System and staged groups are not included.
2879            *
2880            * @param companyId the primary key of the company
2881            * @param keywords the keywords (space separated), which may occur in the
2882            sites's name, or description (optionally <code>null</code>)
2883            * @param params the finder params (optionally <code>null</code>). To
2884            include the user's inherited organization groups and user groups
2885            in the search, add entries having &quot;usersGroups&quot; and
2886            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2887            information see {@link
2888            com.liferay.portal.service.persistence.GroupFinder}
2889            * @return the number of matching groups
2890            * @throws SystemException if a system exception occurred
2891            */
2892            @Override
2893            public int searchCount(long companyId, java.lang.String keywords,
2894                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
2895                    throws com.liferay.portal.kernel.exception.SystemException {
2896                    return _groupLocalService.searchCount(companyId, keywords, params);
2897            }
2898    
2899            /**
2900            * Returns the number of groups and immediate organization groups that match
2901            * the name and description, optionally including the user's inherited
2902            * organization groups and user groups. System and staged groups are not
2903            * included.
2904            *
2905            * @param companyId the primary key of the company
2906            * @param name the group's name (optionally <code>null</code>)
2907            * @param description the group's description (optionally
2908            <code>null</code>)
2909            * @param params the finder params (optionally <code>null</code>). To
2910            include the user's inherited organization groups and user groups
2911            in the search, add entries having &quot;usersGroups&quot; and
2912            &quot;inherit&quot; as keys mapped to the the user's ID. For more
2913            information see {@link
2914            com.liferay.portal.service.persistence.GroupFinder}
2915            * @param andOperator whether every field must match its keywords, or just
2916            one field.
2917            * @return the number of matching groups
2918            * @throws SystemException if a system exception occurred
2919            */
2920            @Override
2921            public int searchCount(long companyId, java.lang.String name,
2922                    java.lang.String description,
2923                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2924                    boolean andOperator)
2925                    throws com.liferay.portal.kernel.exception.SystemException {
2926                    return _groupLocalService.searchCount(companyId, name, description,
2927                            params, andOperator);
2928            }
2929    
2930            /**
2931            * Removes the groups from the role.
2932            *
2933            * @param roleId the primary key of the role
2934            * @param groupIds the primary keys of the groups
2935            * @throws SystemException if a system exception occurred
2936            */
2937            @Override
2938            public void unsetRoleGroups(long roleId, long[] groupIds)
2939                    throws com.liferay.portal.kernel.exception.SystemException {
2940                    _groupLocalService.unsetRoleGroups(roleId, groupIds);
2941            }
2942    
2943            /**
2944            * Removes the user from the groups.
2945            *
2946            * @param userId the primary key of the user
2947            * @param groupIds the primary keys of the groups
2948            * @throws SystemException if a system exception occurred
2949            */
2950            @Override
2951            public void unsetUserGroups(long userId, long[] groupIds)
2952                    throws com.liferay.portal.kernel.exception.SystemException {
2953                    _groupLocalService.unsetUserGroups(userId, groupIds);
2954            }
2955    
2956            /**
2957            * Updates the group's asset replacing categories and tag names.
2958            *
2959            * @param userId the primary key of the user
2960            * @param group the group
2961            * @param assetCategoryIds the primary keys of the asset categories
2962            (optionally <code>null</code>)
2963            * @param assetTagNames the asset tag names (optionally <code>null</code>)
2964            * @throws PortalException if a user with the primary key could not be found
2965            * @throws SystemException if a system exception occurred
2966            */
2967            @Override
2968            public void updateAsset(long userId, com.liferay.portal.model.Group group,
2969                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
2970                    throws com.liferay.portal.kernel.exception.PortalException,
2971                            com.liferay.portal.kernel.exception.SystemException {
2972                    _groupLocalService.updateAsset(userId, group, assetCategoryIds,
2973                            assetTagNames);
2974            }
2975    
2976            /**
2977            * Updates the group's friendly URL.
2978            *
2979            * @param groupId the primary key of the group
2980            * @param friendlyURL the group's new friendlyURL (optionally
2981            <code>null</code>)
2982            * @return the group
2983            * @throws PortalException if a group with the primary key could not be
2984            found or if a valid friendly URL could not be created for the
2985            group
2986            * @throws SystemException if a system exception occurred
2987            */
2988            @Override
2989            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
2990                    java.lang.String friendlyURL)
2991                    throws com.liferay.portal.kernel.exception.PortalException,
2992                            com.liferay.portal.kernel.exception.SystemException {
2993                    return _groupLocalService.updateFriendlyURL(groupId, friendlyURL);
2994            }
2995    
2996            /**
2997            * Updates the group.
2998            *
2999            * @param groupId the primary key of the group
3000            * @param parentGroupId the primary key of the parent group
3001            * @param name the group's new name
3002            * @param description the group's new description (optionally
3003            <code>null</code>)
3004            * @param type the group's new type. For more information see {@link
3005            com.liferay.portal.model.GroupConstants}
3006            * @param friendlyURL the group's new friendlyURL (optionally
3007            <code>null</code>)
3008            * @param active whether the group is active
3009            * @param serviceContext the service context to be applied (optionally
3010            <code>null</code>). Can set asset category IDs and asset tag
3011            names for the group.
3012            * @return the group
3013            * @throws PortalException if a group with the primary key could not be
3014            found or if the friendly URL was invalid or could one not be
3015            created
3016            * @throws SystemException if a system exception occurred
3017            */
3018            @Override
3019            public com.liferay.portal.model.Group updateGroup(long groupId,
3020                    long parentGroupId, java.lang.String name,
3021                    java.lang.String description, int type, boolean manualMembership,
3022                    int membershipRestriction, java.lang.String friendlyURL,
3023                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
3024                    throws com.liferay.portal.kernel.exception.PortalException,
3025                            com.liferay.portal.kernel.exception.SystemException {
3026                    return _groupLocalService.updateGroup(groupId, parentGroupId, name,
3027                            description, type, manualMembership, membershipRestriction,
3028                            friendlyURL, active, serviceContext);
3029            }
3030    
3031            /**
3032            * Updates the group's type settings.
3033            *
3034            * @param groupId the primary key of the group
3035            * @param typeSettings the group's new type settings (optionally
3036            <code>null</code>)
3037            * @return the group
3038            * @throws PortalException if a group with the primary key could not be
3039            found
3040            * @throws SystemException if a system exception occurred
3041            */
3042            @Override
3043            public com.liferay.portal.model.Group updateGroup(long groupId,
3044                    java.lang.String typeSettings)
3045                    throws com.liferay.portal.kernel.exception.PortalException,
3046                            com.liferay.portal.kernel.exception.SystemException {
3047                    return _groupLocalService.updateGroup(groupId, typeSettings);
3048            }
3049    
3050            /**
3051            * Associates the group with a main site if the group is an organization.
3052            *
3053            * @param groupId the primary key of the group
3054            * @param site whether the group is to be associated with a main site
3055            * @return the group
3056            * @throws PortalException if a group with the primary key could not be
3057            found
3058            * @throws SystemException if a system exception occurred
3059            */
3060            @Override
3061            public com.liferay.portal.model.Group updateSite(long groupId, boolean site)
3062                    throws com.liferay.portal.kernel.exception.PortalException,
3063                            com.liferay.portal.kernel.exception.SystemException {
3064                    return _groupLocalService.updateSite(groupId, site);
3065            }
3066    
3067            /**
3068             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
3069             */
3070            public GroupLocalService getWrappedGroupLocalService() {
3071                    return _groupLocalService;
3072            }
3073    
3074            /**
3075             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
3076             */
3077            public void setWrappedGroupLocalService(GroupLocalService groupLocalService) {
3078                    _groupLocalService = groupLocalService;
3079            }
3080    
3081            @Override
3082            public GroupLocalService getWrappedService() {
3083                    return _groupLocalService;
3084            }
3085    
3086            @Override
3087            public void setWrappedService(GroupLocalService groupLocalService) {
3088                    _groupLocalService = groupLocalService;
3089            }
3090    
3091            private GroupLocalService _groupLocalService;
3092    }