public class ConnectorTypeHandler extends RootHandler
invalidParameterHandler, repositoryHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
ConnectorTypeHandler(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 |
|---|---|
ConnectorType |
getConnectorType(String userId,
String connectorTypeGUID)
Retrieve the requested connectorType object.
|
void |
removeConnectorType(String userId,
String externalSourceGUID,
String externalSourceName,
String connectorTypeGUID)
Remove the requested ConnectorType if it is no longer connected to any other connection or server
definition.
|
String |
saveConnectorType(String userId,
String externalSourceGUID,
String externalSourceName,
ConnectorType connectorType)
Verify that the ConnectorType object is stored in the repository and create it if it is not.
|
getRepositoryHelper, getServiceNamepublic ConnectorTypeHandler(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 saveConnectorType(String userId, String externalSourceGUID, String externalSourceName, ConnectorType connectorType) 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 sourceconnectorType - object to addInvalidParameterException - the connectorType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeConnectorType(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID) 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 sourceconnectorTypeGUID - object to deleteInvalidParameterException - the entity guid is not knownUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic ConnectorType getConnectorType(String userId, String connectorTypeGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userconnectorTypeGUID - unique identifier of the connectorType object.InvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.