1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface UserGroupService {
50 public void addGroupUserGroups(long groupId, long[] userGroupIds)
51 throws com.liferay.portal.kernel.exception.PortalException,
52 com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.UserGroup addUserGroup(
55 java.lang.String name, java.lang.String description)
56 throws com.liferay.portal.kernel.exception.PortalException,
57 com.liferay.portal.kernel.exception.SystemException;
58
59 public void deleteUserGroup(long userGroupId)
60 throws com.liferay.portal.kernel.exception.PortalException,
61 com.liferay.portal.kernel.exception.SystemException;
62
63 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
65 throws com.liferay.portal.kernel.exception.PortalException,
66 com.liferay.portal.kernel.exception.SystemException;
67
68 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
69 public com.liferay.portal.model.UserGroup getUserGroup(
70 java.lang.String name)
71 throws com.liferay.portal.kernel.exception.PortalException,
72 com.liferay.portal.kernel.exception.SystemException;
73
74 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
75 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
76 long userId) throws com.liferay.portal.kernel.exception.SystemException;
77
78 public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
79 throws com.liferay.portal.kernel.exception.PortalException,
80 com.liferay.portal.kernel.exception.SystemException;
81
82 public com.liferay.portal.model.UserGroup updateUserGroup(
83 long userGroupId, java.lang.String name, java.lang.String description)
84 throws com.liferay.portal.kernel.exception.PortalException,
85 com.liferay.portal.kernel.exception.SystemException;
86 }