public class PortHandler extends Object
| Constructor and Description |
|---|
PortHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
DataEngineRegistrationHandler dataEngineRegistrationHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPortDelegationRelationship(String userId,
String portGUID,
PortType portType,
String delegatesTo,
String externalSourceName)
Create a PortDelegation relationship between two ports.
|
void |
addPortSchemaRelationship(String userId,
String portGUID,
String schemaTypeGUID,
String externalSourceName)
Create a PortSchema relationship between a Port and the corresponding SchemaType.
|
String |
createPortAlias(String userId,
PortAlias portAlias,
String externalSourceName)
Create the port alias
|
String |
createPortImplementation(String userId,
PortImplementation portImplementation,
String externalSourceName)
Create the port implementation
|
String |
findPortAlias(String userId,
String qualifiedName)
Find out if the Port Alias object is already stored in the repository.
|
String |
findPortImplementation(String userId,
String qualifiedName)
Find out if the Port Implementation object is already stored in the repository.
|
String |
findSchemaTypeForPort(String userId,
String portGUID)
Retrieve the schema type that is linked to the port
|
void |
removePort(String userId,
String portGUID,
String entityTypeName)
Remove the port
|
void |
updatePortAlias(String userId,
String portGUID,
PortAlias portAlias)
Update the port alias
|
void |
updatePortImplementation(String userId,
String portGUID,
PortImplementation portImplementation)
Update the port implementation
|
public PortHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, DataEngineRegistrationHandler dataEngineRegistrationHandler)
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 objectsdataEngineRegistrationHandler - provides calls for retrieving external data engine guidpublic String createPortImplementation(String userId, PortImplementation portImplementation, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportImplementation - the port implementation valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createPortAlias(String userId, PortAlias portAlias, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportAlias - the port alias valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updatePortImplementation(String userId, String portGUID, PortImplementation portImplementation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportGUID - the unique identifier of the portportImplementation - the port implementation new valuesInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updatePortAlias(String userId, String portGUID, PortAlias portAlias) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportGUID - the unique identifier of the portportAlias - the port alias new valuesInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addPortSchemaRelationship(String userId, String portGUID, String schemaTypeGUID, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportGUID - the unique identifier of the portschemaTypeGUID - the unique identifier of the schema typeexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String findSchemaTypeForPort(String userId, String portGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportGUID - the unique identifier of the portInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addPortDelegationRelationship(String userId, String portGUID, PortType portType, String delegatesTo, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportGUID - the unique identifier of the source portportType - the type of the source portdelegatesTo - the unique identifier of the target portexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removePort(String userId, String portGUID, String entityTypeName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userportGUID - the unique identifier of the port to be removedentityTypeName - the type nameInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String findPortImplementation(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String findPortAlias(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.