Class EnterpriseRepositoryServicesClient
java.lang.Object
org.odpi.openmetadata.repositoryservices.clients.MetadataCollectionServicesClient
org.odpi.openmetadata.repositoryservices.clients.EnterpriseRepositoryServicesClient
- All Implemented Interfaces:
AuditLoggingComponent
EnterpriseRepositoryServicesClient provides a client interface for calling the enterprise repository
services in a remote server.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.clients.MetadataCollectionServicesClient
auditLog, invalidParameterHandler, repositoryName, restClient, restURLRoot -
Constructor Summary
ConstructorsConstructorDescriptionEnterpriseRepositoryServicesClient(String repositoryName, String restURLRoot, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, AuditLog auditLog, int maxPageSize, String callerId) Create a new client with no authentication embedded in the HTTP request.EnterpriseRepositoryServicesClient(String repositoryName, String restURLRoot, Map<String, SecretsStoreConnector> secretsStoreConnectorMap, int maxPageSize, String callerId) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoidDisconnect from the topic connector - events will no longer be passed to the registered listeners.voidregisterListener(String userId, OMRSTopicRepositoryEventListener listener) Register a listener object that will be passed each of the events published by the Asset Manager OMAS.Methods inherited from class org.odpi.openmetadata.repositoryservices.clients.MetadataCollectionServicesClient
addAttributeTypeDef, addEntity, addEntityProxy, addExternalEntity, addExternalRelationship, addRelationship, addTypeDef, addTypeDefGallery, classifyEntity, classifyEntity, classifyEntity, classifyEntity, declassifyEntity, declassifyEntity, deleteAttributeTypeDef, deleteEntity, deleteEntityReferenceCopy, deleteRelationship, deleteRelationshipReferenceCopy, deleteTypeDef, detectAndThrowInvalidParameterException, detectAndThrowRepositoryErrorException, detectAndThrowUserNotAuthorizedException, findAttributeTypeDefsByCategory, findEntities, findEntitiesByClassification, findEntitiesByProperty, findEntitiesByPropertyValue, findRelationships, findRelationshipsByProperty, findRelationshipsByPropertyValue, findTypeDefsByCategory, findTypeDefsByProperty, findTypesByExternalID, findTypesByName, getAllTypes, getAttributeTypeDefByGUID, getAttributeTypeDefByName, getClassificationHistory, getConnectorComponentDescription, getEntityDetail, getEntityDetail, getEntityDetailHistory, getEntityNeighborhood, getEntitySummary, getHomeClassifications, getHomeClassifications, getLinkingEntities, getMetadataCollectionId, getRelatedEntities, getRelationship, getRelationship, getRelationshipHistory, getRelationshipsForEntity, getTypeDefByGUID, getTypeDefByName, isEntityKnown, isRelationshipKnown, purgeClassificationReferenceCopy, purgeClassificationReferenceCopy, purgeEntity, purgeEntityReferenceCopy, purgeEntityReferenceCopy, purgeRelationship, purgeRelationshipReferenceCopy, purgeRelationshipReferenceCopy, refreshEntityReferenceCopy, refreshRelationshipReferenceCopy, reHomeEntity, reHomeRelationship, reIdentifyAttributeTypeDef, reIdentifyEntity, reIdentifyRelationship, reIdentifyTypeDef, restoreEntity, restoreRelationship, reTypeEntity, reTypeRelationship, saveClassificationReferenceCopy, saveClassificationReferenceCopy, saveEntityReferenceCopy, saveInstanceReferenceCopies, saveRelationshipReferenceCopy, searchForTypeDefs, setAuditLog, undoEntityUpdate, undoRelationshipUpdate, updateEntityClassification, updateEntityClassification, updateEntityProperties, updateEntityStatus, updateRelationshipProperties, updateRelationshipStatus, updateTypeDef, verifyAttributeTypeDef, verifyTypeDef
-
Constructor Details
-
EnterpriseRepositoryServicesClient
public EnterpriseRepositoryServicesClient(String repositoryName, String restURLRoot, Map<String, SecretsStoreConnector> secretsStoreConnectorMap, int maxPageSize, String callerId) throws InvalidParameterExceptionCreate a new client with no authentication embedded in the HTTP request.- Parameters:
repositoryName- name of the server to connect torestURLRoot- the network address of the server running the repository services. This is of the form serverURLroot + "/servers/" + serverName.secretsStoreConnectorMap- map from authentication type to supplied secrets storemaxPageSize- pre-initialized parameter limitcallerId- unique identifier of the caller- Throws:
InvalidParameterException- bad input parameters
-
EnterpriseRepositoryServicesClient
public EnterpriseRepositoryServicesClient(String repositoryName, String restURLRoot, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, AuditLog auditLog, int maxPageSize, String callerId) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
repositoryName- name of the server to connect torestURLRoot- the network address of the server running the repository services. This is of the form serverURLroot + "/servers/" + serverName.localServerSecretsStoreProvider- secrets store connector for bearer tokenlocalServerSecretsStoreLocation- secrets store location for bearer tokenlocalServerSecretsStoreCollection- secrets store collection for bearer tokenauditLog- audit logmaxPageSize- pre-initialized parameter limitcallerId- unique identifier of the caller- Throws:
InvalidParameterException- bad input parameters
-
-
Method Details
-
registerListener
public void registerListener(String userId, OMRSTopicRepositoryEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, RepositoryErrorException, UserNotAuthorizedException Register a listener object that will be passed each of the events published by the Asset Manager OMAS.- Parameters:
userId- calling userlistener- listener object- Throws:
InvalidParameterException- one of the parameters is null or invalid.ConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.ConnectorCheckedException- there are errors in the initialization of the connector.RepositoryErrorException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
disconnectFromEnterpriseTopic
Disconnect from the topic connector - events will no longer be passed to the registered listeners.- Throws:
ConnectorCheckedException- problem with the topic connector
-