getServiceProviderNames
Description
returns the service providers for the configured OSLC client
providerNames
= getServiceProviderNames(myClient
)myClient
.
Examples
Create and Configure an OSLC Client for the Requirements Management Domain
This example shows how to create an OSLC client in MATLAB® and configure the client to connect to an OSLC service provider for the requirements management domain.
Create the OSLC client.
myClient = oslc.Client;
Set the user and server URL for your service provider. Then set the service root and catalog path for the requirements management domain and the configuration query path.
setUser(myClient,'jdoe'); setServer(myClient,'https://localhost:9443'); setServiceRoot(myClient,'rm'); setCatalogPath(myClient,'/oslc_rm/catalog'); setConfigurationQueryPath(myClient,'gc/oslc-query/configurations'); myClient
Log in to the client and enter your credentials when prompted.
login(myClient);
Get the available service providers in the specified catalog path and service root. Set the OSLC client to the desired service provider.
providers = getServiceProviderNames(myClient)
providers = 4×1 cell array {'OSLC Plugin' } {'Model Based Design with OSLC' } {'OSLC4RM' } {'Interactive Testing (Requirements Management)'}
setServiceProvider(myClient,'OSLC Plugin');
If applicable, get the available configuration contexts. Set the OSLC client to the desired configuration context.
configurations = getConfigurationContextNames(myClient)
configurations = 2×1 cell array {'Initial Development'} {'Initial Baseline' }
setConfigurationContext(myClient,'Initial Development');
Inspect the client properties.
myClient
myClient = Client with properties: ServiceProvider: 'OSLC Plugin' ConfigurationContext: 'Initial Development' CatalogUrl: 'https://localhost:9443/rm/oslc_rm/catalog'
Input Arguments
myClient
— OSLC client
oslc.Client
object
OSLC client, specified as an oslc.Client
object.
Output Arguments
providerNames
— Service providers for OSLC client
cell array
Names of the available service providers for the OSLC client, returned as a cell array.
Version History
Introduced in R2021a
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi 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)