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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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            * @throws SystemException if a system exception occurred
230            */
231            public void addGroupUserGroup(long groupId, long userGroupId)
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    _userGroupLocalService.addGroupUserGroup(groupId, userGroupId);
234            }
235    
236            /**
237            * @throws SystemException if a system exception occurred
238            */
239            public void addGroupUserGroup(long groupId,
240                    com.liferay.portal.model.UserGroup userGroup)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    _userGroupLocalService.addGroupUserGroup(groupId, userGroup);
243            }
244    
245            /**
246            * @throws SystemException if a system exception occurred
247            */
248            public void addGroupUserGroups(long groupId, long[] userGroupIds)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    _userGroupLocalService.addGroupUserGroups(groupId, userGroupIds);
251            }
252    
253            /**
254            * @throws SystemException if a system exception occurred
255            */
256            public void addGroupUserGroups(long groupId,
257                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    _userGroupLocalService.addGroupUserGroups(groupId, UserGroups);
260            }
261    
262            /**
263            * @throws SystemException if a system exception occurred
264            */
265            public void clearGroupUserGroups(long groupId)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    _userGroupLocalService.clearGroupUserGroups(groupId);
268            }
269    
270            /**
271            * @throws SystemException if a system exception occurred
272            */
273            public void deleteGroupUserGroup(long groupId, long userGroupId)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroupId);
276            }
277    
278            /**
279            * @throws SystemException if a system exception occurred
280            */
281            public void deleteGroupUserGroup(long groupId,
282                    com.liferay.portal.model.UserGroup userGroup)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroup);
285            }
286    
287            /**
288            * @throws SystemException if a system exception occurred
289            */
290            public void deleteGroupUserGroups(long groupId, long[] userGroupIds)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    _userGroupLocalService.deleteGroupUserGroups(groupId, userGroupIds);
293            }
294    
295            /**
296            * @throws SystemException if a system exception occurred
297            */
298            public void deleteGroupUserGroups(long groupId,
299                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    _userGroupLocalService.deleteGroupUserGroups(groupId, UserGroups);
302            }
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
308                    long groupId)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _userGroupLocalService.getGroupUserGroups(groupId);
311            }
312    
313            /**
314            * @throws SystemException if a system exception occurred
315            */
316            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
317                    long groupId, int start, int end)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end);
320            }
321    
322            /**
323            * @throws SystemException if a system exception occurred
324            */
325            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
326                    long groupId, int start, int end,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end,
330                            orderByComparator);
331            }
332    
333            /**
334            * @throws SystemException if a system exception occurred
335            */
336            public int getGroupUserGroupsCount(long groupId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _userGroupLocalService.getGroupUserGroupsCount(groupId);
339            }
340    
341            /**
342            * @throws SystemException if a system exception occurred
343            */
344            public boolean hasGroupUserGroup(long groupId, long userGroupId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _userGroupLocalService.hasGroupUserGroup(groupId, userGroupId);
347            }
348    
349            /**
350            * @throws SystemException if a system exception occurred
351            */
352            public boolean hasGroupUserGroups(long groupId)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _userGroupLocalService.hasGroupUserGroups(groupId);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            public void setGroupUserGroups(long groupId, long[] userGroupIds)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    _userGroupLocalService.setGroupUserGroups(groupId, userGroupIds);
363            }
364    
365            /**
366            * @throws SystemException if a system exception occurred
367            */
368            public void addTeamUserGroup(long teamId, long userGroupId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    _userGroupLocalService.addTeamUserGroup(teamId, userGroupId);
371            }
372    
373            /**
374            * @throws SystemException if a system exception occurred
375            */
376            public void addTeamUserGroup(long teamId,
377                    com.liferay.portal.model.UserGroup userGroup)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    _userGroupLocalService.addTeamUserGroup(teamId, userGroup);
380            }
381    
382            /**
383            * @throws SystemException if a system exception occurred
384            */
385            public void addTeamUserGroups(long teamId, long[] userGroupIds)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    _userGroupLocalService.addTeamUserGroups(teamId, userGroupIds);
388            }
389    
390            /**
391            * @throws SystemException if a system exception occurred
392            */
393            public void addTeamUserGroups(long teamId,
394                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    _userGroupLocalService.addTeamUserGroups(teamId, UserGroups);
397            }
398    
399            /**
400            * @throws SystemException if a system exception occurred
401            */
402            public void clearTeamUserGroups(long teamId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    _userGroupLocalService.clearTeamUserGroups(teamId);
405            }
406    
407            /**
408            * @throws SystemException if a system exception occurred
409            */
410            public void deleteTeamUserGroup(long teamId, long userGroupId)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroupId);
413            }
414    
415            /**
416            * @throws SystemException if a system exception occurred
417            */
418            public void deleteTeamUserGroup(long teamId,
419                    com.liferay.portal.model.UserGroup userGroup)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroup);
422            }
423    
424            /**
425            * @throws SystemException if a system exception occurred
426            */
427            public void deleteTeamUserGroups(long teamId, long[] userGroupIds)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    _userGroupLocalService.deleteTeamUserGroups(teamId, userGroupIds);
430            }
431    
432            /**
433            * @throws SystemException if a system exception occurred
434            */
435            public void deleteTeamUserGroups(long teamId,
436                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    _userGroupLocalService.deleteTeamUserGroups(teamId, UserGroups);
439            }
440    
441            /**
442            * @throws SystemException if a system exception occurred
443            */
444            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
445                    long teamId) throws com.liferay.portal.kernel.exception.SystemException {
446                    return _userGroupLocalService.getTeamUserGroups(teamId);
447            }
448    
449            /**
450            * @throws SystemException if a system exception occurred
451            */
452            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
453                    long teamId, int start, int end)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end);
456            }
457    
458            /**
459            * @throws SystemException if a system exception occurred
460            */
461            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
462                    long teamId, int start, int end,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end,
466                            orderByComparator);
467            }
468    
469            /**
470            * @throws SystemException if a system exception occurred
471            */
472            public int getTeamUserGroupsCount(long teamId)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return _userGroupLocalService.getTeamUserGroupsCount(teamId);
475            }
476    
477            /**
478            * @throws SystemException if a system exception occurred
479            */
480            public boolean hasTeamUserGroup(long teamId, long userGroupId)
481                    throws com.liferay.portal.kernel.exception.SystemException {
482                    return _userGroupLocalService.hasTeamUserGroup(teamId, userGroupId);
483            }
484    
485            /**
486            * @throws SystemException if a system exception occurred
487            */
488            public boolean hasTeamUserGroups(long teamId)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return _userGroupLocalService.hasTeamUserGroups(teamId);
491            }
492    
493            /**
494            * @throws SystemException if a system exception occurred
495            */
496            public void setTeamUserGroups(long teamId, long[] userGroupIds)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    _userGroupLocalService.setTeamUserGroups(teamId, userGroupIds);
499            }
500    
501            /**
502            * @throws SystemException if a system exception occurred
503            */
504            public void addUserUserGroup(long userId, long userGroupId)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    _userGroupLocalService.addUserUserGroup(userId, userGroupId);
507            }
508    
509            /**
510            * @throws SystemException if a system exception occurred
511            */
512            public void addUserUserGroup(long userId,
513                    com.liferay.portal.model.UserGroup userGroup)
514                    throws com.liferay.portal.kernel.exception.SystemException {
515                    _userGroupLocalService.addUserUserGroup(userId, userGroup);
516            }
517    
518            /**
519            * @throws SystemException if a system exception occurred
520            */
521            public void addUserUserGroups(long userId, long[] userGroupIds)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    _userGroupLocalService.addUserUserGroups(userId, userGroupIds);
524            }
525    
526            /**
527            * @throws SystemException if a system exception occurred
528            */
529            public void addUserUserGroups(long userId,
530                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    _userGroupLocalService.addUserUserGroups(userId, UserGroups);
533            }
534    
535            /**
536            * @throws SystemException if a system exception occurred
537            */
538            public void clearUserUserGroups(long userId)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    _userGroupLocalService.clearUserUserGroups(userId);
541            }
542    
543            /**
544            * @throws SystemException if a system exception occurred
545            */
546            public void deleteUserUserGroup(long userId, long userGroupId)
547                    throws com.liferay.portal.kernel.exception.SystemException {
548                    _userGroupLocalService.deleteUserUserGroup(userId, userGroupId);
549            }
550    
551            /**
552            * @throws SystemException if a system exception occurred
553            */
554            public void deleteUserUserGroup(long userId,
555                    com.liferay.portal.model.UserGroup userGroup)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    _userGroupLocalService.deleteUserUserGroup(userId, userGroup);
558            }
559    
560            /**
561            * @throws SystemException if a system exception occurred
562            */
563            public void deleteUserUserGroups(long userId, long[] userGroupIds)
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    _userGroupLocalService.deleteUserUserGroups(userId, userGroupIds);
566            }
567    
568            /**
569            * @throws SystemException if a system exception occurred
570            */
571            public void deleteUserUserGroups(long userId,
572                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    _userGroupLocalService.deleteUserUserGroups(userId, UserGroups);
575            }
576    
577            /**
578            * @throws SystemException if a system exception occurred
579            */
580            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
581                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
582                    return _userGroupLocalService.getUserUserGroups(userId);
583            }
584    
585            /**
586            * @throws SystemException if a system exception occurred
587            */
588            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
589                    long userId, int start, int end)
590                    throws com.liferay.portal.kernel.exception.SystemException {
591                    return _userGroupLocalService.getUserUserGroups(userId, start, end);
592            }
593    
594            /**
595            * @throws SystemException if a system exception occurred
596            */
597            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
598                    long userId, int start, int end,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return _userGroupLocalService.getUserUserGroups(userId, start, end,
602                            orderByComparator);
603            }
604    
605            /**
606            * @throws SystemException if a system exception occurred
607            */
608            public int getUserUserGroupsCount(long userId)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return _userGroupLocalService.getUserUserGroupsCount(userId);
611            }
612    
613            /**
614            * @throws SystemException if a system exception occurred
615            */
616            public boolean hasUserUserGroup(long userId, long userGroupId)
617                    throws com.liferay.portal.kernel.exception.SystemException {
618                    return _userGroupLocalService.hasUserUserGroup(userId, userGroupId);
619            }
620    
621            /**
622            * @throws SystemException if a system exception occurred
623            */
624            public boolean hasUserUserGroups(long userId)
625                    throws com.liferay.portal.kernel.exception.SystemException {
626                    return _userGroupLocalService.hasUserUserGroups(userId);
627            }
628    
629            /**
630            * @throws PortalException
631            * @throws SystemException if a system exception occurred
632            */
633            public void setUserUserGroups(long userId, long[] userGroupIds)
634                    throws com.liferay.portal.kernel.exception.PortalException,
635                            com.liferay.portal.kernel.exception.SystemException {
636                    _userGroupLocalService.setUserUserGroups(userId, userGroupIds);
637            }
638    
639            /**
640            * Returns the Spring bean ID for this bean.
641            *
642            * @return the Spring bean ID for this bean
643            */
644            public java.lang.String getBeanIdentifier() {
645                    return _userGroupLocalService.getBeanIdentifier();
646            }
647    
648            /**
649            * Sets the Spring bean ID for this bean.
650            *
651            * @param beanIdentifier the Spring bean ID for this bean
652            */
653            public void setBeanIdentifier(java.lang.String beanIdentifier) {
654                    _userGroupLocalService.setBeanIdentifier(beanIdentifier);
655            }
656    
657            /**
658            * Adds a user group.
659            *
660            * <p>
661            * This method handles the creation and bookkeeping of the user group,
662            * including its resources, metadata, and internal data structures. It is
663            * not necessary to make subsequent calls to setup default groups and
664            * resources for the user group.
665            * </p>
666            *
667            * @param userId the primary key of the user
668            * @param companyId the primary key of the user group's company
669            * @param name the user group's name
670            * @param description the user group's description
671            * @return the user group
672            * @throws PortalException if the user group's information was invalid
673            * @throws SystemException if a system exception occurred
674            * @deprecated As of 6.2.0, replaced by {@link #addUserGroup(long, long,
675            String, String, ServiceContext)}
676            */
677            public com.liferay.portal.model.UserGroup addUserGroup(long userId,
678                    long companyId, java.lang.String name, java.lang.String description)
679                    throws com.liferay.portal.kernel.exception.PortalException,
680                            com.liferay.portal.kernel.exception.SystemException {
681                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
682                            description);
683            }
684    
685            /**
686            * Adds a user group.
687            *
688            * <p>
689            * This method handles the creation and bookkeeping of the user group,
690            * including its resources, metadata, and internal data structures. It is
691            * not necessary to make subsequent calls to setup default groups and
692            * resources for the user group.
693            * </p>
694            *
695            * @param userId the primary key of the user
696            * @param companyId the primary key of the user group's company
697            * @param name the user group's name
698            * @param description the user group's description
699            * @param serviceContext the service context to be applied (optionally
700            <code>null</code>). Can set expando bridge attributes for the
701            user group.
702            * @return the user group
703            * @throws PortalException if the user group's information was invalid
704            * @throws SystemException if a system exception occurred
705            */
706            public com.liferay.portal.model.UserGroup addUserGroup(long userId,
707                    long companyId, java.lang.String name, java.lang.String description,
708                    com.liferay.portal.service.ServiceContext serviceContext)
709                    throws com.liferay.portal.kernel.exception.PortalException,
710                            com.liferay.portal.kernel.exception.SystemException {
711                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
712                            description, serviceContext);
713            }
714    
715            /**
716            * Copies the user group's layout to the user.
717            *
718            * @param userGroupId the primary key of the user group
719            * @param userId the primary key of the user
720            * @throws PortalException if a user with the primary key could not be
721            found or if a portal exception occurred
722            * @throws SystemException if a system exception occurred
723            * @deprecated As of 6.2.0
724            */
725            public void copyUserGroupLayouts(long userGroupId, long userId)
726                    throws com.liferay.portal.kernel.exception.PortalException,
727                            com.liferay.portal.kernel.exception.SystemException {
728                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userId);
729            }
730    
731            /**
732            * Copies the user group's layouts to the users who are not already members
733            * of the user group.
734            *
735            * @param userGroupId the primary key of the user group
736            * @param userIds the primary keys of the users
737            * @throws PortalException if any one of the users could not be found or
738            if a portal exception occurred
739            * @throws SystemException if a system exception occurred
740            * @deprecated As of 6.1.0
741            */
742            public void copyUserGroupLayouts(long userGroupId, long[] userIds)
743                    throws com.liferay.portal.kernel.exception.PortalException,
744                            com.liferay.portal.kernel.exception.SystemException {
745                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userIds);
746            }
747    
748            /**
749            * Copies the user groups' layouts to the user.
750            *
751            * @param userGroupIds the primary keys of the user groups
752            * @param userId the primary key of the user
753            * @throws PortalException if a user with the primary key could not be
754            found or if a portal exception occurred
755            * @throws SystemException if a system exception occurred
756            * @deprecated As of 6.1.0
757            */
758            public void copyUserGroupLayouts(long[] userGroupIds, long userId)
759                    throws com.liferay.portal.kernel.exception.PortalException,
760                            com.liferay.portal.kernel.exception.SystemException {
761                    _userGroupLocalService.copyUserGroupLayouts(userGroupIds, userId);
762            }
763    
764            public com.liferay.portal.model.UserGroup fetchUserGroup(long companyId,
765                    java.lang.String name)
766                    throws com.liferay.portal.kernel.exception.SystemException {
767                    return _userGroupLocalService.fetchUserGroup(companyId, name);
768            }
769    
770            public com.liferay.portal.model.UserGroup fetchUserGroupByUuidAndCompanyId(
771                    java.lang.String uuid, long companyId)
772                    throws com.liferay.portal.kernel.exception.SystemException {
773                    return _userGroupLocalService.fetchUserGroupByUuidAndCompanyId(uuid,
774                            companyId);
775            }
776    
777            /**
778            * Returns the user group with the name.
779            *
780            * @param companyId the primary key of the user group's company
781            * @param name the user group's name
782            * @return Returns the user group with the name
783            * @throws PortalException if a user group with the name could not be found
784            * @throws SystemException if a system exception occurred
785            */
786            public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
787                    java.lang.String name)
788                    throws com.liferay.portal.kernel.exception.PortalException,
789                            com.liferay.portal.kernel.exception.SystemException {
790                    return _userGroupLocalService.getUserGroup(companyId, name);
791            }
792    
793            /**
794            * Returns all the user groups belonging to the company.
795            *
796            * @param companyId the primary key of the user groups' company
797            * @return the user groups belonging to the company
798            * @throws SystemException if a system exception occurred
799            */
800            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
801                    long companyId)
802                    throws com.liferay.portal.kernel.exception.SystemException {
803                    return _userGroupLocalService.getUserGroups(companyId);
804            }
805    
806            /**
807            * Returns all the user groups with the primary keys.
808            *
809            * @param userGroupIds the primary keys of the user groups
810            * @return the user groups with the primary keys
811            * @throws PortalException if any one of the user groups could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
815                    long[] userGroupIds)
816                    throws com.liferay.portal.kernel.exception.PortalException,
817                            com.liferay.portal.kernel.exception.SystemException {
818                    return _userGroupLocalService.getUserGroups(userGroupIds);
819            }
820    
821            /**
822            * Returns an ordered range of all the user groups that match the keywords.
823            *
824            * <p>
825            * Useful when paginating results. Returns a maximum of <code>end -
826            * start</code> instances. <code>start</code> and <code>end</code> are not
827            * primary keys, they are indexes in the result set. Thus, <code>0</code>
828            * refers to the first result in the set. Setting both <code>start</code>
829            * and <code>end</code> to {@link
830            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
831            * result set.
832            * </p>
833            *
834            * @param companyId the primary key of the user group's company
835            * @param keywords the keywords (space separated), which may occur in the
836            user group's name or description (optionally <code>null</code>)
837            * @param params the finder params (optionally <code>null</code>). For more
838            information see {@link
839            com.liferay.portal.service.persistence.UserGroupFinder}
840            * @param start the lower bound of the range of user groups to return
841            * @param end the upper bound of the range of user groups to return (not
842            inclusive)
843            * @param obc the comparator to order the user groups (optionally
844            <code>null</code>)
845            * @return the matching user groups ordered by comparator <code>obc</code>
846            * @throws SystemException if a system exception occurred
847            * @see com.liferay.portal.service.persistence.UserGroupFinder
848            */
849            public java.util.List<com.liferay.portal.model.UserGroup> search(
850                    long companyId, java.lang.String keywords,
851                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
852                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
853                    throws com.liferay.portal.kernel.exception.SystemException {
854                    return _userGroupLocalService.search(companyId, keywords, params,
855                            start, end, obc);
856            }
857    
858            /**
859            * Returns an ordered range of all the user groups that match the keywords,
860            * using the indexer. It is preferable to use this method instead of the
861            * non-indexed version whenever possible for performance reasons.
862            *
863            * <p>
864            * Useful when paginating results. Returns a maximum of <code>end -
865            * start</code> instances. <code>start</code> and <code>end</code> are not
866            * primary keys, they are indexes in the result set. Thus, <code>0</code>
867            * refers to the first result in the set. Setting both <code>start</code>
868            * and <code>end</code> to {@link
869            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
870            * result set.
871            * </p>
872            *
873            * @param companyId the primary key of the user group's company
874            * @param keywords the keywords (space separated), which may occur in the
875            user group's name or description (optionally <code>null</code>)
876            * @param params the finder params (optionally <code>null</code>). For more
877            information see {@link
878            com.liferay.portlet.usergroupsadmin.util.UserGroupIndexer}
879            * @param start the lower bound of the range of user groups to return
880            * @param end the upper bound of the range of user groups to return (not
881            inclusive)
882            * @param sort the field and direction by which to sort (optionally
883            <code>null</code>)
884            * @return the matching user groups ordered by sort
885            * @throws SystemException if a system exception occurred
886            * @see com.liferay.portlet.usergroupsadmin.util.UserGroupIndexer
887            */
888            public com.liferay.portal.kernel.search.Hits search(long companyId,
889                    java.lang.String keywords,
890                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
891                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
892                    throws com.liferay.portal.kernel.exception.SystemException {
893                    return _userGroupLocalService.search(companyId, keywords, params,
894                            start, end, sort);
895            }
896    
897            /**
898            * Returns an ordered range of all the user groups that match the name and
899            * description. It is preferable to use this method instead of the
900            * non-indexed version whenever possible for performance reasons.
901            *
902            * <p>
903            * Useful when paginating results. Returns a maximum of <code>end -
904            * start</code> instances. <code>start</code> and <code>end</code> are not
905            * primary keys, they are indexes in the result set. Thus, <code>0</code>
906            * refers to the first result in the set. Setting both <code>start</code>
907            * and <code>end</code> to {@link
908            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
909            * result set.
910            * </p>
911            *
912            * @param companyId the primary key of the user group's company
913            * @param name the user group's name (optionally <code>null</code>)
914            * @param description the user group's description (optionally
915            <code>null</code>)
916            * @param params the finder params (optionally <code>null</code>). For more
917            information see {@link
918            com.liferay.portlet.usergroupsadmin.util.UserGroupIndexer}
919            * @param andSearch whether every field must match its keywords or just one
920            field
921            * @param start the lower bound of the range of user groups to return
922            * @param end the upper bound of the range of user groups to return (not
923            inclusive)
924            * @param sort the field and direction by which to sort (optionally
925            <code>null</code>)
926            * @return the matching user groups ordered by sort
927            * @throws SystemException if a system exception occurred
928            * @see com.liferay.portal.service.persistence.UserGroupFinder
929            */
930            public com.liferay.portal.kernel.search.Hits search(long companyId,
931                    java.lang.String name, java.lang.String description,
932                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
933                    boolean andSearch, int start, int end,
934                    com.liferay.portal.kernel.search.Sort sort)
935                    throws com.liferay.portal.kernel.exception.SystemException {
936                    return _userGroupLocalService.search(companyId, name, description,
937                            params, andSearch, start, end, sort);
938            }
939    
940            /**
941            * Returns the number of user groups that match the keywords
942            *
943            * @param companyId the primary key of the user group's company
944            * @param keywords the keywords (space separated), which may occur in the
945            user group's name or description (optionally <code>null</code>)
946            * @param params the finder params (optionally <code>null</code>). For more
947            information see {@link
948            com.liferay.portal.service.persistence.UserGroupFinder}
949            * @return the number of matching user groups
950            * @throws SystemException if a system exception occurred
951            * @see com.liferay.portal.service.persistence.UserGroupFinder
952            */
953            public int searchCount(long companyId, java.lang.String keywords,
954                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return _userGroupLocalService.searchCount(companyId, keywords, params);
957            }
958    
959            /**
960            * Removes the user groups from the group.
961            *
962            * @param groupId the primary key of the group
963            * @param userGroupIds the primary keys of the user groups
964            * @throws SystemException if a system exception occurred
965            */
966            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
967                    throws com.liferay.portal.kernel.exception.SystemException {
968                    _userGroupLocalService.unsetGroupUserGroups(groupId, userGroupIds);
969            }
970    
971            /**
972            * Removes the user groups from the team.
973            *
974            * @param teamId the primary key of the team
975            * @param userGroupIds the primary keys of the user groups
976            * @throws SystemException if a system exception occurred
977            */
978            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
979                    throws com.liferay.portal.kernel.exception.SystemException {
980                    _userGroupLocalService.unsetTeamUserGroups(teamId, userGroupIds);
981            }
982    
983            /**
984            * Updates the user group.
985            *
986            * @param companyId the primary key of the user group's company
987            * @param userGroupId the primary key of the user group
988            * @param name the user group's name
989            * @param description the user group's description
990            * @return the user group
991            * @throws PortalException if a user group with the primary key could
992            not be found or if the new information was invalid
993            * @throws SystemException if a system exception occurred
994            * @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long, long,
995            String, String, ServiceContext)}
996            */
997            public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
998                    long userGroupId, java.lang.String name, java.lang.String description)
999                    throws com.liferay.portal.kernel.exception.PortalException,
1000                            com.liferay.portal.kernel.exception.SystemException {
1001                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
1002                            name, description);
1003            }
1004    
1005            /**
1006            * Updates the user group.
1007            *
1008            * @param companyId the primary key of the user group's company
1009            * @param userGroupId the primary key of the user group
1010            * @param name the user group's name
1011            * @param description the user group's description
1012            * @param serviceContext the service context to be applied (optionally
1013            <code>null</code>). Can set expando bridge attributes for the
1014            user group.
1015            * @return the user group
1016            * @throws PortalException if a user group with the primary key could not be
1017            found or if the new information was invalid
1018            * @throws SystemException if a system exception occurred
1019            */
1020            public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
1021                    long userGroupId, java.lang.String name, java.lang.String description,
1022                    com.liferay.portal.service.ServiceContext serviceContext)
1023                    throws com.liferay.portal.kernel.exception.PortalException,
1024                            com.liferay.portal.kernel.exception.SystemException {
1025                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
1026                            name, description, serviceContext);
1027            }
1028    
1029            /**
1030             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1031             */
1032            public UserGroupLocalService getWrappedUserGroupLocalService() {
1033                    return _userGroupLocalService;
1034            }
1035    
1036            /**
1037             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1038             */
1039            public void setWrappedUserGroupLocalService(
1040                    UserGroupLocalService userGroupLocalService) {
1041                    _userGroupLocalService = userGroupLocalService;
1042            }
1043    
1044            public UserGroupLocalService getWrappedService() {
1045                    return _userGroupLocalService;
1046            }
1047    
1048            public void setWrappedService(UserGroupLocalService userGroupLocalService) {
1049                    _userGroupLocalService = userGroupLocalService;
1050            }
1051    
1052            private UserGroupLocalService _userGroupLocalService;
1053    }