001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link GroupLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       GroupLocalService
024     * @generated
025     */
026    public class GroupLocalServiceWrapper implements GroupLocalService {
027            public GroupLocalServiceWrapper(GroupLocalService groupLocalService) {
028                    _groupLocalService = groupLocalService;
029            }
030    
031            /**
032            * Adds the group to the database. Also notifies the appropriate model listeners.
033            *
034            * @param group the group
035            * @return the group that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portal.model.Group addGroup(
039                    com.liferay.portal.model.Group group)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _groupLocalService.addGroup(group);
042            }
043    
044            /**
045            * Creates a new group with the primary key. Does not add the group to the database.
046            *
047            * @param groupId the primary key for the new group
048            * @return the new group
049            */
050            public com.liferay.portal.model.Group createGroup(long groupId) {
051                    return _groupLocalService.createGroup(groupId);
052            }
053    
054            /**
055            * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param groupId the primary key of the group
058            * @throws PortalException if a group with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteGroup(long groupId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _groupLocalService.deleteGroup(groupId);
065            }
066    
067            /**
068            * Deletes the group from the database. Also notifies the appropriate model listeners.
069            *
070            * @param group the group
071            * @throws PortalException
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteGroup(com.liferay.portal.model.Group group)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    _groupLocalService.deleteGroup(group);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _groupLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * 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.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _groupLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Returns the group with the primary key.
153            *
154            * @param groupId the primary key of the group
155            * @return the group
156            * @throws PortalException if a group with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portal.model.Group getGroup(long groupId)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return _groupLocalService.getGroup(groupId);
163            }
164    
165            public com.liferay.portal.model.PersistedModel getPersistedModel(
166                    java.io.Serializable primaryKeyObj)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _groupLocalService.getPersistedModel(primaryKeyObj);
170            }
171    
172            /**
173            * Returns a range of all the groups.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param start the lower bound of the range of groups
180            * @param end the upper bound of the range of groups (not inclusive)
181            * @return the range of groups
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
185                    int end) throws com.liferay.portal.kernel.exception.SystemException {
186                    return _groupLocalService.getGroups(start, end);
187            }
188    
189            /**
190            * Returns the number of groups.
191            *
192            * @return the number of groups
193            * @throws SystemException if a system exception occurred
194            */
195            public int getGroupsCount()
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _groupLocalService.getGroupsCount();
198            }
199    
200            /**
201            * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
202            *
203            * @param group the group
204            * @return the group that was updated
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portal.model.Group updateGroup(
208                    com.liferay.portal.model.Group group)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _groupLocalService.updateGroup(group);
211            }
212    
213            /**
214            * Updates the group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param group the group
217            * @param merge whether to merge the group with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
218            * @return the group that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portal.model.Group updateGroup(
222                    com.liferay.portal.model.Group group, boolean merge)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _groupLocalService.updateGroup(group, merge);
225            }
226    
227            /**
228            * Returns the Spring bean ID for this bean.
229            *
230            * @return the Spring bean ID for this bean
231            */
232            public java.lang.String getBeanIdentifier() {
233                    return _groupLocalService.getBeanIdentifier();
234            }
235    
236            /**
237            * Sets the Spring bean ID for this bean.
238            *
239            * @param beanIdentifier the Spring bean ID for this bean
240            */
241            public void setBeanIdentifier(java.lang.String beanIdentifier) {
242                    _groupLocalService.setBeanIdentifier(beanIdentifier);
243            }
244    
245            /**
246            * Adds a group.
247            *
248            * @param userId the primary key of the group's creator/owner
249            * @param className the entity's class name
250            * @param classPK the primary key of the entity's instance
251            * @param liveGroupId the primary key of the live group
252            * @param name the entity's name
253            * @param description the group's description (optionally
254            <code>null</code>)
255            * @param type the group's type. For more information see {@link
256            com.liferay.portal.model.GroupConstants}
257            * @param friendlyURL the group's friendlyURL (optionally
258            <code>null</code>)
259            * @param site whether the group is to be associated with a main site
260            * @param active whether the group is active
261            * @param serviceContext the service context to be applied (optionally
262            <code>null</code>). Can specify the group's asset category IDs,
263            asset tag names, and whether the group is for staging
264            * @return the group
265            * @throws PortalException if a creator could not be found, if the group's
266            information was invalid, if a layout could not be found, or if a
267            valid friendly URL could not be created for the group
268            * @throws SystemException if a system exception occurred
269            */
270            public com.liferay.portal.model.Group addGroup(long userId,
271                    java.lang.String className, long classPK, long liveGroupId,
272                    java.lang.String name, java.lang.String description, int type,
273                    java.lang.String friendlyURL, boolean site, boolean active,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _groupLocalService.addGroup(userId, className, classPK,
278                            liveGroupId, name, description, type, friendlyURL, site, active,
279                            serviceContext);
280            }
281    
282            /**
283            * Adds the group using the default live group.
284            *
285            * @param userId the primary key of the group's creator/owner
286            * @param className the entity's class name
287            * @param classPK the primary key of the entity's instance
288            * @param name the entity's name
289            * @param description the group's description (optionally
290            <code>null</code>)
291            * @param type the group's type. For more information see {@link
292            com.liferay.portal.model.GroupConstants}
293            * @param friendlyURL the group's friendlyURL
294            * @param site whether the group is to be associated with a main site
295            * @param active whether the group is active
296            * @param serviceContext the service context to be applied (optionally
297            <code>null</code>). Can specify the group's asset category IDs,
298            asset tag names, and whether the group is for staging
299            * @return the group
300            * @throws PortalException if a creator could not be found, if the group's
301            information was invalid, if a layout could not be found, or if a
302            valid friendly URL could not be created for the group
303            * @throws SystemException if a system exception occurred
304            */
305            public com.liferay.portal.model.Group addGroup(long userId,
306                    java.lang.String className, long classPK, java.lang.String name,
307                    java.lang.String description, int type, java.lang.String friendlyURL,
308                    boolean site, boolean active,
309                    com.liferay.portal.service.ServiceContext serviceContext)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    return _groupLocalService.addGroup(userId, className, classPK, name,
313                            description, type, friendlyURL, site, active, serviceContext);
314            }
315    
316            /**
317            * Adds the groups to the role.
318            *
319            * @param roleId the primary key of the role
320            * @param groupIds the primary keys of the groups
321            * @throws SystemException if a system exception occurred
322            */
323            public void addRoleGroups(long roleId, long[] groupIds)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    _groupLocalService.addRoleGroups(roleId, groupIds);
326            }
327    
328            /**
329            * Adds the user to the groups.
330            *
331            * @param userId the primary key of the user
332            * @param groupIds the primary keys of the groups
333            * @throws SystemException if a system exception occurred
334            */
335            public void addUserGroups(long userId, long[] groupIds)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    _groupLocalService.addUserGroups(userId, groupIds);
338            }
339    
340            /**
341            * Adds a company group if it does not exist. This method is typically used
342            * when a virtual host is added.
343            *
344            * @param companyId the primary key of the company
345            * @throws PortalException if a default user for the company could not be
346            found, if the group's information was invalid, if a layout could
347            not be found, or if a valid friendly URL could not be created
348            for the group
349            * @throws SystemException if a system exception occurred
350            */
351            public void checkCompanyGroup(long companyId)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    _groupLocalService.checkCompanyGroup(companyId);
355            }
356    
357            /**
358            * Creates systems groups and other related data needed by the system on
359            * the very first startup. Also takes care of creating the control panel
360            * groups and layouts.
361            *
362            * @param companyId the primary key of the company
363            * @throws PortalException if a new system group could not be created
364            * @throws SystemException if a system exception occurred
365            */
366            public void checkSystemGroups(long companyId)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    _groupLocalService.checkSystemGroups(companyId);
370            }
371    
372            /**
373            * Returns the group with the matching friendly URL.
374            *
375            * @param companyId the primary key of the company
376            * @param friendlyURL the friendly URL
377            * @return the group with the friendly URL, or <code>null</code> if a
378            matching group could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            public com.liferay.portal.model.Group fetchFriendlyURLGroup(
382                    long companyId, java.lang.String friendlyURL)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _groupLocalService.fetchFriendlyURLGroup(companyId, friendlyURL);
385            }
386    
387            /**
388            * Returns the group with the matching primary key.
389            *
390            * @param groupId the primary key of the group
391            * @return the group with the primary key, or <code>null</code> if a group
392            with the primary key could not be found
393            * @throws SystemException if a system exception occurred
394            */
395            public com.liferay.portal.model.Group fetchGroup(long groupId)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return _groupLocalService.fetchGroup(groupId);
398            }
399    
400            /**
401            * Returns the group with the matching group name.
402            *
403            * @param companyId the primary key of the company
404            * @param name the group's name
405            * @return the group with the name and associated company, or
406            <code>null</code> if a matching group could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portal.model.Group fetchGroup(long companyId,
410                    java.lang.String name)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _groupLocalService.fetchGroup(companyId, name);
413            }
414    
415            /**
416            * Returns the company group.
417            *
418            * @param companyId the primary key of the company
419            * @return the group associated with the company
420            * @throws PortalException if a matching group could not be found
421            * @throws SystemException if a system exception occurred
422            */
423            public com.liferay.portal.model.Group getCompanyGroup(long companyId)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    return _groupLocalService.getCompanyGroup(companyId);
427            }
428    
429            /**
430            * Returns a range of all the groups associated with the company.
431            *
432            * <p>
433            * Useful when paginating results. Returns a maximum of <code>end -
434            * start</code> instances. <code>start</code> and <code>end</code> are not
435            * primary keys, they are indexes in the result set. Thus, <code>0</code>
436            * refers to the first result in the set. Setting both <code>start</code>
437            * and <code>end</code> to {@link
438            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
439            * full result set.
440            * </p>
441            *
442            * @param companyId the primary key of the company
443            * @param start the lower bound of the range of groups to return
444            * @param end the upper bound of the range of groups to return (not
445            inclusive)
446            * @return the range of groups associated with the company
447            * @throws SystemException if a system exception occurred
448            */
449            public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
450                    long companyId, int start, int end)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    return _groupLocalService.getCompanyGroups(companyId, start, end);
453            }
454    
455            /**
456            * Returns the number of groups associated with the company.
457            *
458            * @param companyId the primary key of the company
459            * @return the number of groups associated with the company
460            * @throws SystemException if a system exception occurred
461            */
462            public int getCompanyGroupsCount(long companyId)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return _groupLocalService.getCompanyGroupsCount(companyId);
465            }
466    
467            /**
468            * Returns the group with the matching friendly URL.
469            *
470            * @param companyId the primary key of the company
471            * @param friendlyURL the group's friendlyURL
472            * @return the group with the friendly URL
473            * @throws PortalException if a matching group could not be found, or if
474            the friendly URL was invalid
475            * @throws SystemException if a system exception occurred
476            */
477            public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
478                    java.lang.String friendlyURL)
479                    throws com.liferay.portal.kernel.exception.PortalException,
480                            com.liferay.portal.kernel.exception.SystemException {
481                    return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL);
482            }
483    
484            /**
485            * Returns the group with the matching group name.
486            *
487            * @param companyId the primary key of the company
488            * @param name the group's name
489            * @return the group with the name
490            * @throws PortalException if a matching group could not be found
491            * @throws SystemException if a system exception occurred
492            */
493            public com.liferay.portal.model.Group getGroup(long companyId,
494                    java.lang.String name)
495                    throws com.liferay.portal.kernel.exception.PortalException,
496                            com.liferay.portal.kernel.exception.SystemException {
497                    return _groupLocalService.getGroup(companyId, name);
498            }
499    
500            /**
501            * Returns the groups with the matching primary keys.
502            *
503            * @param groupIds the primary keys of the groups
504            * @return the groups with the primary keys
505            * @throws PortalException if any one of the groups could not be found
506            * @throws SystemException if a system exception occurred
507            */
508            public java.util.List<com.liferay.portal.model.Group> getGroups(
509                    long[] groupIds)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    return _groupLocalService.getGroups(groupIds);
513            }
514    
515            /**
516            * Returns the group associated with the layout.
517            *
518            * @param companyId the primary key of the company
519            * @param plid the primary key of the layout
520            * @return the group associated with the layout
521            * @throws PortalException if a matching group could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portal.model.Group getLayoutGroup(long companyId,
525                    long plid)
526                    throws com.liferay.portal.kernel.exception.PortalException,
527                            com.liferay.portal.kernel.exception.SystemException {
528                    return _groupLocalService.getLayoutGroup(companyId, plid);
529            }
530    
531            /**
532            * Returns the group associated with the layout prototype.
533            *
534            * @param companyId the primary key of the company
535            * @param layoutPrototypeId the primary key of the layout prototype
536            * @return the group associated with the layout prototype
537            * @throws PortalException if a matching group could not be found
538            * @throws SystemException if a system exception occurred
539            */
540            public com.liferay.portal.model.Group getLayoutPrototypeGroup(
541                    long companyId, long layoutPrototypeId)
542                    throws com.liferay.portal.kernel.exception.PortalException,
543                            com.liferay.portal.kernel.exception.SystemException {
544                    return _groupLocalService.getLayoutPrototypeGroup(companyId,
545                            layoutPrototypeId);
546            }
547    
548            /**
549            * Returns the group associated with the layout set prototype.
550            *
551            * @param companyId the primary key of the company
552            * @param layoutSetPrototypeId the primary key of the layout set prototype
553            * @return the group associated with the layout set prototype
554            * @throws PortalException if a matching group could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
558                    long companyId, long layoutSetPrototypeId)
559                    throws com.liferay.portal.kernel.exception.PortalException,
560                            com.liferay.portal.kernel.exception.SystemException {
561                    return _groupLocalService.getLayoutSetPrototypeGroup(companyId,
562                            layoutSetPrototypeId);
563            }
564    
565            /**
566            * Returns all live groups.
567            *
568            * @return all live groups
569            * @throws SystemException if a system exception occurred
570            */
571            public java.util.List<com.liferay.portal.model.Group> getLiveGroups()
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return _groupLocalService.getLiveGroups();
574            }
575    
576            /**
577            * Returns a range of all non-system groups of a specified type (className)
578            * that have no layouts.
579            *
580            * <p>
581            * Useful when paginating results. Returns a maximum of <code>end -
582            * start</code> instances. <code>start</code> and <code>end</code> are not
583            * primary keys, they are indexes in the result set. Thus, <code>0</code>
584            * refers to the first result in the set. Setting both <code>start</code>
585            * and <code>end</code> to {@link
586            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
587            * full result set.
588            * </p>
589            *
590            * @param className the entity's class name
591            * @param privateLayout whether to include groups with private layout sets
592            or non-private layout sets
593            * @param start the lower bound of the range of groups to return
594            * @param end the upper bound of the range of groups to return (not
595            inclusive)
596            * @return the range of matching groups
597            * @throws SystemException if a system exception occurred
598            */
599            public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
600                    java.lang.String className, boolean privateLayout, int start, int end)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return _groupLocalService.getNoLayoutsGroups(className, privateLayout,
603                            start, end);
604            }
605    
606            /**
607            * Returns all non-system groups having <code>null</code> or empty friendly
608            * URLs.
609            *
610            * @return the non-system groups having <code>null</code> or empty friendly
611            URLs
612            * @throws SystemException if a system exception occurred
613            */
614            public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return _groupLocalService.getNullFriendlyURLGroups();
617            }
618    
619            /**
620            * Returns the specified organization group.
621            *
622            * @param companyId the primary key of the company
623            * @param organizationId the primary key of the organization
624            * @return the group associated with the organization
625            * @throws PortalException if a matching group could not be found
626            * @throws SystemException if a system exception occurred
627            */
628            public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
629                    long organizationId)
630                    throws com.liferay.portal.kernel.exception.PortalException,
631                            com.liferay.portal.kernel.exception.SystemException {
632                    return _groupLocalService.getOrganizationGroup(companyId, organizationId);
633            }
634    
635            /**
636            * Returns the specified organization groups.
637            *
638            * @param organizations the organizations
639            * @return the groups associated with the organizations
640            */
641            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
642                    java.util.List<com.liferay.portal.model.Organization> organizations) {
643                    return _groupLocalService.getOrganizationsGroups(organizations);
644            }
645    
646            /**
647            * Returns all the groups related to the organizations.
648            *
649            * @param organizations the organizations
650            * @return the groups related to the organizations
651            * @throws SystemException if a system exception occurred
652            */
653            public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
654                    java.util.List<com.liferay.portal.model.Organization> organizations)
655                    throws com.liferay.portal.kernel.exception.SystemException {
656                    return _groupLocalService.getOrganizationsRelatedGroups(organizations);
657            }
658    
659            /**
660            * Returns all the groups associated with the role.
661            *
662            * @param roleId the primary key of the role
663            * @return the groups associated with the role
664            * @throws SystemException if a system exception occurred
665            */
666            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
667                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
668                    return _groupLocalService.getRoleGroups(roleId);
669            }
670    
671            /**
672            * Returns the staging group.
673            *
674            * @param liveGroupId the primary key of the live group
675            * @return the staging group
676            * @throws PortalException if a matching staging group could not be found
677            * @throws SystemException if a system exception occurred
678            */
679            public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
680                    throws com.liferay.portal.kernel.exception.PortalException,
681                            com.liferay.portal.kernel.exception.SystemException {
682                    return _groupLocalService.getStagingGroup(liveGroupId);
683            }
684    
685            /**
686            * Returns the group associated with the user.
687            *
688            * @param companyId the primary key of the company
689            * @param userId the primary key of the user
690            * @return the group associated with the user
691            * @throws PortalException if a matching group could not be found
692            * @throws SystemException if a system exception occurred
693            */
694            public com.liferay.portal.model.Group getUserGroup(long companyId,
695                    long userId)
696                    throws com.liferay.portal.kernel.exception.PortalException,
697                            com.liferay.portal.kernel.exception.SystemException {
698                    return _groupLocalService.getUserGroup(companyId, userId);
699            }
700    
701            /**
702            * Returns the specified "user group" group. That is, the group that
703            * represents the {@link com.liferay.portal.model.UserGroup} entity.
704            *
705            * @param companyId the primary key of the company
706            * @param userGroupId the primary key of the user group
707            * @return the group associated with the user group
708            * @throws PortalException if a matching group could not be found
709            * @throws SystemException if a system exception occurred
710            */
711            public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
712                    long userGroupId)
713                    throws com.liferay.portal.kernel.exception.PortalException,
714                            com.liferay.portal.kernel.exception.SystemException {
715                    return _groupLocalService.getUserGroupGroup(companyId, userGroupId);
716            }
717    
718            /**
719            * Returns all the user's site groups and immediate organization groups.
720            * System and staged groups are not included.
721            *
722            * @param userId the primary key of the user
723            * @return the user's groups and organization groups
724            * @throws PortalException if a user with the primary key could not be
725            found
726            * @throws SystemException if a system exception occurred
727            */
728            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
729                    long userId)
730                    throws com.liferay.portal.kernel.exception.PortalException,
731                            com.liferay.portal.kernel.exception.SystemException {
732                    return _groupLocalService.getUserGroups(userId);
733            }
734    
735            /**
736            * Returns all the user's site groups and immediate organization groups,
737            * optionally including the user's inherited organization groups and user
738            * groups. System and staged groups are not included.
739            *
740            * @param userId the primary key of the user
741            * @param inherit whether to include the user's inherited organization
742            groups and user groups
743            * @return the user's groups and immediate organization groups
744            * @throws PortalException if a user with the primary key could not be
745            found
746            * @throws SystemException if a system exception occurred
747            */
748            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
749                    long userId, boolean inherit)
750                    throws com.liferay.portal.kernel.exception.PortalException,
751                            com.liferay.portal.kernel.exception.SystemException {
752                    return _groupLocalService.getUserGroups(userId, inherit);
753            }
754    
755            /**
756            * Returns a name ordered range of all the user's site groups and immediate
757            * organization groups, optionally including the user's inherited
758            * organization groups and user groups. System and staged groups are not
759            * included.
760            *
761            * <p>
762            * Useful when paginating results. Returns a maximum of <code>end -
763            * start</code> instances. <code>start</code> and <code>end</code> are not
764            * primary keys, they are indexes in the result set. Thus, <code>0</code>
765            * refers to the first result in the set. Setting both <code>start</code>
766            * and <code>end</code> to {@link
767            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
768            * full result set.
769            * </p>
770            *
771            * @param userId the primary key of the user
772            * @param inherit whether to include the user's inherited organization
773            groups and user groups
774            * @param start the lower bound of the range of groups to return
775            * @param end the upper bound of the range of groups to return (not
776            inclusive)
777            * @return the range of the user's groups and immediate organization groups
778            ordered by name
779            * @throws PortalException if a user with the primary key could not be
780            found
781            * @throws SystemException if a system exception occurred
782            */
783            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
784                    long userId, boolean inherit, int start, int end)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException {
787                    return _groupLocalService.getUserGroups(userId, inherit, start, end);
788            }
789    
790            /**
791            * Returns a name ordered range of all the user's site groups and immediate
792            * organization groups. System and staged groups are not included.
793            *
794            * <p>
795            * Useful when paginating results. Returns a maximum of <code>end -
796            * start</code> instances. <code>start</code> and <code>end</code> are not
797            * primary keys, they are indexes in the result set. Thus, <code>0</code>
798            * refers to the first result in the set. Setting both <code>start</code>
799            * and <code>end</code> to {@link
800            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
801            * full result set.
802            * </p>
803            *
804            * @param userId the primary key of the user
805            * @param start the lower bound of the range of groups to return
806            * @param end the upper bound of the range of groups to return (not
807            inclusive)
808            * @return the range of the user's groups and organization groups ordered
809            by name
810            * @throws PortalException if a user with the primary key could not be
811            found
812            * @throws SystemException if a system exception occurred
813            */
814            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
815                    long userId, int start, int end)
816                    throws com.liferay.portal.kernel.exception.PortalException,
817                            com.liferay.portal.kernel.exception.SystemException {
818                    return _groupLocalService.getUserGroups(userId, start, end);
819            }
820    
821            /**
822            * Returns the groups associated with the user groups.
823            *
824            * @param userGroups the user groups
825            * @return the groups associated with the user groups
826            * @throws PortalException if any one of the user group's group could not
827            be found
828            * @throws SystemException if a system exception occurred
829            */
830            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
831                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
832                    throws com.liferay.portal.kernel.exception.PortalException,
833                            com.liferay.portal.kernel.exception.SystemException {
834                    return _groupLocalService.getUserGroupsGroups(userGroups);
835            }
836    
837            /**
838            * Returns all the groups related to the user groups.
839            *
840            * @param userGroups the user groups
841            * @return the groups related to the user groups
842            * @throws SystemException if a system exception occurred
843            */
844            public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
845                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
846                    throws com.liferay.portal.kernel.exception.SystemException {
847                    return _groupLocalService.getUserGroupsRelatedGroups(userGroups);
848            }
849    
850            /**
851            * Returns the range of all groups associated with the user's organization
852            * groups, including the ancestors of the organization groups, unless
853            * portal property <code>organizations.membership.strict</code> is set to
854            * <code>true</code>.
855            *
856            * <p>
857            * Useful when paginating results. Returns a maximum of <code>end -
858            * start</code> instances. <code>start</code> and <code>end</code> are not
859            * primary keys, they are indexes in the result set. Thus, <code>0</code>
860            * refers to the first result in the set. Setting both <code>start</code>
861            * and <code>end</code> to {@link
862            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
863            * full result set.
864            * </p>
865            *
866            * @param userId the primary key of the user
867            * @param start the lower bound of the range of groups to consider
868            * @param end the upper bound of the range of groups to consider (not
869            inclusive)
870            * @return the range of groups associated with the user's organization
871            groups
872            * @throws PortalException if a user with the primary key could not be
873            found or if another portal exception occurred
874            * @throws SystemException if a system exception occurred
875            */
876            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
877                    long userId, int start, int end)
878                    throws com.liferay.portal.kernel.exception.PortalException,
879                            com.liferay.portal.kernel.exception.SystemException {
880                    return _groupLocalService.getUserOrganizationsGroups(userId, start, end);
881            }
882    
883            /**
884            * Returns <code>true</code> if the group is associated with the role.
885            *
886            * @param roleId the primary key of the role
887            * @param groupId the primary key of the group
888            * @return <code>true</code> if the group is associated with the role;
889            <code>false</code> otherwise
890            * @throws SystemException if a system exception occurred
891            */
892            public boolean hasRoleGroup(long roleId, long groupId)
893                    throws com.liferay.portal.kernel.exception.SystemException {
894                    return _groupLocalService.hasRoleGroup(roleId, groupId);
895            }
896    
897            /**
898            * Returns <code>true</code> if the live group has a staging group.
899            *
900            * @param liveGroupId the primary key of the live group
901            * @return <code>true</code> if the live group has a staging group;
902            <code>false</code> otherwise
903            * @throws SystemException if a system exception occurred
904            */
905            public boolean hasStagingGroup(long liveGroupId)
906                    throws com.liferay.portal.kernel.exception.SystemException {
907                    return _groupLocalService.hasStagingGroup(liveGroupId);
908            }
909    
910            /**
911            * Returns <code>true</code> if the user is immediately associated with the
912            * group, or associated with the group via the user's organizations,
913            * inherited organizations, or user groups.
914            *
915            * @param userId the primary key of the user
916            * @param groupId the primary key of the group
917            * @return <code>true</code> if the user is associated with the group;
918            <code>false</code> otherwise
919            * @throws SystemException if a system exception occurred
920            */
921            public boolean hasUserGroup(long userId, long groupId)
922                    throws com.liferay.portal.kernel.exception.SystemException {
923                    return _groupLocalService.hasUserGroup(userId, groupId);
924            }
925    
926            /**
927            * Returns <code>true</code> if the user is immediately associated with the
928            * group, or optionally if the user is associated with the group via the
929            * user's organizations, inherited organizations, or user groups.
930            *
931            * @param userId the primary key of the user
932            * @param groupId the primary key of the group
933            * @param inherit whether to include organization groups and user groups
934            to which the user belongs in the determination
935            * @return <code>true</code> if the user is associated with the group;
936            <code>false</code> otherwise
937            * @throws SystemException if a system exception occurred
938            */
939            public boolean hasUserGroup(long userId, long groupId, boolean inherit)
940                    throws com.liferay.portal.kernel.exception.SystemException {
941                    return _groupLocalService.hasUserGroup(userId, groupId, inherit);
942            }
943    
944            public com.liferay.portal.model.Group loadFetchGroup(long companyId,
945                    java.lang.String name)
946                    throws com.liferay.portal.kernel.exception.SystemException {
947                    return _groupLocalService.loadFetchGroup(companyId, name);
948            }
949    
950            public com.liferay.portal.model.Group loadGetGroup(long companyId,
951                    java.lang.String name)
952                    throws com.liferay.portal.kernel.exception.PortalException,
953                            com.liferay.portal.kernel.exception.SystemException {
954                    return _groupLocalService.loadGetGroup(companyId, name);
955            }
956    
957            public java.util.List<com.liferay.portal.model.Group> search(
958                    long companyId,
959                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
960                    int start, int end)
961                    throws com.liferay.portal.kernel.exception.SystemException {
962                    return _groupLocalService.search(companyId, params, start, end);
963            }
964    
965            /**
966            * Returns a name ordered range of all the groups that match the class name
967            * IDs, name, and description, optionally including the user's inherited
968            * organization groups and user groups. System and staged groups are not
969            * included.
970            *
971            * <p>
972            * Useful when paginating results. Returns a maximum of <code>end -
973            * start</code> instances. <code>start</code> and <code>end</code> are not
974            * primary keys, they are indexes in the result set. Thus, <code>0</code>
975            * refers to the first result in the set. Setting both <code>start</code>
976            * and <code>end</code> to {@link
977            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
978            * full result set.
979            * </p>
980            *
981            * @param companyId the primary key of the company
982            * @param classNameIds the class names of entities to include in the
983            search (optionally <code>null</code>)
984            * @param name the group's name (optionally <code>null</code>)
985            * @param description the group's description (optionally
986            <code>null</code>)
987            * @param params the finder params (optionally <code>null</code>). To
988            include a user's organizations, inherited organizations, and
989            user groups in the search, add an entry with key
990            &quot;usersGroups&quot; mapped to the user's ID and an entry
991            with key &quot;inherit&quot; mapped to a non-<code>null</code>
992            object. For more information see {@link
993            com.liferay.portal.service.persistence.GroupFinder}
994            com.liferay.portal.service.persistence.GroupFinder}
995            * @param start the lower bound of the range of groups to return
996            * @param end the upper bound of the range of groups to return (not
997            inclusive)
998            * @return the matching groups ordered by name
999            * @throws SystemException if a system exception occurred
1000            */
1001            public java.util.List<com.liferay.portal.model.Group> search(
1002                    long companyId, long[] classNameIds, java.lang.String name,
1003                    java.lang.String description,
1004                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1005                    int start, int end)
1006                    throws com.liferay.portal.kernel.exception.SystemException {
1007                    return _groupLocalService.search(companyId, classNameIds, name,
1008                            description, params, start, end);
1009            }
1010    
1011            /**
1012            * Returns an ordered range of all the groups that match the class name
1013            * IDs, name, and description, optionally including the user's inherited
1014            * organization groups and user groups. System and staged groups are not
1015            * included.
1016            *
1017            * <p>
1018            * Useful when paginating results. Returns a maximum of <code>end -
1019            * start</code> instances. <code>start</code> and <code>end</code> are not
1020            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1021            * refers to the first result in the set. Setting both <code>start</code>
1022            * and <code>end</code> to {@link
1023            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
1024            * full result set.
1025            * </p>
1026            *
1027            * @param companyId the primary key of the company
1028            * @param classNameIds the group's class name IDs (optionally
1029            <code>null</code>)
1030            * @param name the group's name (optionally <code>null</code>)
1031            * @param description the group's description (optionally
1032            <code>null</code>)
1033            * @param params the finder params (optionally <code>null</code>). To
1034            include a user's organizations, inherited organizations, and
1035            user groups in the search, add an entry with key
1036            &quot;usersGroups&quot; mapped to the user's ID and an entry
1037            with key &quot;inherit&quot; mapped to a non-<code>null</code>
1038            object. For more information see {@link
1039            com.liferay.portal.service.persistence.GroupFinder}
1040            * @param start the lower bound of the range of groups to return
1041            * @param end the upper bound of the range of groups to return (not
1042            inclusive)
1043            * @param obc the comparator to order the groups (optionally
1044            <code>null</code>)
1045            * @return the matching groups ordered by comparator <code>obc</code>
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public java.util.List<com.liferay.portal.model.Group> search(
1049                    long companyId, long[] classNameIds, java.lang.String name,
1050                    java.lang.String description,
1051                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1052                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1053                    throws com.liferay.portal.kernel.exception.SystemException {
1054                    return _groupLocalService.search(companyId, classNameIds, name,
1055                            description, params, start, end, obc);
1056            }
1057    
1058            /**
1059            * Returns a name ordered range of all the site groups and organization
1060            * groups that match the name and description, optionally including the
1061            * user's inherited organization groups and user groups. System and staged
1062            * groups are not included.
1063            *
1064            * <p>
1065            * Useful when paginating results. Returns a maximum of <code>end -
1066            * start</code> instances. <code>start</code> and <code>end</code> are not
1067            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1068            * refers to the first result in the set. Setting both <code>start</code>
1069            * and <code>end</code> to {@link
1070            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
1071            * full result set.
1072            * </p>
1073            *
1074            * @param companyId the primary key of the company
1075            * @param name the group's name (optionally <code>null</code>)
1076            * @param description the group's description (optionally
1077            <code>null</code>)
1078            * @param params the finder params (optionally <code>null</code>). To
1079            include the user's inherited organizations and user groups in
1080            the search, add entries having &quot;usersGroups&quot; and
1081            &quot;inherit&quot; as keys mapped to the the user's ID. For
1082            more information see {@link
1083            com.liferay.portal.service.persistence.GroupFinder}
1084            * @param start the lower bound of the range of groups to return
1085            * @param end the upper bound of the range of groups to return (not
1086            inclusive)
1087            * @return the matching groups ordered by name
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public java.util.List<com.liferay.portal.model.Group> search(
1091                    long companyId, java.lang.String name, java.lang.String description,
1092                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1093                    int start, int end)
1094                    throws com.liferay.portal.kernel.exception.SystemException {
1095                    return _groupLocalService.search(companyId, name, description, params,
1096                            start, end);
1097            }
1098    
1099            /**
1100            * Returns an ordered range of all the site groups and organization groups
1101            * that match the name and description, optionally including the user's
1102            * inherited organization groups and user groups. System and staged groups
1103            * are not included.
1104            *
1105            * <p>
1106            * Useful when paginating results. Returns a maximum of <code>end -
1107            * start</code> instances. <code>start</code> and <code>end</code> are not
1108            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1109            * refers to the first result in the set. Setting both <code>start</code>
1110            * and <code>end</code> to {@link
1111            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the
1112            * full result set.
1113            * </p>
1114            *
1115            * @param companyId the primary key of the company
1116            * @param name the group's name (optionally <code>null</code>)
1117            * @param description the group's description (optionally
1118            <code>null</code>)
1119            * @param params the finder params (optionally <code>null</code>). To
1120            include the user's inherited organizations and user groups in
1121            the search, add entries having &quot;usersGroups&quot; and
1122            &quot;inherit&quot; as keys mapped to the the user's ID. For
1123            more information see {@link
1124            com.liferay.portal.service.persistence.GroupFinder}
1125            * @param start the lower bound of the range of groups to return
1126            * @param end the upper bound of the range of groups to return (not
1127            inclusive)
1128            * @param obc the comparator to order the groups (optionally
1129            <code>null</code>)
1130            * @return the matching groups ordered by comparator <code>obc</code>
1131            * @throws SystemException if a system exception occurred
1132            */
1133            public java.util.List<com.liferay.portal.model.Group> search(
1134                    long companyId, java.lang.String name, java.lang.String description,
1135                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1136                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1137                    throws com.liferay.portal.kernel.exception.SystemException {
1138                    return _groupLocalService.search(companyId, name, description, params,
1139                            start, end, obc);
1140            }
1141    
1142            /**
1143            * Returns the number of groups that match the class name IDs, name, and
1144            * description, optionally including the user's inherited organization
1145            * groups and user groups. System and staged groups are not included.
1146            *
1147            * @param companyId the primary key of the company
1148            * @param classNameIds the class names of entities to include in the
1149            search (optionally <code>null</code>)
1150            * @param name the group's name (optionally <code>null</code>)
1151            * @param description the group's description (optionally
1152            <code>null</code>)
1153            * @param params the finder params (optionally <code>null</code>). To
1154            include the user's inherited organization groups and user groups
1155            in the search, add entries having &quot;usersGroups&quot; and
1156            &quot;inherit&quot; as keys mapped to the the user's ID. For
1157            more information see {@link
1158            com.liferay.portal.service.persistence.GroupFinder}
1159            * @return the number of matching groups
1160            * @throws SystemException if a system exception occurred
1161            */
1162            public int searchCount(long companyId, long[] classNameIds,
1163                    java.lang.String name, java.lang.String description,
1164                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1165                    throws com.liferay.portal.kernel.exception.SystemException {
1166                    return _groupLocalService.searchCount(companyId, classNameIds, name,
1167                            description, params);
1168            }
1169    
1170            /**
1171            * Returns the number of groups and immediate organization groups that
1172            * match the name and description, optionally including the user's
1173            * inherited organization groups and user groups. System and staged groups
1174            * are not included.
1175            *
1176            * @param companyId the primary key of the company
1177            * @param name the group's name (optionally <code>null</code>)
1178            * @param description the group's description (optionally
1179            <code>null</code>)
1180            * @param params the finder params (optionally <code>null</code>). To
1181            include the user's inherited organization groups and user groups
1182            in the search, add entries having &quot;usersGroups&quot; and
1183            &quot;inherit&quot; as keys mapped to the the user's ID. For
1184            more information see {@link
1185            com.liferay.portal.service.persistence.GroupFinder}
1186            * @return the number of matching groups
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public int searchCount(long companyId, java.lang.String name,
1190                    java.lang.String description,
1191                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1192                    throws com.liferay.portal.kernel.exception.SystemException {
1193                    return _groupLocalService.searchCount(companyId, name, description,
1194                            params);
1195            }
1196    
1197            /**
1198            * Sets the groups associated with the role, removing and adding
1199            * associations as necessary.
1200            *
1201            * @param roleId the primary key of the role
1202            * @param groupIds the primary keys of the groups
1203            * @throws SystemException if a system exception occurred
1204            */
1205            public void setRoleGroups(long roleId, long[] groupIds)
1206                    throws com.liferay.portal.kernel.exception.SystemException {
1207                    _groupLocalService.setRoleGroups(roleId, groupIds);
1208            }
1209    
1210            /**
1211            * Removes the groups from the role.
1212            *
1213            * @param roleId the primary key of the role
1214            * @param groupIds the primary keys of the groups
1215            * @throws SystemException if a system exception occurred
1216            */
1217            public void unsetRoleGroups(long roleId, long[] groupIds)
1218                    throws com.liferay.portal.kernel.exception.SystemException {
1219                    _groupLocalService.unsetRoleGroups(roleId, groupIds);
1220            }
1221    
1222            /**
1223            * Removes the user from the groups.
1224            *
1225            * @param userId the primary key of the user
1226            * @param groupIds the primary keys of the groups
1227            * @throws SystemException if a system exception occurred
1228            */
1229            public void unsetUserGroups(long userId, long[] groupIds)
1230                    throws com.liferay.portal.kernel.exception.SystemException {
1231                    _groupLocalService.unsetUserGroups(userId, groupIds);
1232            }
1233    
1234            /**
1235            * Updates the group's asset replacing categories and tag names.
1236            *
1237            * @param userId the primary key of the user
1238            * @param group the group
1239            * @param assetCategoryIds the primary keys of the asset categories
1240            (optionally <code>null</code>)
1241            * @param assetTagNames the asset tag names (optionally <code>null</code>)
1242            * @throws PortalException if a user with the primary key could not be
1243            found
1244            * @throws SystemException if a system exception occurred
1245            */
1246            public void updateAsset(long userId, com.liferay.portal.model.Group group,
1247                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
1248                    throws com.liferay.portal.kernel.exception.PortalException,
1249                            com.liferay.portal.kernel.exception.SystemException {
1250                    _groupLocalService.updateAsset(userId, group, assetCategoryIds,
1251                            assetTagNames);
1252            }
1253    
1254            /**
1255            * Updates the group's friendly URL.
1256            *
1257            * @param groupId the primary key of the group
1258            * @param friendlyURL the group's new friendlyURL (optionally
1259            <code>null</code>)
1260            * @return the group
1261            * @throws PortalException if a group with the primary key could not be
1262            found or if a valid friendly URL could not be created for the
1263            group
1264            * @throws SystemException if a system exception occurred
1265            */
1266            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
1267                    java.lang.String friendlyURL)
1268                    throws com.liferay.portal.kernel.exception.PortalException,
1269                            com.liferay.portal.kernel.exception.SystemException {
1270                    return _groupLocalService.updateFriendlyURL(groupId, friendlyURL);
1271            }
1272    
1273            /**
1274            * Updates the group's type settings.
1275            *
1276            * @param groupId the primary key of the group
1277            * @param typeSettings the group's new type settings (optionally
1278            <code>null</code>)
1279            * @return the group
1280            * @throws PortalException if a group with the primary key could not be
1281            found
1282            * @throws SystemException if a system exception occurred
1283            */
1284            public com.liferay.portal.model.Group updateGroup(long groupId,
1285                    java.lang.String typeSettings)
1286                    throws com.liferay.portal.kernel.exception.PortalException,
1287                            com.liferay.portal.kernel.exception.SystemException {
1288                    return _groupLocalService.updateGroup(groupId, typeSettings);
1289            }
1290    
1291            /**
1292            * Updates the group.
1293            *
1294            * @param groupId the primary key of the group
1295            * @param name the group's new name
1296            * @param description the group's new description (optionally
1297            <code>null</code>)
1298            * @param type the group's new type. For more information see {@link
1299            com.liferay.portal.model.GroupConstants}
1300            * @param friendlyURL the group's new friendlyURL (optionally
1301            <code>null</code>)
1302            * @param active whether the group is active
1303            * @param serviceContext the service context to be applied (optionally
1304            <code>null</code>). Can specify the group's replacement asset
1305            category IDs and replacement asset tag names
1306            * @return the group
1307            * @throws PortalException if a group with the primary key could not be
1308            found or if the friendly URL was invalid or could one not be
1309            created
1310            * @throws SystemException if a system exception occurred
1311            */
1312            public com.liferay.portal.model.Group updateGroup(long groupId,
1313                    java.lang.String name, java.lang.String description, int type,
1314                    java.lang.String friendlyURL, boolean active,
1315                    com.liferay.portal.service.ServiceContext serviceContext)
1316                    throws com.liferay.portal.kernel.exception.PortalException,
1317                            com.liferay.portal.kernel.exception.SystemException {
1318                    return _groupLocalService.updateGroup(groupId, name, description, type,
1319                            friendlyURL, active, serviceContext);
1320            }
1321    
1322            /**
1323            * Associates the group with a main site if the group is an organization.
1324            *
1325            * @param groupId the primary key of the group
1326            * @param site whether the group is to be associated with a main site
1327            * @return the group
1328            * @throws PortalException if a group with the primary key could not be
1329            found
1330            * @throws SystemException if a system exception occurred
1331            */
1332            public com.liferay.portal.model.Group updateSite(long groupId, boolean site)
1333                    throws com.liferay.portal.kernel.exception.PortalException,
1334                            com.liferay.portal.kernel.exception.SystemException {
1335                    return _groupLocalService.updateSite(groupId, site);
1336            }
1337    
1338            public GroupLocalService getWrappedGroupLocalService() {
1339                    return _groupLocalService;
1340            }
1341    
1342            public void setWrappedGroupLocalService(GroupLocalService groupLocalService) {
1343                    _groupLocalService = groupLocalService;
1344            }
1345    
1346            private GroupLocalService _groupLocalService;
1347    }