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