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

时间:2018-06-04 07:11:57

标签: java api rtc extending

我需要更改组件和流的所有权。我试图找到任何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;

0 个答案:

没有答案