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