001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface UserGroupService {
043 public void addGroupUserGroups(long groupId, long[] userGroupIds)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.UserGroup addUserGroup(
048 java.lang.String name, java.lang.String description)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public void deleteUserGroup(long userGroupId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException;
055
056 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException;
060
061 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062 public com.liferay.portal.model.UserGroup getUserGroup(
063 java.lang.String name)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
069 long userId) throws com.liferay.portal.kernel.exception.SystemException;
070
071 public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 public com.liferay.portal.model.UserGroup updateUserGroup(
076 long userGroupId, java.lang.String name, java.lang.String description)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079 }