public class EndpointHandler<B> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
EndpointHandler(OpenMetadataAPIGenericConverter<B> converter,
Class<B> beanClass,
String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
int |
countEndpoints(String userId,
String elementGUID,
String methodName)
Count the number of informal endpoints attached to a supplied entity.
|
String |
createEndpoint(String userId,
String externalSourceGUID,
String externalSourceName,
String anchorGUID,
String qualifiedName,
String displayName,
String description,
String networkAddress,
String protocol,
String encryptionMethod,
Map<String,String> additionalProperties,
String methodName)
Creates a new endpoint and returns the unique identifier for it.
|
String |
getEndpointForConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String anchorGUID,
String qualifiedName,
String displayName,
String description,
String networkAddress,
String protocol,
String encryptionMethod,
Map<String,String> additionalProperties,
String methodName)
Retrieves an endpoint based on network address.
|
List<B> |
getEndpointsByNetworkAddress(String userId,
String networkAddress,
String networkAddressParameterName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Return the list of endpoints exactly matching the supplied network address.
|
String |
saveEndpoint(String userId,
String externalSourceGUID,
String externalSourceName,
Endpoint endpoint,
String methodName)
Verify that the Endpoint object is stored in the repository and create it if it is not.
|
void |
updateEndpoint(String userId,
String externalSourceGUID,
String externalSourceName,
String endpointGUID,
String endpointGUIDParameterName,
String qualifiedName,
String displayName,
String description,
String networkAddress,
String protocol,
String encryptionMethod,
Map<String,String> additionalProperties,
String methodName)
Updates the properties of an existing endpoint.
|
addSecurityTags, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, removeSecurityTags, removeSemanticAssignment, saveSemanticAssignment, saveSemanticAssignmentcountAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, relinkElementToNewElement, relinkElementToNewElement, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic EndpointHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
converter - specific converter for this bean classbeanClass - name of bean class that is represented by the generic class BserviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve Asset instances from.defaultZones - list of zones that the access service should set in all new Asset instances.publishZones - list of zones that the access service sets up in published Asset instances.auditLog - destination for audit log events.public String saveEndpoint(String userId, String externalSourceGUID, String externalSourceName, Endpoint endpoint, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceendpoint - object to addmethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createEndpoint(String userId, String externalSourceGUID, String externalSourceName, String anchorGUID, String qualifiedName, String displayName, String description, String networkAddress, String protocol, String encryptionMethod, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceanchorGUID - the unique identifier for the anchor entity (null for unanchored endpoints)qualifiedName - unique name of the endpointdisplayName - human memorable name for the endpoint - does not need to be uniquedescription - (optional) description of the endpoint. Setting a description, particularly in a public endpoint
makes the endpoint more valuable to other users and can act as an embryonic glossary termnetworkAddress - the network address (typically the URL but this depends on the protocol)protocol - the name of the protocol to use to connect to the endpointencryptionMethod - encryption method to use when passing data to this endpointadditionalProperties - name value pairs for values that are not formally defined in the type systemmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the endpoint properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String getEndpointForConnection(String userId, String externalSourceGUID, String externalSourceName, String anchorGUID, String qualifiedName, String displayName, String description, String networkAddress, String protocol, String encryptionMethod, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceanchorGUID - the unique identifier for the anchor entity (null for unanchored endpoints)qualifiedName - unique name of the endpointdisplayName - human memorable name for the endpoint - does not need to be uniquedescription - (optional) description of the endpoint. Setting a description, particularly in a public endpoint
makes the endpoint more valuable to other users and can act as an embryonic glossary termnetworkAddress - the network address (typically the URL but this depends on the protocol)protocol - the name of the protocol to use to connect to the endpointencryptionMethod - encryption method to use when passing data to this endpointadditionalProperties - name value pairs for values that are not formally defined in the type systemmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the endpoint properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void updateEndpoint(String userId, String externalSourceGUID, String externalSourceName, String endpointGUID, String endpointGUIDParameterName, String qualifiedName, String displayName, String description, String networkAddress, String protocol, String encryptionMethod, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceendpointGUID - unique identifier for the endpointendpointGUIDParameterName - parameter providing endpointGUIDqualifiedName - unique name of the endpointdisplayName - human memorable name for the endpoint - does not need to be uniquedescription - (optional) description of the endpoint. Setting a description, particularly in a public endpoint
makes the endpoint more valuable to other users and can act as an embryonic glossary termnetworkAddress - the network address (typically the URL but this depends on the protocol)protocol - the name of the protocol to use to connect to the endpointencryptionMethod - encryption method to use when passing data to this endpointadditionalProperties - name value pairs for values that are not formally defined in the type systemmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the endpoint properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public int countEndpoints(String userId, String elementGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> getEndpointsByNetworkAddress(String userId, String networkAddress, String networkAddressParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the the calling usernetworkAddress - network address of endpointnetworkAddressParameterName - parameter providing endpointserviceSupportedZones - list of supported zones for this servicestartFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to returnmethodName - calling methodInvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2020 ODPi. All rights reserved.