slreq.dngGetCurrentProject
Description
Examples
Get Current Project
This example shows how to get information about the current project for the IBM DOORS Next session.
Specify the server address, requirements management service root, and the username.
rmipref(OslcServerAddress="https://localhost:9443"); rmipref(OslcServerRMRoot="rm"); rmipref(OslcServerUser="jdoe");
Establish the connection by specifying the project, configuration context, whether
to test the connection from the system browser to MATLAB®, and the custom authentication callback
function myPasswordHelperCallback
. The function
myPasswordHelperCallback
gets the password. For more information,
see 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
Return information about the current project.
project = slreq.dngGetCurrentProject
project = name: 'My Project' uri: 'https://localhost:9443/rm/_tKwroIsyEeuFd_Hmf7aaKg' serviceUri: 'https://localhost:9443/rm/_tKwroIsyEeuFd_Hmf7aaKg/services.xml' context: 'My Project Initial Stream' queryBase: 'https://localhost:9443/rm/views?oslc.query=true&2F_tKwroIsyEeuFd_Hmf7aaKg
Output Arguments
project
— Current project information
structure
Current project information, returned as a structure with these fields:
name
— Name
character vector
Name, returned as a character vector.
uri
— Uniform resource identifier
character vector
Uniform resource identifier, returned as a character vector.
serviceUri
— Service uniform resource identifier
character vector
Service uniform resource identifier, returned as a character vector.
context
— Configuration context
character vector
Configuration context, returned as a character vector.
queryBase
— Query uniform resource identifier
character vector
Query uniform resource identifier, returned as a character vector.
Version History
Introduced in R2023b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)