Package com.hp.ucmdb.api
Interface UcmdbServiceProvider
public interface UcmdbServiceProvider
Services to obtain a
Typical use of this interface to obtain a UcmdbService:
UcmdbService and server information.
Typical use of this interface to obtain a UcmdbService:
Credentials credentials = provider.createCredentials(username, password);
ClientContext myContext = provider.createClientContext("myapplication");
UcmdbService ucmdbService = provider.connect(credentials, myContext);
-
Method Summary
Modifier and TypeMethodDescriptionconnect(Credentials credentials, ClientContext clientContext) Connects the client to the UCMDB.connect(CustomerContext customerContext, Credentials credentials, ClientContext clientContext) Connects to an instance of a customer in the multi-tenant UCMDB server.connectManagement(Credentials credentials, ClientContext clientContext) Connects the client to the UCMDB.createCertificateCredentials(String keystore, String keystorePass) Creates a Certificate Credentials object to be used in the connect method.createClientContext(String clientIdentification) Creates an ClientContext object to be used in the connect method.createCredentials(String userName, char[] password) Deprecated.Creates a Credentials object to be used in the connect method.createCredentials(String userName, char[] password, String userRepository) Creates a Credentials object to be used in the connect method.createCredentials(String userName, String password) Creates a Credentials object to be used in the connect method.createCredentials(String userName, String password, String userRepository) Creates a Credentials object to be used in the connect method.createCustomerContext(int customerId) Creates a customer context to be used in the connect method in the multi-tenant environment.createCustomerContext(String customerName) Creates a customer context to be used in the connect method in the multi-tenant environment.createDatasetContext(int customerId, String state) Deprecated.The version of the UCMDB server to which this client is connected.getUcmdbService(UcmdbService ucmdbService, ClientContext clientContext) Deprecated.
-
Method Details
-
getServerVersion
String getServerVersion()The version of the UCMDB server to which this client is connected. -
createCredentials
Deprecated.Creates a Credentials object to be used in the connect method. This method will set UCMDB as user repository.- Parameters:
userName-password-- Returns:
- A Credentials object.
- See Also:
-
createCredentials
Creates a Credentials object to be used in the connect method. This method will set UCMDB as user repository.- Parameters:
userName-password-- Returns:
- A Credentials object.
-
createCredentials
Creates a Credentials object to be used in the connect method.- Parameters:
userName-password-userRepository-- Returns:
- A credentials object
-
createCredentials
Creates a Credentials object to be used in the connect method.- Parameters:
userName-password-userRepository-- Returns:
- A credentials object
-
createCertificateCredentials
Creates a Certificate Credentials object to be used in the connect method.- Returns:
- A Credentials object.
- See Also:
-
createClientContext
Creates an ClientContext object to be used in the connect method. The ClientContext object provides additional information about your application to the UCMDB.- Parameters:
clientIdentification- a string used to identify this connection.- Returns:
- an application context object
- See Also:
-
connect
UcmdbService connect(Credentials credentials, ClientContext clientContext) throws InvalidCredentialsException, CustomerNotAvailableException Connects the client to the UCMDB. Performs authentication and returns the root interface for accessing UCMDB services.- Parameters:
credentials- an object obtained from the createCredentials methodclientContext- an object obtained from the createClientContext method- Returns:
- an interface to the UCMDB
- Throws:
InvalidCredentialsException- if the authentication failsCustomerNotAvailableException- if the server is not yet ready for connections.- See Also:
-
createCustomerContext
Creates a customer context to be used in the connect method in the multi-tenant environment.- Parameters:
customerId-- Returns:
- a customer context corresponding to the given customer ID
- See Also:
-
createCustomerContext
Creates a customer context to be used in the connect method in the multi-tenant environment.- Parameters:
customerName-- Returns:
- a customer context corresponding to the given customer name
- See Also:
-
createDatasetContext
Deprecated.Creates customer context for dataset- Parameters:
customerId- Customer ID in the multi-tenant UCMDB systemstate- State name (currently only supportsState.ACTUALandState.AUTHORIZED- Returns:
- a customer context corresponding to the given customer ID and state ID
-
connect
UcmdbService connect(CustomerContext customerContext, Credentials credentials, ClientContext clientContext) throws InvalidCredentialsException, CustomerNotAvailableException Connects to an instance of a customer in the multi-tenant UCMDB server. Performs authentication and returns the root interface for accessing UCMDB services.- Parameters:
customerContext- an object obtained with one of the link methodscredentials- an object obtained with createCustomerContext methodclientContext- an object obtained with the createClientContext method- Returns:
- an interface to UCMDB
- Throws:
InvalidCredentialsException- if authentication failsCustomerNotAvailableException- if the server is not yet ready for connections.- See Also:
-
getUcmdbService
Deprecated.Returns the interface for querying various UCMDB subsystems using specified clientContext. Returned interface will share resources with provided UcmdbService- Parameters:
ucmdbService- an interface to UCMDBclientContext- an object obtained with the createClientContext method- Since:
- 9.0
-
connectManagement
@NotFinalAPI UcmdbManagementService connectManagement(Credentials credentials, ClientContext clientContext) throws InvalidCredentialsException, CustomerNotAvailableException Connects the client to the UCMDB. Performs authentication and returns the root interface for accessing UCMDB management services.- Parameters:
credentials- an object obtained from the createCredentials methodclientContext- an object obtained from the createClientContext method- Returns:
- an interface to the UCMDB
- Throws:
InvalidCredentialsException- if the authentication failsCustomerNotAvailableException- if the server is not yet ready for connections.- See Also:
-