001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link UserGroupLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupLocalService
024     * @generated
025     */
026    public class UserGroupLocalServiceWrapper implements UserGroupLocalService,
027            ServiceWrapper<UserGroupLocalService> {
028            public UserGroupLocalServiceWrapper(
029                    UserGroupLocalService userGroupLocalService) {
030                    _userGroupLocalService = userGroupLocalService;
031            }
032    
033            /**
034            * Adds the user group to the database. Also notifies the appropriate model listeners.
035            *
036            * @param userGroup the user group
037            * @return the user group that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.UserGroup addUserGroup(
041                    com.liferay.portal.model.UserGroup userGroup)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _userGroupLocalService.addUserGroup(userGroup);
044            }
045    
046            /**
047            * Creates a new user group with the primary key. Does not add the user group to the database.
048            *
049            * @param userGroupId the primary key for the new user group
050            * @return the new user group
051            */
052            public com.liferay.portal.model.UserGroup createUserGroup(long userGroupId) {
053                    return _userGroupLocalService.createUserGroup(userGroupId);
054            }
055    
056            /**
057            * Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param userGroupId the primary key of the user group
060            * @return the user group that was removed
061            * @throws PortalException if a user group with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public com.liferay.portal.model.UserGroup deleteUserGroup(long userGroupId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _userGroupLocalService.deleteUserGroup(userGroupId);
068            }
069    
070            /**
071            * Deletes the user group from the database. Also notifies the appropriate model listeners.
072            *
073            * @param userGroup the user group
074            * @return the user group that was removed
075            * @throws PortalException
076            * @throws SystemException if a system exception occurred
077            */
078            public com.liferay.portal.model.UserGroup deleteUserGroup(
079                    com.liferay.portal.model.UserGroup userGroup)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    return _userGroupLocalService.deleteUserGroup(userGroup);
083            }
084    
085            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
086                    return _userGroupLocalService.dynamicQuery();
087            }
088    
089            /**
090            * Performs a dynamic query on the database and returns the matching rows.
091            *
092            * @param dynamicQuery the dynamic query
093            * @return the matching rows
094            * @throws SystemException if a system exception occurred
095            */
096            @SuppressWarnings("rawtypes")
097            public java.util.List dynamicQuery(
098                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
099                    throws com.liferay.portal.kernel.exception.SystemException {
100                    return _userGroupLocalService.dynamicQuery(dynamicQuery);
101            }
102    
103            /**
104            * Performs a dynamic query on the database and returns a range of the matching rows.
105            *
106            * <p>
107            * 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.
108            * </p>
109            *
110            * @param dynamicQuery the dynamic query
111            * @param start the lower bound of the range of model instances
112            * @param end the upper bound of the range of model instances (not inclusive)
113            * @return the range of matching rows
114            * @throws SystemException if a system exception occurred
115            */
116            @SuppressWarnings("rawtypes")
117            public java.util.List dynamicQuery(
118                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119                    int end) throws com.liferay.portal.kernel.exception.SystemException {
120                    return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end);
121            }
122    
123            /**
124            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
125            *
126            * <p>
127            * 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.
128            * </p>
129            *
130            * @param dynamicQuery the dynamic query
131            * @param start the lower bound of the range of model instances
132            * @param end the upper bound of the range of model instances (not inclusive)
133            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
134            * @return the ordered range of matching rows
135            * @throws SystemException if a system exception occurred
136            */
137            @SuppressWarnings("rawtypes")
138            public java.util.List dynamicQuery(
139                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140                    int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end,
144                            orderByComparator);
145            }
146    
147            /**
148            * Returns the number of rows that match the dynamic query.
149            *
150            * @param dynamicQuery the dynamic query
151            * @return the number of rows that match the dynamic query
152            * @throws SystemException if a system exception occurred
153            */
154            public long dynamicQueryCount(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _userGroupLocalService.dynamicQueryCount(dynamicQuery);
158            }
159    
160            public com.liferay.portal.model.UserGroup fetchUserGroup(long userGroupId)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return _userGroupLocalService.fetchUserGroup(userGroupId);
163            }
164    
165            /**
166            * Returns the user group with the primary key.
167            *
168            * @param userGroupId the primary key of the user group
169            * @return the user group
170            * @throws PortalException if a user group with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _userGroupLocalService.getUserGroup(userGroupId);
177            }
178    
179            public com.liferay.portal.model.PersistedModel getPersistedModel(
180                    java.io.Serializable primaryKeyObj)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return _userGroupLocalService.getPersistedModel(primaryKeyObj);
184            }
185    
186            /**
187            * Returns a range of all the user groups.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param start the lower bound of the range of user groups
194            * @param end the upper bound of the range of user groups (not inclusive)
195            * @return the range of user groups
196            * @throws SystemException if a system exception occurred
197            */
198            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
199                    int start, int end)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _userGroupLocalService.getUserGroups(start, end);
202            }
203    
204            /**
205            * Returns the number of user groups.
206            *
207            * @return the number of user groups
208            * @throws SystemException if a system exception occurred
209            */
210            public int getUserGroupsCount()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _userGroupLocalService.getUserGroupsCount();
213            }
214    
215            /**
216            * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param userGroup the user group
219            * @return the user group that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portal.model.UserGroup updateUserGroup(
223                    com.liferay.portal.model.UserGroup userGroup)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _userGroupLocalService.updateUserGroup(userGroup);
226            }
227    
228            /**
229            * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param userGroup the user group
232            * @param merge whether to merge the user 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.
233            * @return the user group that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portal.model.UserGroup updateUserGroup(
237                    com.liferay.portal.model.UserGroup userGroup, boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _userGroupLocalService.updateUserGroup(userGroup, merge);
240            }
241    
242            /**
243            * @throws SystemException if a system exception occurred
244            */
245            public void addGroupUserGroup(long groupId, long userGroupId)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    _userGroupLocalService.addGroupUserGroup(groupId, userGroupId);
248            }
249    
250            /**
251            * @throws SystemException if a system exception occurred
252            */
253            public void addGroupUserGroup(long groupId,
254                    com.liferay.portal.model.UserGroup userGroup)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    _userGroupLocalService.addGroupUserGroup(groupId, userGroup);
257            }
258    
259            /**
260            * @throws SystemException if a system exception occurred
261            */
262            public void addGroupUserGroups(long groupId, long[] userGroupIds)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    _userGroupLocalService.addGroupUserGroups(groupId, userGroupIds);
265            }
266    
267            /**
268            * @throws SystemException if a system exception occurred
269            */
270            public void addGroupUserGroups(long groupId,
271                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    _userGroupLocalService.addGroupUserGroups(groupId, UserGroups);
274            }
275    
276            /**
277            * @throws SystemException if a system exception occurred
278            */
279            public void clearGroupUserGroups(long groupId)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    _userGroupLocalService.clearGroupUserGroups(groupId);
282            }
283    
284            /**
285            * @throws SystemException if a system exception occurred
286            */
287            public void deleteGroupUserGroup(long groupId, long userGroupId)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroupId);
290            }
291    
292            /**
293            * @throws SystemException if a system exception occurred
294            */
295            public void deleteGroupUserGroup(long groupId,
296                    com.liferay.portal.model.UserGroup userGroup)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroup);
299            }
300    
301            /**
302            * @throws SystemException if a system exception occurred
303            */
304            public void deleteGroupUserGroups(long groupId, long[] userGroupIds)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    _userGroupLocalService.deleteGroupUserGroups(groupId, userGroupIds);
307            }
308    
309            /**
310            * @throws SystemException if a system exception occurred
311            */
312            public void deleteGroupUserGroups(long groupId,
313                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    _userGroupLocalService.deleteGroupUserGroups(groupId, UserGroups);
316            }
317    
318            /**
319            * @throws SystemException if a system exception occurred
320            */
321            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
322                    long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _userGroupLocalService.getGroupUserGroups(groupId);
325            }
326    
327            /**
328            * @throws SystemException if a system exception occurred
329            */
330            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
331                    long groupId, int start, int end)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end);
334            }
335    
336            /**
337            * @throws SystemException if a system exception occurred
338            */
339            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
340                    long groupId, int start, int end,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end,
344                            orderByComparator);
345            }
346    
347            /**
348            * @throws SystemException if a system exception occurred
349            */
350            public int getGroupUserGroupsCount(long groupId)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _userGroupLocalService.getGroupUserGroupsCount(groupId);
353            }
354    
355            /**
356            * @throws SystemException if a system exception occurred
357            */
358            public boolean hasGroupUserGroup(long groupId, long userGroupId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _userGroupLocalService.hasGroupUserGroup(groupId, userGroupId);
361            }
362    
363            /**
364            * @throws SystemException if a system exception occurred
365            */
366            public boolean hasGroupUserGroups(long groupId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _userGroupLocalService.hasGroupUserGroups(groupId);
369            }
370    
371            /**
372            * @throws SystemException if a system exception occurred
373            */
374            public void setGroupUserGroups(long groupId, long[] userGroupIds)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    _userGroupLocalService.setGroupUserGroups(groupId, userGroupIds);
377            }
378    
379            /**
380            * @throws SystemException if a system exception occurred
381            */
382            public void addTeamUserGroup(long teamId, long userGroupId)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    _userGroupLocalService.addTeamUserGroup(teamId, userGroupId);
385            }
386    
387            /**
388            * @throws SystemException if a system exception occurred
389            */
390            public void addTeamUserGroup(long teamId,
391                    com.liferay.portal.model.UserGroup userGroup)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    _userGroupLocalService.addTeamUserGroup(teamId, userGroup);
394            }
395    
396            /**
397            * @throws SystemException if a system exception occurred
398            */
399            public void addTeamUserGroups(long teamId, long[] userGroupIds)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    _userGroupLocalService.addTeamUserGroups(teamId, userGroupIds);
402            }
403    
404            /**
405            * @throws SystemException if a system exception occurred
406            */
407            public void addTeamUserGroups(long teamId,
408                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    _userGroupLocalService.addTeamUserGroups(teamId, UserGroups);
411            }
412    
413            /**
414            * @throws SystemException if a system exception occurred
415            */
416            public void clearTeamUserGroups(long teamId)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    _userGroupLocalService.clearTeamUserGroups(teamId);
419            }
420    
421            /**
422            * @throws SystemException if a system exception occurred
423            */
424            public void deleteTeamUserGroup(long teamId, long userGroupId)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroupId);
427            }
428    
429            /**
430            * @throws SystemException if a system exception occurred
431            */
432            public void deleteTeamUserGroup(long teamId,
433                    com.liferay.portal.model.UserGroup userGroup)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroup);
436            }
437    
438            /**
439            * @throws SystemException if a system exception occurred
440            */
441            public void deleteTeamUserGroups(long teamId, long[] userGroupIds)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    _userGroupLocalService.deleteTeamUserGroups(teamId, userGroupIds);
444            }
445    
446            /**
447            * @throws SystemException if a system exception occurred
448            */
449            public void deleteTeamUserGroups(long teamId,
450                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    _userGroupLocalService.deleteTeamUserGroups(teamId, UserGroups);
453            }
454    
455            /**
456            * @throws SystemException if a system exception occurred
457            */
458            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
459                    long teamId) throws com.liferay.portal.kernel.exception.SystemException {
460                    return _userGroupLocalService.getTeamUserGroups(teamId);
461            }
462    
463            /**
464            * @throws SystemException if a system exception occurred
465            */
466            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
467                    long teamId, int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end);
470            }
471    
472            /**
473            * @throws SystemException if a system exception occurred
474            */
475            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
476                    long teamId, int start, int end,
477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end,
480                            orderByComparator);
481            }
482    
483            /**
484            * @throws SystemException if a system exception occurred
485            */
486            public int getTeamUserGroupsCount(long teamId)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return _userGroupLocalService.getTeamUserGroupsCount(teamId);
489            }
490    
491            /**
492            * @throws SystemException if a system exception occurred
493            */
494            public boolean hasTeamUserGroup(long teamId, long userGroupId)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return _userGroupLocalService.hasTeamUserGroup(teamId, userGroupId);
497            }
498    
499            /**
500            * @throws SystemException if a system exception occurred
501            */
502            public boolean hasTeamUserGroups(long teamId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return _userGroupLocalService.hasTeamUserGroups(teamId);
505            }
506    
507            /**
508            * @throws SystemException if a system exception occurred
509            */
510            public void setTeamUserGroups(long teamId, long[] userGroupIds)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    _userGroupLocalService.setTeamUserGroups(teamId, userGroupIds);
513            }
514    
515            /**
516            * @throws SystemException if a system exception occurred
517            */
518            public void addUserUserGroup(long userId, long userGroupId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    _userGroupLocalService.addUserUserGroup(userId, userGroupId);
521            }
522    
523            /**
524            * @throws SystemException if a system exception occurred
525            */
526            public void addUserUserGroup(long userId,
527                    com.liferay.portal.model.UserGroup userGroup)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    _userGroupLocalService.addUserUserGroup(userId, userGroup);
530            }
531    
532            /**
533            * @throws SystemException if a system exception occurred
534            */
535            public void addUserUserGroups(long userId, long[] userGroupIds)
536                    throws com.liferay.portal.kernel.exception.SystemException {
537                    _userGroupLocalService.addUserUserGroups(userId, userGroupIds);
538            }
539    
540            /**
541            * @throws SystemException if a system exception occurred
542            */
543            public void addUserUserGroups(long userId,
544                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    _userGroupLocalService.addUserUserGroups(userId, UserGroups);
547            }
548    
549            /**
550            * @throws SystemException if a system exception occurred
551            */
552            public void clearUserUserGroups(long userId)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    _userGroupLocalService.clearUserUserGroups(userId);
555            }
556    
557            /**
558            * @throws SystemException if a system exception occurred
559            */
560            public void deleteUserUserGroup(long userId, long userGroupId)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    _userGroupLocalService.deleteUserUserGroup(userId, userGroupId);
563            }
564    
565            /**
566            * @throws SystemException if a system exception occurred
567            */
568            public void deleteUserUserGroup(long userId,
569                    com.liferay.portal.model.UserGroup userGroup)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    _userGroupLocalService.deleteUserUserGroup(userId, userGroup);
572            }
573    
574            /**
575            * @throws SystemException if a system exception occurred
576            */
577            public void deleteUserUserGroups(long userId, long[] userGroupIds)
578                    throws com.liferay.portal.kernel.exception.SystemException {
579                    _userGroupLocalService.deleteUserUserGroups(userId, userGroupIds);
580            }
581    
582            /**
583            * @throws SystemException if a system exception occurred
584            */
585            public void deleteUserUserGroups(long userId,
586                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    _userGroupLocalService.deleteUserUserGroups(userId, UserGroups);
589            }
590    
591            /**
592            * @throws SystemException if a system exception occurred
593            */
594            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
595                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
596                    return _userGroupLocalService.getUserUserGroups(userId);
597            }
598    
599            /**
600            * @throws SystemException if a system exception occurred
601            */
602            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
603                    long userId, int start, int end)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return _userGroupLocalService.getUserUserGroups(userId, start, end);
606            }
607    
608            /**
609            * @throws SystemException if a system exception occurred
610            */
611            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
612                    long userId, int start, int end,
613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return _userGroupLocalService.getUserUserGroups(userId, start, end,
616                            orderByComparator);
617            }
618    
619            /**
620            * @throws SystemException if a system exception occurred
621            */
622            public int getUserUserGroupsCount(long userId)
623                    throws com.liferay.portal.kernel.exception.SystemException {
624                    return _userGroupLocalService.getUserUserGroupsCount(userId);
625            }
626    
627            /**
628            * @throws SystemException if a system exception occurred
629            */
630            public boolean hasUserUserGroup(long userId, long userGroupId)
631                    throws com.liferay.portal.kernel.exception.SystemException {
632                    return _userGroupLocalService.hasUserUserGroup(userId, userGroupId);
633            }
634    
635            /**
636            * @throws SystemException if a system exception occurred
637            */
638            public boolean hasUserUserGroups(long userId)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    return _userGroupLocalService.hasUserUserGroups(userId);
641            }
642    
643            /**
644            * @throws PortalException
645            * @throws SystemException if a system exception occurred
646            */
647            public void setUserUserGroups(long userId, long[] userGroupIds)
648                    throws com.liferay.portal.kernel.exception.PortalException,
649                            com.liferay.portal.kernel.exception.SystemException {
650                    _userGroupLocalService.setUserUserGroups(userId, userGroupIds);
651            }
652    
653            /**
654            * Returns the Spring bean ID for this bean.
655            *
656            * @return the Spring bean ID for this bean
657            */
658            public java.lang.String getBeanIdentifier() {
659                    return _userGroupLocalService.getBeanIdentifier();
660            }
661    
662            /**
663            * Sets the Spring bean ID for this bean.
664            *
665            * @param beanIdentifier the Spring bean ID for this bean
666            */
667            public void setBeanIdentifier(java.lang.String beanIdentifier) {
668                    _userGroupLocalService.setBeanIdentifier(beanIdentifier);
669            }
670    
671            /**
672            * Adds a user group.
673            *
674            * <p>
675            * This method handles the creation and bookkeeping of the user group,
676            * including its resources, metadata, and internal data structures. It is
677            * not necessary to make subsequent calls to setup default groups and
678            * resources for the user group.
679            * </p>
680            *
681            * @param userId the primary key of the user
682            * @param companyId the primary key of the user group's company
683            * @param name the user group's name
684            * @param description the user group's description
685            * @return the user group
686            * @throws PortalException if the user group's information was invalid
687            * @throws SystemException if a system exception occurred
688            */
689            public com.liferay.portal.model.UserGroup addUserGroup(long userId,
690                    long companyId, java.lang.String name, java.lang.String description)
691                    throws com.liferay.portal.kernel.exception.PortalException,
692                            com.liferay.portal.kernel.exception.SystemException {
693                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
694                            description);
695            }
696    
697            /**
698            * Copies the user group's layout to the user.
699            *
700            * @param userGroupId the primary key of the user group
701            * @param userId the primary key of the user
702            * @throws PortalException if a user with the primary key could not be
703            found or if a portal exception occurred
704            * @throws SystemException if a system exception occurred
705            * @deprecated
706            */
707            public void copyUserGroupLayouts(long userGroupId, long userId)
708                    throws com.liferay.portal.kernel.exception.PortalException,
709                            com.liferay.portal.kernel.exception.SystemException {
710                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userId);
711            }
712    
713            /**
714            * Copies the user group's layouts to the users who are not already members
715            * of the user group.
716            *
717            * @param userGroupId the primary key of the user group
718            * @param userIds the primary keys of the users
719            * @throws PortalException if any one of the users could not be found or
720            if a portal exception occurred
721            * @throws SystemException if a system exception occurred
722            * @deprecated
723            */
724            public void copyUserGroupLayouts(long userGroupId, long[] userIds)
725                    throws com.liferay.portal.kernel.exception.PortalException,
726                            com.liferay.portal.kernel.exception.SystemException {
727                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userIds);
728            }
729    
730            /**
731            * Copies the user groups' layouts to the user.
732            *
733            * @param userGroupIds the primary keys of the user groups
734            * @param userId the primary key of the user
735            * @throws PortalException if a user with the primary key could not be
736            found or if a portal exception occurred
737            * @throws SystemException if a system exception occurred
738            * @deprecated
739            */
740            public void copyUserGroupLayouts(long[] userGroupIds, long userId)
741                    throws com.liferay.portal.kernel.exception.PortalException,
742                            com.liferay.portal.kernel.exception.SystemException {
743                    _userGroupLocalService.copyUserGroupLayouts(userGroupIds, userId);
744            }
745    
746            /**
747            * Returns the user group with the name.
748            *
749            * @param companyId the primary key of the user group's company
750            * @param name the user group's name
751            * @return Returns the user group with the name
752            * @throws PortalException if a user group with the name could not be found
753            * @throws SystemException if a system exception occurred
754            */
755            public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
756                    java.lang.String name)
757                    throws com.liferay.portal.kernel.exception.PortalException,
758                            com.liferay.portal.kernel.exception.SystemException {
759                    return _userGroupLocalService.getUserGroup(companyId, name);
760            }
761    
762            /**
763            * Returns all the user groups belonging to the company.
764            *
765            * @param companyId the primary key of the user groups' company
766            * @return the user groups belonging to the company
767            * @throws SystemException if a system exception occurred
768            */
769            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
770                    long companyId)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    return _userGroupLocalService.getUserGroups(companyId);
773            }
774    
775            /**
776            * Returns all the user groups with the primary keys.
777            *
778            * @param userGroupIds the primary keys of the user groups
779            * @return the user groups with the primary keys
780            * @throws PortalException if any one of the user groups could not be found
781            * @throws SystemException if a system exception occurred
782            */
783            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
784                    long[] userGroupIds)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException {
787                    return _userGroupLocalService.getUserGroups(userGroupIds);
788            }
789    
790            public java.util.List<com.liferay.portal.model.UserGroup> search(
791                    long companyId, java.lang.String keywords,
792                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
793                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
794                    throws com.liferay.portal.kernel.exception.SystemException {
795                    return _userGroupLocalService.search(companyId, keywords, params,
796                            start, end, obc);
797            }
798    
799            /**
800            * Returns an ordered range of all the user groups that match the name and
801            * description.
802            *
803            * <p>
804            * Useful when paginating results. Returns a maximum of <code>end -
805            * start</code> instances. <code>start</code> and <code>end</code> are not
806            * primary keys, they are indexes in the result set. Thus, <code>0</code>
807            * refers to the first result in the set. Setting both <code>start</code>
808            * and <code>end</code> to {@link
809            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
810            * result set.
811            * </p>
812            *
813            * @param companyId the primary key of the user group's company
814            * @param name the user group's name (optionally <code>null</code>)
815            * @param description the user group's description (optionally
816            <code>null</code>)
817            * @param params the finder params (optionally <code>null</code>). For more
818            information see {@link
819            com.liferay.portal.service.persistence.UserGroupFinder}
820            * @param start the lower bound of the range of user groups to return
821            * @param end the upper bound of the range of user groups to return (not
822            inclusive)
823            * @param obc the comparator to order the user groups (optionally
824            <code>null</code>)
825            * @return the matching user groups ordered by comparator <code>obc</code>
826            * @throws SystemException if a system exception occurred
827            * @see com.liferay.portal.service.persistence.UserGroupFinder
828            */
829            public java.util.List<com.liferay.portal.model.UserGroup> search(
830                    long companyId, java.lang.String name, java.lang.String description,
831                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
832                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
833                    throws com.liferay.portal.kernel.exception.SystemException {
834                    return _userGroupLocalService.search(companyId, name, description,
835                            params, start, end, obc);
836            }
837    
838            public int searchCount(long companyId, java.lang.String keywords,
839                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
840                    throws com.liferay.portal.kernel.exception.SystemException {
841                    return _userGroupLocalService.searchCount(companyId, keywords, params);
842            }
843    
844            /**
845            * Returns the number of user groups that match the name and description.
846            *
847            * @param companyId the primary key of the user group's company
848            * @param name the user group's name (optionally <code>null</code>)
849            * @param description the user group's description (optionally
850            <code>null</code>)
851            * @param params the finder params (optionally <code>null</code>). For more
852            information see {@link
853            com.liferay.portal.service.persistence.UserGroupFinder}
854            * @return the number of matching user groups
855            * @throws SystemException if a system exception occurred
856            * @see com.liferay.portal.service.persistence.UserGroupFinder
857            */
858            public int searchCount(long companyId, java.lang.String name,
859                    java.lang.String description,
860                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
861                    throws com.liferay.portal.kernel.exception.SystemException {
862                    return _userGroupLocalService.searchCount(companyId, name, description,
863                            params);
864            }
865    
866            /**
867            * Removes the user groups from the group.
868            *
869            * @param groupId the primary key of the group
870            * @param userGroupIds the primary keys of the user groups
871            * @throws SystemException if a system exception occurred
872            */
873            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
874                    throws com.liferay.portal.kernel.exception.SystemException {
875                    _userGroupLocalService.unsetGroupUserGroups(groupId, userGroupIds);
876            }
877    
878            /**
879            * Removes the user groups from the team.
880            *
881            * @param teamId the primary key of the team
882            * @param userGroupIds the primary keys of the user groups
883            * @throws SystemException if a system exception occurred
884            */
885            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
886                    throws com.liferay.portal.kernel.exception.SystemException {
887                    _userGroupLocalService.unsetTeamUserGroups(teamId, userGroupIds);
888            }
889    
890            /**
891            * Updates the user group.
892            *
893            * @param companyId the primary key of the user group's company
894            * @param userGroupId the primary key of the user group
895            * @param name the user group's name
896            * @param description the user group's description
897            * @return the user group
898            * @throws PortalException if a user group with the primary key could not be
899            found or if the new information was invalid
900            * @throws SystemException if a system exception occurred
901            */
902            public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
903                    long userGroupId, java.lang.String name, java.lang.String description)
904                    throws com.liferay.portal.kernel.exception.PortalException,
905                            com.liferay.portal.kernel.exception.SystemException {
906                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
907                            name, description);
908            }
909    
910            /**
911             * @deprecated Renamed to {@link #getWrappedService}
912             */
913            public UserGroupLocalService getWrappedUserGroupLocalService() {
914                    return _userGroupLocalService;
915            }
916    
917            /**
918             * @deprecated Renamed to {@link #setWrappedService}
919             */
920            public void setWrappedUserGroupLocalService(
921                    UserGroupLocalService userGroupLocalService) {
922                    _userGroupLocalService = userGroupLocalService;
923            }
924    
925            public UserGroupLocalService getWrappedService() {
926                    return _userGroupLocalService;
927            }
928    
929            public void setWrappedService(UserGroupLocalService userGroupLocalService) {
930                    _userGroupLocalService = userGroupLocalService;
931            }
932    
933            private UserGroupLocalService _userGroupLocalService;
934    }