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  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="UserGroupGroupRoleLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link UserGroupGroupRoleLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       UserGroupGroupRoleLocalService
45   * @generated
46   */
47  public class UserGroupGroupRoleLocalServiceUtil {
48      public static com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
49          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
50          throws com.liferay.portal.SystemException {
51          return getService().addUserGroupGroupRole(userGroupGroupRole);
52      }
53  
54      public static com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
55          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
56          return getService().createUserGroupGroupRole(userGroupGroupRolePK);
57      }
58  
59      public static void deleteUserGroupGroupRole(
60          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          getService().deleteUserGroupGroupRole(userGroupGroupRolePK);
64      }
65  
66      public static void deleteUserGroupGroupRole(
67          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
68          throws com.liferay.portal.SystemException {
69          getService().deleteUserGroupGroupRole(userGroupGroupRole);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException {
75          return getService().dynamicQuery(dynamicQuery);
76      }
77  
78      public static java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end) throws com.liferay.portal.SystemException {
81          return getService().dynamicQuery(dynamicQuery, start, end);
82      }
83  
84      public static com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
85          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return getService().getUserGroupGroupRole(userGroupGroupRolePK);
89      }
90  
91      public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
92          int start, int end) throws com.liferay.portal.SystemException {
93          return getService().getUserGroupGroupRoles(start, end);
94      }
95  
96      public static int getUserGroupGroupRolesCount()
97          throws com.liferay.portal.SystemException {
98          return getService().getUserGroupGroupRolesCount();
99      }
100 
101     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
102         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
103         throws com.liferay.portal.SystemException {
104         return getService().updateUserGroupGroupRole(userGroupGroupRole);
105     }
106 
107     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
108         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
109         boolean merge) throws com.liferay.portal.SystemException {
110         return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
111     }
112 
113     public static void addUserGroupGroupRoles(long userGroupId, long groupId,
114         long[] roleIds)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
118     }
119 
120     public static void addUserGroupGroupRoles(long[] userGroupIds,
121         long groupId, long roleId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
125     }
126 
127     public static void deleteUserGroupGroupRoles(long userGroupId,
128         long groupId, long[] roleIds) throws com.liferay.portal.SystemException {
129         getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
130     }
131 
132     public static void deleteUserGroupGroupRoles(long userGroupId,
133         long[] groupIds) throws com.liferay.portal.SystemException {
134         getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
135     }
136 
137     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
138         long groupId) throws com.liferay.portal.SystemException {
139         getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
140     }
141 
142     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
143         long groupId, long roleId) throws com.liferay.portal.SystemException {
144         getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
145     }
146 
147     public static void deleteUserGroupGroupRolesByGroupId(long groupId)
148         throws com.liferay.portal.SystemException {
149         getService().deleteUserGroupGroupRolesByGroupId(groupId);
150     }
151 
152     public static void deleteUserGroupGroupRolesByRoleId(long roleId)
153         throws com.liferay.portal.SystemException {
154         getService().deleteUserGroupGroupRolesByRoleId(roleId);
155     }
156 
157     public static void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
158         throws com.liferay.portal.SystemException {
159         getService().deleteUserGroupGroupRolesByUserGroupId(userGroupId);
160     }
161 
162     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
163         long userGroupId) throws com.liferay.portal.SystemException {
164         return getService().getUserGroupGroupRoles(userGroupId);
165     }
166 
167     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
168         long userGroupId, long groupId)
169         throws com.liferay.portal.SystemException {
170         return getService().getUserGroupGroupRoles(userGroupId, groupId);
171     }
172 
173     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
174         long groupId, long roleId) throws com.liferay.portal.SystemException {
175         return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
176     }
177 
178     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
179         long roleId) throws com.liferay.portal.SystemException {
180         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
181     }
182 
183     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
184         java.lang.String roleName)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException {
187         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
188     }
189 
190     public static UserGroupGroupRoleLocalService getService() {
191         if (_service == null) {
192             _service = (UserGroupGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleLocalService.class.getName());
193         }
194 
195         return _service;
196     }
197 
198     public void setService(UserGroupGroupRoleLocalService service) {
199         _service = service;
200     }
201 
202     private static UserGroupGroupRoleLocalService _service;
203 }