public interface UcmdbServiceProvider
UcmdbService
and server information.
Credentials credentials = provider.createCredentials(username, password); ClientContext myContext = provider.createClientContext("myapplication"); UcmdbService ucmdbService = provider.connect(credentials, myContext);
Modifier and Type | Method and Description |
---|---|
UcmdbService |
connect(Credentials credentials,
ClientContext clientContext)
Connects the client to the UCMDB.
|
UcmdbService |
connect(CustomerContext customerContext,
Credentials credentials,
ClientContext clientContext)
Connects to an instance of a customer in the multi-tenant UCMDB server.
|
UcmdbManagementService |
connectManagement(Credentials credentials,
ClientContext clientContext)
Connects the client to the UCMDB.
|
Credentials |
createCertificateCredentials(String keystore,
String keystorePass)
Creates a Certificate Credentials object to be used in the connect method.
|
ClientContext |
createClientContext(String clientIdentification)
Creates an ClientContext object to be used in the connect method.
|
Credentials |
createCredentials(String userName,
String password)
Deprecated.
|
Credentials |
createCredentials(String userName,
String password,
String userRepository)
Creates a Credentials object to be used in the connect method.
|
CustomerContext |
createCustomerContext(int customerId)
Deprecated.
|
CustomerContext |
createCustomerContext(String customerName)
Creates a customer context to be used in the connect method in the multi-tenant environment.
|
CustomerContext |
createDatasetContext(int customerId,
String state)
Deprecated.
|
String |
getServerVersion()
The version of the UCMDB server to which this client is connected.
|
UcmdbService |
getUcmdbService(UcmdbService ucmdbService,
ClientContext clientContext)
Deprecated.
|
String getServerVersion()
@Deprecated Credentials createCredentials(String userName, String password)
userName
- password
- connect(com.hp.ucmdb.api.Credentials, com.hp.ucmdb.api.ClientContext)
Credentials createCredentials(String userName, String password, String userRepository)
userName
- password
- userRepository
- Credentials createCertificateCredentials(String keystore, String keystorePass)
connect(com.hp.ucmdb.api.Credentials, com.hp.ucmdb.api.ClientContext)
ClientContext createClientContext(String clientIdentification)
clientIdentification
- a string used to identify this connection.connect(com.hp.ucmdb.api.Credentials, com.hp.ucmdb.api.ClientContext)
UcmdbService connect(Credentials credentials, ClientContext clientContext) throws InvalidCredentialsException, CustomerNotAvailableException
credentials
- an object obtained from the createCredentials methodclientContext
- an object obtained from the createClientContext methodInvalidCredentialsException
- if the authentication failsCustomerNotAvailableException
- if the server is not yet ready for connections.createCredentials(java.lang.String, java.lang.String)
,
createClientContext(java.lang.String)
CustomerContext createCustomerContext(int customerId)
createCustomerContext(String)
customerId
- connect(CustomerContext, Credentials, ClientContext)
CustomerContext createCustomerContext(String customerName)
customerName
- connect(CustomerContext, Credentials, ClientContext)
CustomerContext createDatasetContext(int customerId, String state)
UcmdbService.getUcmdbServiceForState(java.lang.String)
customerId
- Customer ID in the multi-tenant UCMDB systemstate
- State name (currently only supports
State.ACTUAL
and
State.AUTHORIZED
UcmdbService connect(CustomerContext customerContext, Credentials credentials, ClientContext clientContext) throws InvalidCredentialsException, CustomerNotAvailableException
customerContext
- an object obtained with one of the link methodscredentials
- an object obtained with createCustomerContext methodclientContext
- an object obtained with the createClientContext methodInvalidCredentialsException
- if authentication failsCustomerNotAvailableException
- if the server is not yet ready for connections.createCustomerContext(int)
,
createClientContext(java.lang.String)
UcmdbService getUcmdbService(UcmdbService ucmdbService, ClientContext clientContext)
UcmdbService.getUcmdbServiceForClientContext(ClientContext)
ucmdbService
- an interface to UCMDBclientContext
- an object obtained with the createClientContext method@NotFinalAPI UcmdbManagementService connectManagement(Credentials credentials, ClientContext clientContext) throws InvalidCredentialsException, CustomerNotAvailableException
credentials
- an object obtained from the createCredentials methodclientContext
- an object obtained from the createClientContext methodInvalidCredentialsException
- if the authentication failsCustomerNotAvailableException
- if the server is not yet ready for connections.createCredentials(java.lang.String, java.lang.String)
,
createClientContext(java.lang.String)
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.