1
22
23 package com.liferay.portal.service;
24
25
26
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 getService().addUserGroupRole(userGroupRole);
52 }
53
54 public static com.liferay.portal.model.UserGroupRole createUserGroupRole(
55 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
56 return getService().createUserGroupRole(userGroupRolePK);
57 }
58
59 public static void deleteUserGroupRole(
60 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException {
63 getService().deleteUserGroupRole(userGroupRolePK);
64 }
65
66 public static void deleteUserGroupRole(
67 com.liferay.portal.model.UserGroupRole userGroupRole)
68 throws com.liferay.portal.SystemException {
69 getService().deleteUserGroupRole(userGroupRole);
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.UserGroupRole getUserGroupRole(
85 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException {
88 return getService().getUserGroupRole(userGroupRolePK);
89 }
90
91 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
92 int start, int end) throws com.liferay.portal.SystemException {
93 return getService().getUserGroupRoles(start, end);
94 }
95
96 public static int getUserGroupRolesCount()
97 throws com.liferay.portal.SystemException {
98 return getService().getUserGroupRolesCount();
99 }
100
101 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
102 com.liferay.portal.model.UserGroupRole userGroupRole)
103 throws com.liferay.portal.SystemException {
104 return getService().updateUserGroupRole(userGroupRole);
105 }
106
107 public static void addUserGroupRoles(long userId, long groupId,
108 long[] roleIds)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 getService().addUserGroupRoles(userId, groupId, roleIds);
112 }
113
114 public static void addUserGroupRoles(long[] userIds, long groupId,
115 long roleId)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException {
118 getService().addUserGroupRoles(userIds, groupId, roleId);
119 }
120
121 public static void deleteUserGroupRoles(long userId, long[] groupIds)
122 throws com.liferay.portal.SystemException {
123 getService().deleteUserGroupRoles(userId, groupIds);
124 }
125
126 public static void deleteUserGroupRoles(long[] userIds, long groupId)
127 throws com.liferay.portal.SystemException {
128 getService().deleteUserGroupRoles(userIds, groupId);
129 }
130
131 public static void deleteUserGroupRoles(long userId, long groupId,
132 long[] roleIds) throws com.liferay.portal.SystemException {
133 getService().deleteUserGroupRoles(userId, groupId, roleIds);
134 }
135
136 public static void deleteUserGroupRoles(long[] userIds, long groupId,
137 long roleId) throws com.liferay.portal.SystemException {
138 getService().deleteUserGroupRoles(userIds, groupId, roleId);
139 }
140
141 public static void deleteUserGroupRolesByGroupId(long groupId)
142 throws com.liferay.portal.SystemException {
143 getService().deleteUserGroupRolesByGroupId(groupId);
144 }
145
146 public static void deleteUserGroupRolesByRoleId(long roleId)
147 throws com.liferay.portal.SystemException {
148 getService().deleteUserGroupRolesByRoleId(roleId);
149 }
150
151 public static void deleteUserGroupRolesByUserId(long userId)
152 throws com.liferay.portal.SystemException {
153 getService().deleteUserGroupRolesByUserId(userId);
154 }
155
156 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
157 long userId) throws com.liferay.portal.SystemException {
158 return getService().getUserGroupRoles(userId);
159 }
160
161 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
162 long userId, long groupId) throws com.liferay.portal.SystemException {
163 return getService().getUserGroupRoles(userId, groupId);
164 }
165
166 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
167 long groupId, long roleId) throws com.liferay.portal.SystemException {
168 return getService().getUserGroupRolesByGroupAndRole(groupId, roleId);
169 }
170
171 public static boolean hasUserGroupRole(long userId, long groupId,
172 long roleId) throws com.liferay.portal.SystemException {
173 return getService().hasUserGroupRole(userId, groupId, roleId);
174 }
175
176 public static boolean hasUserGroupRole(long userId, long groupId,
177 java.lang.String roleName)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException {
180 return getService().hasUserGroupRole(userId, groupId, roleName);
181 }
182
183 public static UserGroupRoleLocalService getService() {
184 if (_service == null) {
185 throw new RuntimeException("UserGroupRoleLocalService is not set");
186 }
187
188 return _service;
189 }
190
191 public void setService(UserGroupRoleLocalService service) {
192 _service = service;
193 }
194
195 private static UserGroupRoleLocalService _service;
196 }