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