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