1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="UserGroupGroupRoleLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link UserGroupGroupRoleLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       UserGroupGroupRoleLocalService
37   * @generated
38   */
39  public class UserGroupGroupRoleLocalServiceUtil {
40      public static com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
41          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addUserGroupGroupRole(userGroupGroupRole);
44      }
45  
46      public static com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
47          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
48          return getService().createUserGroupGroupRole(userGroupGroupRolePK);
49      }
50  
51      public static void deleteUserGroupGroupRole(
52          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
53          throws com.liferay.portal.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          getService().deleteUserGroupGroupRole(userGroupGroupRolePK);
56      }
57  
58      public static void deleteUserGroupGroupRole(
59          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
60          throws com.liferay.portal.kernel.exception.SystemException {
61          getService().deleteUserGroupGroupRole(userGroupGroupRole);
62      }
63  
64      @SuppressWarnings("unchecked")
65      public static java.util.List dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException {
68          return getService().dynamicQuery(dynamicQuery);
69      }
70  
71      @SuppressWarnings("unchecked")
72      public static java.util.List dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.kernel.exception.SystemException {
75          return getService().dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      @SuppressWarnings("unchecked")
79      public static java.util.List dynamicQuery(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
81          int end,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException {
84          return getService()
85                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
86      }
87  
88      public static long dynamicQueryCount(
89          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return getService().dynamicQueryCount(dynamicQuery);
92      }
93  
94      public static com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
95          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
96          throws com.liferay.portal.kernel.exception.PortalException,
97              com.liferay.portal.kernel.exception.SystemException {
98          return getService().getUserGroupGroupRole(userGroupGroupRolePK);
99      }
100 
101     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
102         int start, int end)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getService().getUserGroupGroupRoles(start, end);
105     }
106 
107     public static int getUserGroupGroupRolesCount()
108         throws com.liferay.portal.kernel.exception.SystemException {
109         return getService().getUserGroupGroupRolesCount();
110     }
111 
112     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
113         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().updateUserGroupGroupRole(userGroupGroupRole);
116     }
117 
118     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
119         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
120         boolean merge)
121         throws com.liferay.portal.kernel.exception.SystemException {
122         return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
123     }
124 
125     public static void addUserGroupGroupRoles(long userGroupId, long groupId,
126         long[] roleIds)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
130     }
131 
132     public static void addUserGroupGroupRoles(long[] userGroupIds,
133         long groupId, long roleId)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
137     }
138 
139     public static void deleteUserGroupGroupRoles(long userGroupId,
140         long groupId, long[] roleIds)
141         throws com.liferay.portal.kernel.exception.SystemException {
142         getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
143     }
144 
145     public static void deleteUserGroupGroupRoles(long userGroupId,
146         long[] groupIds)
147         throws com.liferay.portal.kernel.exception.SystemException {
148         getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
149     }
150 
151     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
152         long groupId)
153         throws com.liferay.portal.kernel.exception.SystemException {
154         getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
155     }
156 
157     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
158         long groupId, long roleId)
159         throws com.liferay.portal.kernel.exception.SystemException {
160         getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
161     }
162 
163     public static void deleteUserGroupGroupRolesByGroupId(long groupId)
164         throws com.liferay.portal.kernel.exception.SystemException {
165         getService().deleteUserGroupGroupRolesByGroupId(groupId);
166     }
167 
168     public static void deleteUserGroupGroupRolesByRoleId(long roleId)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         getService().deleteUserGroupGroupRolesByRoleId(roleId);
171     }
172 
173     public static void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
174         throws com.liferay.portal.kernel.exception.SystemException {
175         getService().deleteUserGroupGroupRolesByUserGroupId(userGroupId);
176     }
177 
178     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
179         long userGroupId)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getService().getUserGroupGroupRoles(userGroupId);
182     }
183 
184     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
185         long userGroupId, long groupId)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         return getService().getUserGroupGroupRoles(userGroupId, groupId);
188     }
189 
190     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
191         long groupId, long roleId)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
194     }
195 
196     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
197         long roleId) throws com.liferay.portal.kernel.exception.SystemException {
198         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
199     }
200 
201     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
202         java.lang.String roleName)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException {
205         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
206     }
207 
208     public static UserGroupGroupRoleLocalService getService() {
209         if (_service == null) {
210             _service = (UserGroupGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleLocalService.class.getName());
211         }
212 
213         return _service;
214     }
215 
216     public void setService(UserGroupGroupRoleLocalService service) {
217         _service = service;
218     }
219 
220     private static UserGroupGroupRoleLocalService _service;
221 }