如何使用纯 java api 更改 RTC 流和组件所有权?

2023-12-30

我需要更改组件和流的所有权。我正在尝试查找任何用于此目的的 API。请帮忙。 这里我有一个代码片段,但我不知道它是如何工作的。

IScmService scmService = null; 
        IRepositoryItemService itemService;
        IComponentHandle componentH;
        ComponentOwnerHandle componentOwnerH = scmService.getComponentOwnerRecord((ComponentHandle) componentH);
        ComponentOwner componentOwner = (ComponentOwner) itemService.fetchItem(componentOwnerH, IRepositoryRemoteService.COMPLETE);
        IAuditableHandle ownerH = componentOwner.getOwner();
        if (componentHandle == null) {
            // Rename component
            componentHandle = wm.createComponent(componentName,
                    teamRepository.loggedInContributor(), monitor);
            wm.setComponentOwner(componentHandle, ownerH, monitor);
        } else {
            // Rename component
            wm.renameComponent(componentHandle, componentName, monitor);
            wm.setComponentOwner(componentHandle, ownerH, monitor);
        }
        return componentHandle;

None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何使用纯 java api 更改 RTC 流和组件所有权? 的相关文章

随机推荐