Sets the user group role remote service.

@param userGroupRoleService the user group role remote service
437780
public void setUserGroupRoleService(
		com.liferay.portal.kernel.service.UserGroupRoleService userGroupRoleService) {
		this.userGroupRoleService = userGroupRoleService;
	}
589764
public void setServerGroups(java.util.Collection<ServerGroup> serverGroups) {
        if (serverGroups == null) {
            this.serverGroups = null;
            return;
        }

        this.serverGroups = new java.util.ArrayList<ServerGroup>(serverGroups);
    }
917876
public void setCommerceDiscountUserSegmentRelLocalService(
		com.liferay.commerce.discount.service.CommerceDiscountUserSegmentRelLocalService commerceDiscountUserSegmentRelLocalService) {
		this.commerceDiscountUserSegmentRelLocalService = commerceDiscountUserSegmentRelLocalService;
	}
317739
def add_user_role(self, user, role):
        
        self.project_service.set_auth(self._token_project)
        self.project_service.add_user_role(user, role)
1061823
public void setCommerceAccountUserRelService(
		com.liferay.commerce.account.service.CommerceAccountUserRelService commerceAccountUserRelService) {
		this.commerceAccountUserRelService = commerceAccountUserRelService;
	}
298413
public function giveGroupRole(int $group_id, int $role_id)
    {

        $group = Group::find($group_id);
        $role = RoleModel::firstOrNew(['id' => $role_id]);

        // If the role does not already have the group add it.
        if (! $role->groups->contains($group_id)) {
            $role->groups()->save($group);
            event(new UserGroupRoleAdded($group_id, $role));
        }
    }
561694
public function setRole(string $role) {
		$this->user->role = role::get($role);
		R::store($this->user);
	}
785975
def add_user_role(self, user, role):
        
        self.service.add_user_role(
            user, role,
            self.url_prefix, self.auth, self.session, self.session_send_opts)
325806
public function setPlatformRoles(User $user, $roles)
    {
        $this->roleManager->resetRoles($user);
        $this->roleManager->associateRoles($user, $roles);
    }
176937
public function setAuthenticatedRole($authenticatedRole)
    {
        if (! ($authenticatedRole instanceof RoleInterface || is_string($authenticatedRole))) {
            throw InvalidRoleException::invalidRoleInstance($authenticatedRole);
        }

        $this->authenticatedRole = $authenticatedRole;
    }
198440
public static void setServiceUser(String user) {
        if (serviceUser == null) {
            if (StringHelper.isEmpty(user))
                serviceUser = "N/A";
            else
                serviceUser = user;
        }
    }
1133069
@Transactional
  public void persist(GroupValue groupValue) {
    Package rootPackage = packageFactory.create(groupValue.getRootPackage());

    Map<String, Role> roles =
        groupValue
            .getRoles()
            .stream()
            .map(roleFactory::create)
            .collect(toMap(Role::getName, identity()));

    roles.values().forEach(role -> addIncludedRoles(role, roles, groupValue.getName()));

    Group group = groupFactory.create(groupValue);
    group.setRootPackage(rootPackage);
    group.setRoles(roles.values());

    dataService.add(PACKAGE, rootPackage);
    dataService.add(GROUP, group);
    roles.values().forEach(role -> role.setGroup(group));

    dataService.add(ROLE, roles.values().stream());
  }
1190925
public ServerUpdater addRoleToUser(User user, Role role) {
        delegate.addRoleToUser(user, role);
        return this;
    }
53470
public boolean addRoleForUserInDomain(String user, String role, String domain) {
        return addGroupingPolicy(user, role, domain);
    }
717137
public synchronized void addUserToRole(String userName, String roleName)
    {
        HashSet userSet = (HashSet)_roles.get(roleName);
        if (userSet==null)
        {
            userSet=new HashSet(11);
            _roles.put(roleName,userSet);
        }
        userSet.add(userName);
    }
759290
public void setServices(java.util.Collection<Service> services) {
        if (services == null) {
            this.services = null;
            return;
        }

        this.services = new java.util.ArrayList<Service>(services);
    }
957378
public void addUserToRole(CmsObject cms, CmsRole role, String username) throws CmsException {

        m_securityManager.addUserToGroup(cms.getRequestContext(), username, role.getGroupName(), true);
    }