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