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     * Provides a wrapper for {@link UserGroupLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see UserGroupLocalService
022     * @generated
023     */
024    public class UserGroupLocalServiceWrapper implements UserGroupLocalService,
025            ServiceWrapper<UserGroupLocalService> {
026            public UserGroupLocalServiceWrapper(
027                    UserGroupLocalService userGroupLocalService) {
028                    _userGroupLocalService = userGroupLocalService;
029            }
030    
031            /**
032            * Adds the user group to the database. Also notifies the appropriate model listeners.
033            *
034            * @param userGroup the user group
035            * @return the user group that was added
036            * @throws SystemException if a system exception occurred
037            */
038            @Override
039            public com.liferay.portal.model.UserGroup addUserGroup(
040                    com.liferay.portal.model.UserGroup userGroup)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _userGroupLocalService.addUserGroup(userGroup);
043            }
044    
045            /**
046            * Creates a new user group with the primary key. Does not add the user group to the database.
047            *
048            * @param userGroupId the primary key for the new user group
049            * @return the new user group
050            */
051            @Override
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            @Override
065            public com.liferay.portal.model.UserGroup deleteUserGroup(long userGroupId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return _userGroupLocalService.deleteUserGroup(userGroupId);
069            }
070    
071            /**
072            * Deletes the user group from the database. Also notifies the appropriate model listeners.
073            *
074            * @param userGroup the user group
075            * @return the user group that was removed
076            * @throws PortalException
077            * @throws SystemException if a system exception occurred
078            */
079            @Override
080            public com.liferay.portal.model.UserGroup deleteUserGroup(
081                    com.liferay.portal.model.UserGroup userGroup)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _userGroupLocalService.deleteUserGroup(userGroup);
085            }
086    
087            @Override
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _userGroupLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @Override
100            @SuppressWarnings("rawtypes")
101            public java.util.List dynamicQuery(
102                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _userGroupLocalService.dynamicQuery(dynamicQuery);
105            }
106    
107            /**
108            * Performs a dynamic query on the database and returns a range of the matching rows.
109            *
110            * <p>
111            * 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.
112            * </p>
113            *
114            * @param dynamicQuery the dynamic query
115            * @param start the lower bound of the range of model instances
116            * @param end the upper bound of the range of model instances (not inclusive)
117            * @return the range of matching rows
118            * @throws SystemException if a system exception occurred
119            */
120            @Override
121            @SuppressWarnings("rawtypes")
122            public java.util.List dynamicQuery(
123                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124                    int end) throws com.liferay.portal.kernel.exception.SystemException {
125                    return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end);
126            }
127    
128            /**
129            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
130            *
131            * <p>
132            * 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.
133            * </p>
134            *
135            * @param dynamicQuery the dynamic query
136            * @param start the lower bound of the range of model instances
137            * @param end the upper bound of the range of model instances (not inclusive)
138            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
139            * @return the ordered range of matching rows
140            * @throws SystemException if a system exception occurred
141            */
142            @Override
143            @SuppressWarnings("rawtypes")
144            public java.util.List dynamicQuery(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146                    int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end,
150                            orderByComparator);
151            }
152    
153            /**
154            * Returns the number of rows that match the dynamic query.
155            *
156            * @param dynamicQuery the dynamic query
157            * @return the number of rows that match the dynamic query
158            * @throws SystemException if a system exception occurred
159            */
160            @Override
161            public long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return _userGroupLocalService.dynamicQueryCount(dynamicQuery);
165            }
166    
167            /**
168            * Returns the number of rows that match the dynamic query.
169            *
170            * @param dynamicQuery the dynamic query
171            * @param projection the projection to apply to the query
172            * @return the number of rows that match the dynamic query
173            * @throws SystemException if a system exception occurred
174            */
175            @Override
176            public long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return _userGroupLocalService.dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            @Override
184            public com.liferay.portal.model.UserGroup fetchUserGroup(long userGroupId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return _userGroupLocalService.fetchUserGroup(userGroupId);
187            }
188    
189            /**
190            * Returns the user group with the matching UUID and company.
191            *
192            * @param uuid the user group's UUID
193            * @param companyId the primary key of the company
194            * @return the matching user group, or <code>null</code> if a matching user group could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            @Override
198            public com.liferay.portal.model.UserGroup fetchUserGroupByUuidAndCompanyId(
199                    java.lang.String uuid, long companyId)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _userGroupLocalService.fetchUserGroupByUuidAndCompanyId(uuid,
202                            companyId);
203            }
204    
205            /**
206            * Returns the user group with the primary key.
207            *
208            * @param userGroupId the primary key of the user group
209            * @return the user group
210            * @throws PortalException if a user group with the primary key could not be found
211            * @throws SystemException if a system exception occurred
212            */
213            @Override
214            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return _userGroupLocalService.getUserGroup(userGroupId);
218            }
219    
220            @Override
221            public com.liferay.portal.model.PersistedModel getPersistedModel(
222                    java.io.Serializable primaryKeyObj)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return _userGroupLocalService.getPersistedModel(primaryKeyObj);
226            }
227    
228            /**
229            * Returns the user group with the matching UUID and company.
230            *
231            * @param uuid the user group's UUID
232            * @param companyId the primary key of the company
233            * @return the matching user group
234            * @throws PortalException if a matching user group could not be found
235            * @throws SystemException if a system exception occurred
236            */
237            @Override
238            public com.liferay.portal.model.UserGroup getUserGroupByUuidAndCompanyId(
239                    java.lang.String uuid, long companyId)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return _userGroupLocalService.getUserGroupByUuidAndCompanyId(uuid,
243                            companyId);
244            }
245    
246            /**
247            * Returns a range of all the user groups.
248            *
249            * <p>
250            * 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.
251            * </p>
252            *
253            * @param start the lower bound of the range of user groups
254            * @param end the upper bound of the range of user groups (not inclusive)
255            * @return the range of user groups
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
260                    int start, int end)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _userGroupLocalService.getUserGroups(start, end);
263            }
264    
265            /**
266            * Returns the number of user groups.
267            *
268            * @return the number of user groups
269            * @throws SystemException if a system exception occurred
270            */
271            @Override
272            public int getUserGroupsCount()
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return _userGroupLocalService.getUserGroupsCount();
275            }
276    
277            /**
278            * Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
279            *
280            * @param userGroup the user group
281            * @return the user group that was updated
282            * @throws SystemException if a system exception occurred
283            */
284            @Override
285            public com.liferay.portal.model.UserGroup updateUserGroup(
286                    com.liferay.portal.model.UserGroup userGroup)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _userGroupLocalService.updateUserGroup(userGroup);
289            }
290    
291            /**
292            * @throws SystemException if a system exception occurred
293            */
294            @Override
295            public void addGroupUserGroup(long groupId, long userGroupId)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    _userGroupLocalService.addGroupUserGroup(groupId, userGroupId);
298            }
299    
300            /**
301            * @throws SystemException if a system exception occurred
302            */
303            @Override
304            public void addGroupUserGroup(long groupId,
305                    com.liferay.portal.model.UserGroup userGroup)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    _userGroupLocalService.addGroupUserGroup(groupId, userGroup);
308            }
309    
310            /**
311            * @throws SystemException if a system exception occurred
312            */
313            @Override
314            public void addGroupUserGroups(long groupId, long[] userGroupIds)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    _userGroupLocalService.addGroupUserGroups(groupId, userGroupIds);
317            }
318    
319            /**
320            * @throws SystemException if a system exception occurred
321            */
322            @Override
323            public void addGroupUserGroups(long groupId,
324                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    _userGroupLocalService.addGroupUserGroups(groupId, UserGroups);
327            }
328    
329            /**
330            * @throws SystemException if a system exception occurred
331            */
332            @Override
333            public void clearGroupUserGroups(long groupId)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    _userGroupLocalService.clearGroupUserGroups(groupId);
336            }
337    
338            /**
339            * @throws SystemException if a system exception occurred
340            */
341            @Override
342            public void deleteGroupUserGroup(long groupId, long userGroupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroupId);
345            }
346    
347            /**
348            * @throws SystemException if a system exception occurred
349            */
350            @Override
351            public void deleteGroupUserGroup(long groupId,
352                    com.liferay.portal.model.UserGroup userGroup)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    _userGroupLocalService.deleteGroupUserGroup(groupId, userGroup);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            @Override
361            public void deleteGroupUserGroups(long groupId, long[] userGroupIds)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    _userGroupLocalService.deleteGroupUserGroups(groupId, userGroupIds);
364            }
365    
366            /**
367            * @throws SystemException if a system exception occurred
368            */
369            @Override
370            public void deleteGroupUserGroups(long groupId,
371                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    _userGroupLocalService.deleteGroupUserGroups(groupId, UserGroups);
374            }
375    
376            /**
377            * @throws SystemException if a system exception occurred
378            */
379            @Override
380            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
381                    long groupId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _userGroupLocalService.getGroupUserGroups(groupId);
384            }
385    
386            /**
387            * @throws SystemException if a system exception occurred
388            */
389            @Override
390            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
391                    long groupId, int start, int end)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end);
394            }
395    
396            /**
397            * @throws SystemException if a system exception occurred
398            */
399            @Override
400            public java.util.List<com.liferay.portal.model.UserGroup> getGroupUserGroups(
401                    long groupId, int start, int end,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _userGroupLocalService.getGroupUserGroups(groupId, start, end,
405                            orderByComparator);
406            }
407    
408            /**
409            * @throws SystemException if a system exception occurred
410            */
411            @Override
412            public int getGroupUserGroupsCount(long groupId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _userGroupLocalService.getGroupUserGroupsCount(groupId);
415            }
416    
417            /**
418            * @throws SystemException if a system exception occurred
419            */
420            @Override
421            public boolean hasGroupUserGroup(long groupId, long userGroupId)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return _userGroupLocalService.hasGroupUserGroup(groupId, userGroupId);
424            }
425    
426            /**
427            * @throws SystemException if a system exception occurred
428            */
429            @Override
430            public boolean hasGroupUserGroups(long groupId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return _userGroupLocalService.hasGroupUserGroups(groupId);
433            }
434    
435            /**
436            * @throws SystemException if a system exception occurred
437            */
438            @Override
439            public void setGroupUserGroups(long groupId, long[] userGroupIds)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    _userGroupLocalService.setGroupUserGroups(groupId, userGroupIds);
442            }
443    
444            /**
445            * @throws SystemException if a system exception occurred
446            */
447            @Override
448            public void addTeamUserGroup(long teamId, long userGroupId)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    _userGroupLocalService.addTeamUserGroup(teamId, userGroupId);
451            }
452    
453            /**
454            * @throws SystemException if a system exception occurred
455            */
456            @Override
457            public void addTeamUserGroup(long teamId,
458                    com.liferay.portal.model.UserGroup userGroup)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    _userGroupLocalService.addTeamUserGroup(teamId, userGroup);
461            }
462    
463            /**
464            * @throws SystemException if a system exception occurred
465            */
466            @Override
467            public void addTeamUserGroups(long teamId, long[] userGroupIds)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    _userGroupLocalService.addTeamUserGroups(teamId, userGroupIds);
470            }
471    
472            /**
473            * @throws SystemException if a system exception occurred
474            */
475            @Override
476            public void addTeamUserGroups(long teamId,
477                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    _userGroupLocalService.addTeamUserGroups(teamId, UserGroups);
480            }
481    
482            /**
483            * @throws SystemException if a system exception occurred
484            */
485            @Override
486            public void clearTeamUserGroups(long teamId)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    _userGroupLocalService.clearTeamUserGroups(teamId);
489            }
490    
491            /**
492            * @throws SystemException if a system exception occurred
493            */
494            @Override
495            public void deleteTeamUserGroup(long teamId, long userGroupId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroupId);
498            }
499    
500            /**
501            * @throws SystemException if a system exception occurred
502            */
503            @Override
504            public void deleteTeamUserGroup(long teamId,
505                    com.liferay.portal.model.UserGroup userGroup)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    _userGroupLocalService.deleteTeamUserGroup(teamId, userGroup);
508            }
509    
510            /**
511            * @throws SystemException if a system exception occurred
512            */
513            @Override
514            public void deleteTeamUserGroups(long teamId, long[] userGroupIds)
515                    throws com.liferay.portal.kernel.exception.SystemException {
516                    _userGroupLocalService.deleteTeamUserGroups(teamId, userGroupIds);
517            }
518    
519            /**
520            * @throws SystemException if a system exception occurred
521            */
522            @Override
523            public void deleteTeamUserGroups(long teamId,
524                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    _userGroupLocalService.deleteTeamUserGroups(teamId, UserGroups);
527            }
528    
529            /**
530            * @throws SystemException if a system exception occurred
531            */
532            @Override
533            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
534                    long teamId) throws com.liferay.portal.kernel.exception.SystemException {
535                    return _userGroupLocalService.getTeamUserGroups(teamId);
536            }
537    
538            /**
539            * @throws SystemException if a system exception occurred
540            */
541            @Override
542            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
543                    long teamId, int start, int end)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end);
546            }
547    
548            /**
549            * @throws SystemException if a system exception occurred
550            */
551            @Override
552            public java.util.List<com.liferay.portal.model.UserGroup> getTeamUserGroups(
553                    long teamId, int start, int end,
554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555                    throws com.liferay.portal.kernel.exception.SystemException {
556                    return _userGroupLocalService.getTeamUserGroups(teamId, start, end,
557                            orderByComparator);
558            }
559    
560            /**
561            * @throws SystemException if a system exception occurred
562            */
563            @Override
564            public int getTeamUserGroupsCount(long teamId)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return _userGroupLocalService.getTeamUserGroupsCount(teamId);
567            }
568    
569            /**
570            * @throws SystemException if a system exception occurred
571            */
572            @Override
573            public boolean hasTeamUserGroup(long teamId, long userGroupId)
574                    throws com.liferay.portal.kernel.exception.SystemException {
575                    return _userGroupLocalService.hasTeamUserGroup(teamId, userGroupId);
576            }
577    
578            /**
579            * @throws SystemException if a system exception occurred
580            */
581            @Override
582            public boolean hasTeamUserGroups(long teamId)
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    return _userGroupLocalService.hasTeamUserGroups(teamId);
585            }
586    
587            /**
588            * @throws SystemException if a system exception occurred
589            */
590            @Override
591            public void setTeamUserGroups(long teamId, long[] userGroupIds)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    _userGroupLocalService.setTeamUserGroups(teamId, userGroupIds);
594            }
595    
596            /**
597            * @throws SystemException if a system exception occurred
598            */
599            @Override
600            public void addUserUserGroup(long userId, long userGroupId)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    _userGroupLocalService.addUserUserGroup(userId, userGroupId);
603            }
604    
605            /**
606            * @throws SystemException if a system exception occurred
607            */
608            @Override
609            public void addUserUserGroup(long userId,
610                    com.liferay.portal.model.UserGroup userGroup)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    _userGroupLocalService.addUserUserGroup(userId, userGroup);
613            }
614    
615            /**
616            * @throws SystemException if a system exception occurred
617            */
618            @Override
619            public void addUserUserGroups(long userId, long[] userGroupIds)
620                    throws com.liferay.portal.kernel.exception.SystemException {
621                    _userGroupLocalService.addUserUserGroups(userId, userGroupIds);
622            }
623    
624            /**
625            * @throws SystemException if a system exception occurred
626            */
627            @Override
628            public void addUserUserGroups(long userId,
629                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    _userGroupLocalService.addUserUserGroups(userId, UserGroups);
632            }
633    
634            /**
635            * @throws SystemException if a system exception occurred
636            */
637            @Override
638            public void clearUserUserGroups(long userId)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    _userGroupLocalService.clearUserUserGroups(userId);
641            }
642    
643            /**
644            * @throws SystemException if a system exception occurred
645            */
646            @Override
647            public void deleteUserUserGroup(long userId, long userGroupId)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    _userGroupLocalService.deleteUserUserGroup(userId, userGroupId);
650            }
651    
652            /**
653            * @throws SystemException if a system exception occurred
654            */
655            @Override
656            public void deleteUserUserGroup(long userId,
657                    com.liferay.portal.model.UserGroup userGroup)
658                    throws com.liferay.portal.kernel.exception.SystemException {
659                    _userGroupLocalService.deleteUserUserGroup(userId, userGroup);
660            }
661    
662            /**
663            * @throws SystemException if a system exception occurred
664            */
665            @Override
666            public void deleteUserUserGroups(long userId, long[] userGroupIds)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    _userGroupLocalService.deleteUserUserGroups(userId, userGroupIds);
669            }
670    
671            /**
672            * @throws SystemException if a system exception occurred
673            */
674            @Override
675            public void deleteUserUserGroups(long userId,
676                    java.util.List<com.liferay.portal.model.UserGroup> UserGroups)
677                    throws com.liferay.portal.kernel.exception.SystemException {
678                    _userGroupLocalService.deleteUserUserGroups(userId, UserGroups);
679            }
680    
681            /**
682            * @throws SystemException if a system exception occurred
683            */
684            @Override
685            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
686                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
687                    return _userGroupLocalService.getUserUserGroups(userId);
688            }
689    
690            /**
691            * @throws SystemException if a system exception occurred
692            */
693            @Override
694            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
695                    long userId, int start, int end)
696                    throws com.liferay.portal.kernel.exception.SystemException {
697                    return _userGroupLocalService.getUserUserGroups(userId, start, end);
698            }
699    
700            /**
701            * @throws SystemException if a system exception occurred
702            */
703            @Override
704            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
705                    long userId, int start, int end,
706                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return _userGroupLocalService.getUserUserGroups(userId, start, end,
709                            orderByComparator);
710            }
711    
712            /**
713            * @throws SystemException if a system exception occurred
714            */
715            @Override
716            public int getUserUserGroupsCount(long userId)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return _userGroupLocalService.getUserUserGroupsCount(userId);
719            }
720    
721            /**
722            * @throws SystemException if a system exception occurred
723            */
724            @Override
725            public boolean hasUserUserGroup(long userId, long userGroupId)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return _userGroupLocalService.hasUserUserGroup(userId, userGroupId);
728            }
729    
730            /**
731            * @throws SystemException if a system exception occurred
732            */
733            @Override
734            public boolean hasUserUserGroups(long userId)
735                    throws com.liferay.portal.kernel.exception.SystemException {
736                    return _userGroupLocalService.hasUserUserGroups(userId);
737            }
738    
739            /**
740            * @throws PortalException
741            * @throws SystemException if a system exception occurred
742            */
743            @Override
744            public void setUserUserGroups(long userId, long[] userGroupIds)
745                    throws com.liferay.portal.kernel.exception.PortalException,
746                            com.liferay.portal.kernel.exception.SystemException {
747                    _userGroupLocalService.setUserUserGroups(userId, userGroupIds);
748            }
749    
750            /**
751            * Returns the Spring bean ID for this bean.
752            *
753            * @return the Spring bean ID for this bean
754            */
755            @Override
756            public java.lang.String getBeanIdentifier() {
757                    return _userGroupLocalService.getBeanIdentifier();
758            }
759    
760            /**
761            * Sets the Spring bean ID for this bean.
762            *
763            * @param beanIdentifier the Spring bean ID for this bean
764            */
765            @Override
766            public void setBeanIdentifier(java.lang.String beanIdentifier) {
767                    _userGroupLocalService.setBeanIdentifier(beanIdentifier);
768            }
769    
770            /**
771            * Adds a user group.
772            *
773            * <p>
774            * This method handles the creation and bookkeeping of the user group,
775            * including its resources, metadata, and internal data structures. It is
776            * not necessary to make subsequent calls to setup default groups and
777            * resources for the user group.
778            * </p>
779            *
780            * @param userId the primary key of the user
781            * @param companyId the primary key of the user group's company
782            * @param name the user group's name
783            * @param description the user group's description
784            * @return the user group
785            * @throws PortalException if the user group's information was invalid
786            * @throws SystemException if a system exception occurred
787            * @deprecated As of 6.2.0, replaced by {@link #addUserGroup(long, long,
788            String, String, ServiceContext)}
789            */
790            @Override
791            public com.liferay.portal.model.UserGroup addUserGroup(long userId,
792                    long companyId, java.lang.String name, java.lang.String description)
793                    throws com.liferay.portal.kernel.exception.PortalException,
794                            com.liferay.portal.kernel.exception.SystemException {
795                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
796                            description);
797            }
798    
799            /**
800            * Adds a user group.
801            *
802            * <p>
803            * This method handles the creation and bookkeeping of the user group,
804            * including its resources, metadata, and internal data structures. It is
805            * not necessary to make subsequent calls to setup default groups and
806            * resources for the user group.
807            * </p>
808            *
809            * @param userId the primary key of the user
810            * @param companyId the primary key of the user group's company
811            * @param name the user group's name
812            * @param description the user group's description
813            * @param serviceContext the service context to be applied (optionally
814            <code>null</code>). Can set expando bridge attributes for the
815            user group.
816            * @return the user group
817            * @throws PortalException if the user group's information was invalid
818            * @throws SystemException if a system exception occurred
819            */
820            @Override
821            public com.liferay.portal.model.UserGroup addUserGroup(long userId,
822                    long companyId, java.lang.String name, java.lang.String description,
823                    com.liferay.portal.service.ServiceContext serviceContext)
824                    throws com.liferay.portal.kernel.exception.PortalException,
825                            com.liferay.portal.kernel.exception.SystemException {
826                    return _userGroupLocalService.addUserGroup(userId, companyId, name,
827                            description, serviceContext);
828            }
829    
830            /**
831            * Copies the user group's layout to the user.
832            *
833            * @param userGroupId the primary key of the user group
834            * @param userId the primary key of the user
835            * @throws PortalException if a user with the primary key could not be
836            found or if a portal exception occurred
837            * @throws SystemException if a system exception occurred
838            * @deprecated As of 6.2.0
839            */
840            @Override
841            public void copyUserGroupLayouts(long userGroupId, long userId)
842                    throws com.liferay.portal.kernel.exception.PortalException,
843                            com.liferay.portal.kernel.exception.SystemException {
844                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userId);
845            }
846    
847            /**
848            * Copies the user group's layouts to the users who are not already members
849            * of the user group.
850            *
851            * @param userGroupId the primary key of the user group
852            * @param userIds the primary keys of the users
853            * @throws PortalException if any one of the users could not be found or
854            if a portal exception occurred
855            * @throws SystemException if a system exception occurred
856            * @deprecated As of 6.1.0
857            */
858            @Override
859            public void copyUserGroupLayouts(long userGroupId, long[] userIds)
860                    throws com.liferay.portal.kernel.exception.PortalException,
861                            com.liferay.portal.kernel.exception.SystemException {
862                    _userGroupLocalService.copyUserGroupLayouts(userGroupId, userIds);
863            }
864    
865            /**
866            * Copies the user groups' layouts to the user.
867            *
868            * @param userGroupIds the primary keys of the user groups
869            * @param userId the primary key of the user
870            * @throws PortalException if a user with the primary key could not be
871            found or if a portal exception occurred
872            * @throws SystemException if a system exception occurred
873            * @deprecated As of 6.1.0
874            */
875            @Override
876            public void copyUserGroupLayouts(long[] userGroupIds, long userId)
877                    throws com.liferay.portal.kernel.exception.PortalException,
878                            com.liferay.portal.kernel.exception.SystemException {
879                    _userGroupLocalService.copyUserGroupLayouts(userGroupIds, userId);
880            }
881    
882            @Override
883            public void deleteUserGroups(long companyId)
884                    throws com.liferay.portal.kernel.exception.PortalException,
885                            com.liferay.portal.kernel.exception.SystemException {
886                    _userGroupLocalService.deleteUserGroups(companyId);
887            }
888    
889            @Override
890            public com.liferay.portal.model.UserGroup fetchUserGroup(long companyId,
891                    java.lang.String name)
892                    throws com.liferay.portal.kernel.exception.SystemException {
893                    return _userGroupLocalService.fetchUserGroup(companyId, name);
894            }
895    
896            /**
897            * Returns the user group with the name.
898            *
899            * @param companyId the primary key of the user group's company
900            * @param name the user group's name
901            * @return Returns the user group with the name
902            * @throws PortalException if a user group with the name could not be found
903            * @throws SystemException if a system exception occurred
904            */
905            @Override
906            public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
907                    java.lang.String name)
908                    throws com.liferay.portal.kernel.exception.PortalException,
909                            com.liferay.portal.kernel.exception.SystemException {
910                    return _userGroupLocalService.getUserGroup(companyId, name);
911            }
912    
913            /**
914            * Returns all the user groups belonging to the company.
915            *
916            * @param companyId the primary key of the user groups' company
917            * @return the user groups belonging to the company
918            * @throws SystemException if a system exception occurred
919            */
920            @Override
921            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
922                    long companyId)
923                    throws com.liferay.portal.kernel.exception.SystemException {
924                    return _userGroupLocalService.getUserGroups(companyId);
925            }
926    
927            /**
928            * Returns all the user groups with the primary keys.
929            *
930            * @param userGroupIds the primary keys of the user groups
931            * @return the user groups with the primary keys
932            * @throws PortalException if any one of the user groups could not be found
933            * @throws SystemException if a system exception occurred
934            */
935            @Override
936            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
937                    long[] userGroupIds)
938                    throws com.liferay.portal.kernel.exception.PortalException,
939                            com.liferay.portal.kernel.exception.SystemException {
940                    return _userGroupLocalService.getUserGroups(userGroupIds);
941            }
942    
943            /**
944            * Returns an ordered range of all the user groups that match the keywords.
945            *
946            * <p>
947            * Useful when paginating results. Returns a maximum of <code>end -
948            * start</code> instances. <code>start</code> and <code>end</code> are not
949            * primary keys, they are indexes in the result set. Thus, <code>0</code>
950            * refers to the first result in the set. Setting both <code>start</code>
951            * and <code>end</code> to {@link
952            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
953            * result set.
954            * </p>
955            *
956            * @param companyId the primary key of the user group's company
957            * @param keywords the keywords (space separated), which may occur in the
958            user group's name or description (optionally <code>null</code>)
959            * @param params the finder params (optionally <code>null</code>). For more
960            information see {@link
961            com.liferay.portal.service.persistence.UserGroupFinder}
962            * @param start the lower bound of the range of user groups to return
963            * @param end the upper bound of the range of user groups to return (not
964            inclusive)
965            * @param obc the comparator to order the user groups (optionally
966            <code>null</code>)
967            * @return the matching user groups ordered by comparator <code>obc</code>
968            * @throws SystemException if a system exception occurred
969            * @see com.liferay.portal.service.persistence.UserGroupFinder
970            */
971            @Override
972            public java.util.List<com.liferay.portal.model.UserGroup> search(
973                    long companyId, java.lang.String keywords,
974                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
975                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
976                    throws com.liferay.portal.kernel.exception.SystemException {
977                    return _userGroupLocalService.search(companyId, keywords, params,
978                            start, end, obc);
979            }
980    
981            /**
982            * Returns an ordered range of all the user groups that match the keywords,
983            * using the indexer. It is preferable to use this method instead of the
984            * non-indexed version whenever possible for performance reasons.
985            *
986            * <p>
987            * Useful when paginating results. Returns a maximum of <code>end -
988            * start</code> instances. <code>start</code> and <code>end</code> are not
989            * primary keys, they are indexes in the result set. Thus, <code>0</code>
990            * refers to the first result in the set. Setting both <code>start</code>
991            * and <code>end</code> to {@link
992            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
993            * result set.
994            * </p>
995            *
996            * @param companyId the primary key of the user group's company
997            * @param keywords the keywords (space separated), which may occur in the
998            user group's name or description (optionally <code>null</code>)
999            * @param params the finder params (optionally <code>null</code>). For more
1000            information see {@link
1001            com.liferay.portlet.usergroupsadmin.util.UserGroupIndexer}
1002            * @param start the lower bound of the range of user groups to return
1003            * @param end the upper bound of the range of user groups to return (not
1004            inclusive)
1005            * @param sort the field and direction by which to sort (optionally
1006            <code>null</code>)
1007            * @return the matching user groups ordered by sort
1008            * @throws SystemException if a system exception occurred
1009            * @see com.liferay.portlet.usergroupsadmin.util.UserGroupIndexer
1010            */
1011            @Override
1012            public com.liferay.portal.kernel.search.Hits search(long companyId,
1013                    java.lang.String keywords,
1014                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1015                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
1016                    throws com.liferay.portal.kernel.exception.SystemException {
1017                    return _userGroupLocalService.search(companyId, keywords, params,
1018                            start, end, sort);
1019            }
1020    
1021            /**
1022            * Returns an ordered range of all the user groups that match the name and
1023            * description. It is preferable to use this method instead of the
1024            * non-indexed version whenever possible for performance reasons.
1025            *
1026            * <p>
1027            * Useful when paginating results. Returns a maximum of <code>end -
1028            * start</code> instances. <code>start</code> and <code>end</code> are not
1029            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1030            * refers to the first result in the set. Setting both <code>start</code>
1031            * and <code>end</code> to {@link
1032            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1033            * result set.
1034            * </p>
1035            *
1036            * @param companyId the primary key of the user group's company
1037            * @param name the user group's name (optionally <code>null</code>)
1038            * @param description the user group's description (optionally
1039            <code>null</code>)
1040            * @param params the finder params (optionally <code>null</code>). For more
1041            information see {@link
1042            com.liferay.portlet.usergroupsadmin.util.UserGroupIndexer}
1043            * @param andSearch whether every field must match its keywords or just one
1044            field
1045            * @param start the lower bound of the range of user groups to return
1046            * @param end the upper bound of the range of user groups to return (not
1047            inclusive)
1048            * @param sort the field and direction by which to sort (optionally
1049            <code>null</code>)
1050            * @return the matching user groups ordered by sort
1051            * @throws SystemException if a system exception occurred
1052            * @see com.liferay.portal.service.persistence.UserGroupFinder
1053            */
1054            @Override
1055            public com.liferay.portal.kernel.search.Hits search(long companyId,
1056                    java.lang.String name, java.lang.String description,
1057                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1058                    boolean andSearch, int start, int end,
1059                    com.liferay.portal.kernel.search.Sort sort)
1060                    throws com.liferay.portal.kernel.exception.SystemException {
1061                    return _userGroupLocalService.search(companyId, name, description,
1062                            params, andSearch, start, end, sort);
1063            }
1064    
1065            /**
1066            * Returns the number of user groups that match the keywords
1067            *
1068            * @param companyId the primary key of the user group's company
1069            * @param keywords the keywords (space separated), which may occur in the
1070            user group's name or description (optionally <code>null</code>)
1071            * @param params the finder params (optionally <code>null</code>). For more
1072            information see {@link
1073            com.liferay.portal.service.persistence.UserGroupFinder}
1074            * @return the number of matching user groups
1075            * @throws SystemException if a system exception occurred
1076            * @see com.liferay.portal.service.persistence.UserGroupFinder
1077            */
1078            @Override
1079            public int searchCount(long companyId, java.lang.String keywords,
1080                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1081                    throws com.liferay.portal.kernel.exception.SystemException {
1082                    return _userGroupLocalService.searchCount(companyId, keywords, params);
1083            }
1084    
1085            /**
1086            * Removes the user groups from the group.
1087            *
1088            * @param groupId the primary key of the group
1089            * @param userGroupIds the primary keys of the user groups
1090            * @throws SystemException if a system exception occurred
1091            */
1092            @Override
1093            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
1094                    throws com.liferay.portal.kernel.exception.SystemException {
1095                    _userGroupLocalService.unsetGroupUserGroups(groupId, userGroupIds);
1096            }
1097    
1098            /**
1099            * Removes the user groups from the team.
1100            *
1101            * @param teamId the primary key of the team
1102            * @param userGroupIds the primary keys of the user groups
1103            * @throws SystemException if a system exception occurred
1104            */
1105            @Override
1106            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
1107                    throws com.liferay.portal.kernel.exception.SystemException {
1108                    _userGroupLocalService.unsetTeamUserGroups(teamId, userGroupIds);
1109            }
1110    
1111            /**
1112            * Updates the user group.
1113            *
1114            * @param companyId the primary key of the user group's company
1115            * @param userGroupId the primary key of the user group
1116            * @param name the user group's name
1117            * @param description the user group's description
1118            * @return the user group
1119            * @throws PortalException if a user group with the primary key could
1120            not be found or if the new information was invalid
1121            * @throws SystemException if a system exception occurred
1122            * @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long, long,
1123            String, String, ServiceContext)}
1124            */
1125            @Override
1126            public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
1127                    long userGroupId, java.lang.String name, java.lang.String description)
1128                    throws com.liferay.portal.kernel.exception.PortalException,
1129                            com.liferay.portal.kernel.exception.SystemException {
1130                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
1131                            name, description);
1132            }
1133    
1134            /**
1135            * Updates the user group.
1136            *
1137            * @param companyId the primary key of the user group's company
1138            * @param userGroupId the primary key of the user group
1139            * @param name the user group's name
1140            * @param description the user group's description
1141            * @param serviceContext the service context to be applied (optionally
1142            <code>null</code>). Can set expando bridge attributes for the
1143            user group.
1144            * @return the user group
1145            * @throws PortalException if a user group with the primary key could not be
1146            found or if the new information was invalid
1147            * @throws SystemException if a system exception occurred
1148            */
1149            @Override
1150            public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
1151                    long userGroupId, java.lang.String name, java.lang.String description,
1152                    com.liferay.portal.service.ServiceContext serviceContext)
1153                    throws com.liferay.portal.kernel.exception.PortalException,
1154                            com.liferay.portal.kernel.exception.SystemException {
1155                    return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
1156                            name, description, serviceContext);
1157            }
1158    
1159            /**
1160             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1161             */
1162            public UserGroupLocalService getWrappedUserGroupLocalService() {
1163                    return _userGroupLocalService;
1164            }
1165    
1166            /**
1167             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1168             */
1169            public void setWrappedUserGroupLocalService(
1170                    UserGroupLocalService userGroupLocalService) {
1171                    _userGroupLocalService = userGroupLocalService;
1172            }
1173    
1174            @Override
1175            public UserGroupLocalService getWrappedService() {
1176                    return _userGroupLocalService;
1177            }
1178    
1179            @Override
1180            public void setWrappedService(UserGroupLocalService userGroupLocalService) {
1181                    _userGroupLocalService = userGroupLocalService;
1182            }
1183    
1184            private UserGroupLocalService _userGroupLocalService;
1185    }