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