public class EndpointHandler extends Object
| 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.
|
void |
removeEndpoint(String userId,
String endpointGUID)
Remove the requested Endpoint if it is no longer connected to any other connection or server
definition.
|
String |
saveEndpoint(String userId,
Endpoint endpoint)
Verify that the Endpoint object is stored in the repository and create it if it is not.
|
public 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, Endpoint endpoint) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdendpoint - 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 endpointGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userendpointGUID - 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 serverCopyright © 2018–2019 ODPi. All rights reserved.