1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="UserGroupGroupRoleLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * {@link UserGroupGroupRoleLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       UserGroupGroupRoleLocalService
44   * @generated
45   */
46  public class UserGroupGroupRoleLocalServiceUtil {
47      public static com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
48          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
49          throws com.liferay.portal.SystemException {
50          return getService().addUserGroupGroupRole(userGroupGroupRole);
51      }
52  
53      public static com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
54          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
55          return getService().createUserGroupGroupRole(userGroupGroupRolePK);
56      }
57  
58      public static void deleteUserGroupGroupRole(
59          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteUserGroupGroupRole(userGroupGroupRolePK);
63      }
64  
65      public static void deleteUserGroupGroupRole(
66          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
67          throws com.liferay.portal.SystemException {
68          getService().deleteUserGroupGroupRole(userGroupGroupRole);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
84          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getUserGroupGroupRole(userGroupGroupRolePK);
88      }
89  
90      public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getUserGroupGroupRoles(start, end);
93      }
94  
95      public static int getUserGroupGroupRolesCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getUserGroupGroupRolesCount();
98      }
99  
100     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
101         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
102         throws com.liferay.portal.SystemException {
103         return getService().updateUserGroupGroupRole(userGroupGroupRole);
104     }
105 
106     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
107         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
108         boolean merge) throws com.liferay.portal.SystemException {
109         return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
110     }
111 
112     public static void addUserGroupGroupRoles(long userGroupId, long groupId,
113         long[] roleIds)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
117     }
118 
119     public static void addUserGroupGroupRoles(long[] userGroupIds,
120         long groupId, long roleId)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
124     }
125 
126     public static void deleteUserGroupGroupRoles(long userGroupId,
127         long groupId, long[] roleIds) throws com.liferay.portal.SystemException {
128         getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
129     }
130 
131     public static void deleteUserGroupGroupRoles(long userGroupId,
132         long[] groupIds) throws com.liferay.portal.SystemException {
133         getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
134     }
135 
136     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
137         long groupId) throws com.liferay.portal.SystemException {
138         getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
139     }
140 
141     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
142         long groupId, long roleId) throws com.liferay.portal.SystemException {
143         getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
144     }
145 
146     public static void deleteUserGroupGroupRolesByGroupId(long groupId)
147         throws com.liferay.portal.SystemException {
148         getService().deleteUserGroupGroupRolesByGroupId(groupId);
149     }
150 
151     public static void deleteUserGroupGroupRolesByRoleId(long roleId)
152         throws com.liferay.portal.SystemException {
153         getService().deleteUserGroupGroupRolesByRoleId(roleId);
154     }
155 
156     public static void deleteUserGroupGroupRolesByuserGroupId(long userGroupId)
157         throws com.liferay.portal.SystemException {
158         getService().deleteUserGroupGroupRolesByuserGroupId(userGroupId);
159     }
160 
161     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
162         long userGroupId) throws com.liferay.portal.SystemException {
163         return getService().getUserGroupGroupRoles(userGroupId);
164     }
165 
166     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
167         long userGroupId, long groupId)
168         throws com.liferay.portal.SystemException {
169         return getService().getUserGroupGroupRoles(userGroupId, groupId);
170     }
171 
172     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
173         long groupId, long roleId) throws com.liferay.portal.SystemException {
174         return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
175     }
176 
177     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
178         long roleId) throws com.liferay.portal.SystemException {
179         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
180     }
181 
182     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
183         java.lang.String roleName)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
187     }
188 
189     public static UserGroupGroupRoleLocalService getService() {
190         if (_service == null) {
191             throw new RuntimeException(
192                 "UserGroupGroupRoleLocalService is not set");
193         }
194 
195         return _service;
196     }
197 
198     public void setService(UserGroupGroupRoleLocalService service) {
199         _service = service;
200     }
201 
202     private static UserGroupGroupRoleLocalService _service;
203 }