public class ConnectorTypeHandler extends Object
| 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 connectorTypeGUID)
Remove the requested ConnectorType if it is no longer connected to any other connection or server
definition.
|
String |
saveConnectorType(String userId,
ConnectorType connectorType)
Verify that the ConnectorType object is stored in the repository and create it if it is not.
|
public 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, ConnectorType connectorType) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdconnectorType - 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 connectorTypeGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userconnectorTypeGUID - 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.