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.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.PortalException,
54              com.liferay.portal.SystemException {
55          getService().deleteUserGroupGroupRole(userGroupGroupRolePK);
56      }
57  
58      public static void deleteUserGroupGroupRole(
59          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
60          throws com.liferay.portal.SystemException {
61          getService().deleteUserGroupGroupRole(userGroupGroupRole);
62      }
63  
64      public static java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      public static java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return getService().dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      public static java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException {
81          return getService()
82                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
83      }
84  
85      public static int dynamicQueryCount(
86          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87          throws com.liferay.portal.SystemException {
88          return getService().dynamicQueryCount(dynamicQuery);
89      }
90  
91      public static com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
92          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException {
95          return getService().getUserGroupGroupRole(userGroupGroupRolePK);
96      }
97  
98      public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
99          int start, int end) throws com.liferay.portal.SystemException {
100         return getService().getUserGroupGroupRoles(start, end);
101     }
102 
103     public static int getUserGroupGroupRolesCount()
104         throws com.liferay.portal.SystemException {
105         return getService().getUserGroupGroupRolesCount();
106     }
107 
108     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
109         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
110         throws com.liferay.portal.SystemException {
111         return getService().updateUserGroupGroupRole(userGroupGroupRole);
112     }
113 
114     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
115         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
116         boolean merge) throws com.liferay.portal.SystemException {
117         return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
118     }
119 
120     public static void addUserGroupGroupRoles(long userGroupId, long groupId,
121         long[] roleIds)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
125     }
126 
127     public static void addUserGroupGroupRoles(long[] userGroupIds,
128         long groupId, long roleId)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
132     }
133 
134     public static void deleteUserGroupGroupRoles(long userGroupId,
135         long groupId, long[] roleIds) throws com.liferay.portal.SystemException {
136         getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
137     }
138 
139     public static void deleteUserGroupGroupRoles(long userGroupId,
140         long[] groupIds) throws com.liferay.portal.SystemException {
141         getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
142     }
143 
144     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
145         long groupId) throws com.liferay.portal.SystemException {
146         getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
147     }
148 
149     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
150         long groupId, long roleId) throws com.liferay.portal.SystemException {
151         getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
152     }
153 
154     public static void deleteUserGroupGroupRolesByGroupId(long groupId)
155         throws com.liferay.portal.SystemException {
156         getService().deleteUserGroupGroupRolesByGroupId(groupId);
157     }
158 
159     public static void deleteUserGroupGroupRolesByRoleId(long roleId)
160         throws com.liferay.portal.SystemException {
161         getService().deleteUserGroupGroupRolesByRoleId(roleId);
162     }
163 
164     public static void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
165         throws com.liferay.portal.SystemException {
166         getService().deleteUserGroupGroupRolesByUserGroupId(userGroupId);
167     }
168 
169     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
170         long userGroupId) throws com.liferay.portal.SystemException {
171         return getService().getUserGroupGroupRoles(userGroupId);
172     }
173 
174     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
175         long userGroupId, long groupId)
176         throws com.liferay.portal.SystemException {
177         return getService().getUserGroupGroupRoles(userGroupId, groupId);
178     }
179 
180     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
181         long groupId, long roleId) throws com.liferay.portal.SystemException {
182         return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
183     }
184 
185     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
186         long roleId) throws com.liferay.portal.SystemException {
187         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
188     }
189 
190     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
191         java.lang.String roleName)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
195     }
196 
197     public static UserGroupGroupRoleLocalService getService() {
198         if (_service == null) {
199             _service = (UserGroupGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleLocalService.class.getName());
200         }
201 
202         return _service;
203     }
204 
205     public void setService(UserGroupGroupRoleLocalService service) {
206         _service = service;
207     }
208 
209     private static UserGroupGroupRoleLocalService _service;
210 }