001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class UserGroupGroupRoleServiceUtil {
038
043
044
049 public static java.lang.String getOSGiServiceIdentifier() {
050 return getService().getOSGiServiceIdentifier();
051 }
052
053 public static void addUserGroupGroupRoles(long userGroupId, long groupId,
054 long[] roleIds)
055 throws com.liferay.portal.kernel.exception.PortalException {
056 getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
057 }
058
059 public static void addUserGroupGroupRoles(long[] userGroupIds,
060 long groupId, long roleId)
061 throws com.liferay.portal.kernel.exception.PortalException {
062 getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
063 }
064
065 public static void deleteUserGroupGroupRoles(long userGroupId,
066 long groupId, long[] roleIds)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
069 }
070
071 public static void deleteUserGroupGroupRoles(long[] userGroupIds,
072 long groupId, long roleId)
073 throws com.liferay.portal.kernel.exception.PortalException {
074 getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
075 }
076
077 public static UserGroupGroupRoleService getService() {
078 if (_service == null) {
079 _service = (UserGroupGroupRoleService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleService.class.getName());
080
081 ReferenceRegistry.registerReference(UserGroupGroupRoleServiceUtil.class,
082 "_service");
083 }
084
085 return _service;
086 }
087
088 private static UserGroupGroupRoleService _service;
089 }