1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  /**
18   * <a href="UserGroupServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link UserGroupService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       UserGroupService
31   * @generated
32   */
33  public class UserGroupServiceWrapper implements UserGroupService {
34      public UserGroupServiceWrapper(UserGroupService userGroupService) {
35          _userGroupService = userGroupService;
36      }
37  
38      public void addGroupUserGroups(long groupId, long[] userGroupIds)
39          throws com.liferay.portal.PortalException,
40              com.liferay.portal.SystemException {
41          _userGroupService.addGroupUserGroups(groupId, userGroupIds);
42      }
43  
44      public com.liferay.portal.model.UserGroup addUserGroup(
45          java.lang.String name, java.lang.String description)
46          throws com.liferay.portal.PortalException,
47              com.liferay.portal.SystemException {
48          return _userGroupService.addUserGroup(name, description);
49      }
50  
51      public void deleteUserGroup(long userGroupId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _userGroupService.deleteUserGroup(userGroupId);
55      }
56  
57      public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException {
60          return _userGroupService.getUserGroup(userGroupId);
61      }
62  
63      public com.liferay.portal.model.UserGroup getUserGroup(
64          java.lang.String name)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException {
67          return _userGroupService.getUserGroup(name);
68      }
69  
70      public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
71          long userId) throws com.liferay.portal.SystemException {
72          return _userGroupService.getUserUserGroups(userId);
73      }
74  
75      public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException {
78          _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
79      }
80  
81      public com.liferay.portal.model.UserGroup updateUserGroup(
82          long userGroupId, java.lang.String name, java.lang.String description)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException {
85          return _userGroupService.updateUserGroup(userGroupId, name, description);
86      }
87  
88      public UserGroupService getWrappedUserGroupService() {
89          return _userGroupService;
90      }
91  
92      private UserGroupService _userGroupService;
93  }