001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025
026
038 @ProviderType
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface UserGroupRoleLocalService extends BaseLocalService,
042 PersistedModelLocalService {
043
048
049
056 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
057 public com.liferay.portal.model.UserGroupRole addUserGroupRole(
058 com.liferay.portal.model.UserGroupRole userGroupRole)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portal.model.UserGroupRole createUserGroupRole(
068 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK);
069
070
078 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
079 public com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
080 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084
091 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
092 public com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
093 com.liferay.portal.model.UserGroupRole userGroupRole)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
097
098
105 @SuppressWarnings("rawtypes")
106 public java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110
123 @SuppressWarnings("rawtypes")
124 public java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException;
127
128
142 @SuppressWarnings("rawtypes")
143 public java.util.List dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
156 public long dynamicQueryCount(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160
168 public long dynamicQueryCount(
169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
170 com.liferay.portal.kernel.dao.orm.Projection projection)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
175 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portal.model.UserGroupRole getUserGroupRole(
188 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 @Override
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portal.model.PersistedModel getPersistedModel(
195 java.io.Serializable primaryKeyObj)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException;
198
199
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
213 int start, int end)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public int getUserGroupRolesCount()
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226
233 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
234 public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
235 com.liferay.portal.model.UserGroupRole userGroupRole)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238
243 public java.lang.String getBeanIdentifier();
244
245
250 public void setBeanIdentifier(java.lang.String beanIdentifier);
251
252 public java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
253 long userId, long groupId, long[] roleIds)
254 throws com.liferay.portal.kernel.exception.SystemException;
255
256 public java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
257 long[] userIds, long groupId, long roleId)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 public void deleteUserGroupRoles(long userId, long[] groupIds)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 public void deleteUserGroupRoles(long[] userIds, long groupId)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 public void deleteUserGroupRoles(long[] userIds, long groupId, int roleType)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 public void deleteUserGroupRolesByGroupId(long groupId)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 public void deleteUserGroupRolesByRoleId(long roleId)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 public void deleteUserGroupRolesByUserId(long userId)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
286 long userId) throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
290 long userId, long groupId)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
295 long userId, long groupId, int start, int end)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
300 long groupId)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
305 long groupId, long roleId)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
310 long userId, long groupId)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public int getUserGroupRolesCount(long userId, long groupId)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public boolean hasUserGroupRole(long userId, long groupId, long roleId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public boolean hasUserGroupRole(long userId, long groupId, long roleId,
323 boolean inherit)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public boolean hasUserGroupRole(long userId, long groupId,
328 java.lang.String roleName)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public boolean hasUserGroupRole(long userId, long groupId,
334 java.lang.String roleName, boolean inherit)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337 }