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      public static java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.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)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return getService().getUserGroupGroupRoles(start, end);
102     }
103 
104     public static int getUserGroupGroupRolesCount()
105         throws com.liferay.portal.kernel.exception.SystemException {
106         return getService().getUserGroupGroupRolesCount();
107     }
108 
109     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
110         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return getService().updateUserGroupGroupRole(userGroupGroupRole);
113     }
114 
115     public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
116         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
117         boolean merge)
118         throws com.liferay.portal.kernel.exception.SystemException {
119         return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
120     }
121 
122     public static void addUserGroupGroupRoles(long userGroupId, long groupId,
123         long[] roleIds)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
127     }
128 
129     public static void addUserGroupGroupRoles(long[] userGroupIds,
130         long groupId, long roleId)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
134     }
135 
136     public static void deleteUserGroupGroupRoles(long userGroupId,
137         long groupId, long[] roleIds)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
140     }
141 
142     public static void deleteUserGroupGroupRoles(long userGroupId,
143         long[] groupIds)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
146     }
147 
148     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
149         long groupId)
150         throws com.liferay.portal.kernel.exception.SystemException {
151         getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
152     }
153 
154     public static void deleteUserGroupGroupRoles(long[] userGroupIds,
155         long groupId, long roleId)
156         throws com.liferay.portal.kernel.exception.SystemException {
157         getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
158     }
159 
160     public static void deleteUserGroupGroupRolesByGroupId(long groupId)
161         throws com.liferay.portal.kernel.exception.SystemException {
162         getService().deleteUserGroupGroupRolesByGroupId(groupId);
163     }
164 
165     public static void deleteUserGroupGroupRolesByRoleId(long roleId)
166         throws com.liferay.portal.kernel.exception.SystemException {
167         getService().deleteUserGroupGroupRolesByRoleId(roleId);
168     }
169 
170     public static void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         getService().deleteUserGroupGroupRolesByUserGroupId(userGroupId);
173     }
174 
175     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
176         long userGroupId)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return getService().getUserGroupGroupRoles(userGroupId);
179     }
180 
181     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
182         long userGroupId, long groupId)
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getService().getUserGroupGroupRoles(userGroupId, groupId);
185     }
186 
187     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
188         long groupId, long roleId)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
191     }
192 
193     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
194         long roleId) throws com.liferay.portal.kernel.exception.SystemException {
195         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
196     }
197 
198     public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
199         java.lang.String roleName)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
203     }
204 
205     public static UserGroupGroupRoleLocalService getService() {
206         if (_service == null) {
207             _service = (UserGroupGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleLocalService.class.getName());
208         }
209 
210         return _service;
211     }
212 
213     public void setService(UserGroupGroupRoleLocalService service) {
214         _service = service;
215     }
216 
217     private static UserGroupGroupRoleLocalService _service;
218 }