slreq.dngGetSessionConfig
IBM DOORS Next 中选定项目的配置上下文
说明
示例
获取所选项目的配置上下文
此示例显示如何获取 IBM DOORS Next 中选定项的配置上下文。
指定服务器地址、需求管理服务根和用户名。
rmipref(OslcServerAddress="https://localhost:9443"); rmipref(OslcServerRMRoot="rm"); rmipref(OslcServerUser="jdoe");
通过指定工程、配置上下文、是否测试从系统浏览器到 MATLAB® 的连接以及自定义身份验证回调函数 myPasswordHelperCallback
来建立连接。函数myPasswordHelperCallback
获取密码。有关更多信息,请参阅 setCustomLoginProvider
。
slreq.dngConfigure("My Project","My Project Initial Stream", ... true,"myPasswordHelperCallback")
Performing default system browser message test. If browser warns about a missing certificate for 127.0.0.1, please allow the connection or add exemption for 127.0.0.1. https://127.0.0.1:31515/matlab/oslc/inboundTest
在您的网络浏览器中,在 IBM DOORS 接下来,选择一个需求。获取所选需求的配置上下文。
config = slreq.dngGetSessionConfig
config = struct with fields: id: '_tP_J5osyEeuFd_Hmf7aaKg' name: 'My Project' type: 'stream' url: 'https://localhost:9443/rm/cm/stream/_tP_J5osyEeuFd_Hmf7aaKg'
获取所选需求的配置上下文和工程。
[config,projName] = slreq.dngGetSessionConfig
config = struct with fields: id: '_tP_J5osyEeuFd_Hmf7aaKg' name: 'My Project' type: 'My Project Initial Stream' url: 'https://localhost:9443/rm/cm/stream/_tP_J5osyEeuFd_Hmf7aaKg' projName = 'My Project'
输出参量
config
— 配置上下文
结构体
配置上下文,以具有以下字段的结构体返回:
id
— 配置上下文 ID
字符向量
配置上下文 ID,以字符向量形式返回。
name
— 配置上下文名称
字符向量
配置上下文名称,以字符向量形式返回。
type
— 配置上下文类型
'stream'
| 'changeset'
配置上下文类型,返回为 'stream'
或 'changeset'
。
url
— 配置上下文 URL
字符向量
配置上下文 URL,以字符向量形式返回。
projName
— 工程名称
字符向量
工程名称,以字符向量形式返回。
版本历史记录
在 R2018b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)