public class EndpointHandler extends RootHandler
invalidParameterHandler, repositoryHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
EndpointHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
getEndpoint(String userId,
String endpointGUID)
Retrieve the requested endpoint object.
|
List<Endpoint> |
getEndpointsByNetworkAddress(String userId,
String networkAddress,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of endpoint objects that have the supplied network address.
|
void |
removeEndpoint(String userId,
String externalSourceGUID,
String externalSourceName,
String endpointGUID)
Remove the requested Endpoint if it is no longer connected to any other connection or server
definition.
|
String |
saveEndpoint(String userId,
String externalSourceGUID,
String externalSourceName,
Endpoint endpoint)
Verify that the Endpoint object is stored in the repository and create it if it is not.
|
getRepositoryHelper, getServiceNamepublic EndpointHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper)
serviceName - 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 objectspublic String saveEndpoint(String userId, String externalSourceGUID, String externalSourceName, Endpoint endpoint) 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 addInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeEndpoint(String userId, String externalSourceGUID, String externalSourceName, String endpointGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userexternalSourceGUID - 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 - object to deleteInvalidParameterException - the entity guid is not knownUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Endpoint getEndpoint(String userId, String endpointGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userendpointGUID - unique identifier of the endpoint object.InvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<Endpoint> getEndpointsByNetworkAddress(String userId, String networkAddress, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usernetworkAddress - address to query onstartFrom - place to start in querypageSize - number of results to returnmethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.