1   /**
2    * Copyright (c) 2000-2008 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="UserGroupRoleLocalServiceUtil.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   * <code>com.liferay.portal.service.UserGroupRoleLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portal.service.UserGroupRoleLocalService
45   *
46   */
47  public class UserGroupRoleLocalServiceUtil {
48      public static com.liferay.portal.model.UserGroupRole addUserGroupRole(
49          com.liferay.portal.model.UserGroupRole userGroupRole)
50          throws com.liferay.portal.SystemException {
51          return _service.addUserGroupRole(userGroupRole);
52      }
53  
54      public static void deleteUserGroupRole(
55          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException {
58          _service.deleteUserGroupRole(userGroupRolePK);
59      }
60  
61      public static void deleteUserGroupRole(
62          com.liferay.portal.model.UserGroupRole userGroupRole)
63          throws com.liferay.portal.SystemException {
64          _service.deleteUserGroupRole(userGroupRole);
65      }
66  
67      public static java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
69          throws com.liferay.portal.SystemException {
70          return _service.dynamicQuery(dynamicQuery);
71      }
72  
73      public static java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return _service.dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      public static com.liferay.portal.model.UserGroupRole getUserGroupRole(
80          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException {
83          return _service.getUserGroupRole(userGroupRolePK);
84      }
85  
86      public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
87          int start, int end) throws com.liferay.portal.SystemException {
88          return _service.getUserGroupRoles(start, end);
89      }
90  
91      public static int getUserGroupRolesCount()
92          throws com.liferay.portal.SystemException {
93          return _service.getUserGroupRolesCount();
94      }
95  
96      public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
97          com.liferay.portal.model.UserGroupRole userGroupRole)
98          throws com.liferay.portal.SystemException {
99          return _service.updateUserGroupRole(userGroupRole);
100     }
101 
102     public static void addUserGroupRoles(long userId, long groupId,
103         long[] roleIds)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         _service.addUserGroupRoles(userId, groupId, roleIds);
107     }
108 
109     public static void addUserGroupRoles(long[] userIds, long groupId,
110         long roleId)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         _service.addUserGroupRoles(userIds, groupId, roleId);
114     }
115 
116     public static void deleteUserGroupRoles(long userId, long[] groupIds)
117         throws com.liferay.portal.SystemException {
118         _service.deleteUserGroupRoles(userId, groupIds);
119     }
120 
121     public static void deleteUserGroupRoles(long[] userIds, long groupId)
122         throws com.liferay.portal.SystemException {
123         _service.deleteUserGroupRoles(userIds, groupId);
124     }
125 
126     public static void deleteUserGroupRoles(long userId, long groupId,
127         long[] roleIds) throws com.liferay.portal.SystemException {
128         _service.deleteUserGroupRoles(userId, groupId, roleIds);
129     }
130 
131     public static void deleteUserGroupRoles(long[] userIds, long groupId,
132         long roleId) throws com.liferay.portal.SystemException {
133         _service.deleteUserGroupRoles(userIds, groupId, roleId);
134     }
135 
136     public static void deleteUserGroupRolesByGroupId(long groupId)
137         throws com.liferay.portal.SystemException {
138         _service.deleteUserGroupRolesByGroupId(groupId);
139     }
140 
141     public static void deleteUserGroupRolesByRoleId(long roleId)
142         throws com.liferay.portal.SystemException {
143         _service.deleteUserGroupRolesByRoleId(roleId);
144     }
145 
146     public static void deleteUserGroupRolesByUserId(long userId)
147         throws com.liferay.portal.SystemException {
148         _service.deleteUserGroupRolesByUserId(userId);
149     }
150 
151     public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
152         long userId, long groupId) throws com.liferay.portal.SystemException {
153         return _service.getUserGroupRoles(userId, groupId);
154     }
155 
156     public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
157         long groupId, long roleId) throws com.liferay.portal.SystemException {
158         return _service.getUserGroupRolesByGroupAndRole(groupId, roleId);
159     }
160 
161     public static boolean hasUserGroupRole(long userId, long groupId,
162         long roleId) throws com.liferay.portal.SystemException {
163         return _service.hasUserGroupRole(userId, groupId, roleId);
164     }
165 
166     public static boolean hasUserGroupRole(long userId, long groupId,
167         java.lang.String roleName)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         return _service.hasUserGroupRole(userId, groupId, roleName);
171     }
172 
173     public static UserGroupRoleLocalService getService() {
174         return _service;
175     }
176 
177     public void setService(UserGroupRoleLocalService service) {
178         _service = service;
179     }
180 
181     private static UserGroupRoleLocalService _service;
182 }