public class PortHandler extends Object
| Constructor and Description |
|---|
PortHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
DataEngineCommonHandler dataEngineCommonHandler)
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 delegatesToQualifiedName,
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
|
Optional<EntityDetail> |
findPortAliasEntity(String userId,
String qualifiedName)
Find out if the PortAlias object is already stored in the repository.
|
Optional<EntityDetail> |
findPortEntity(String userId,
String qualifiedName)
Find out if the Port object is already stored in the repository.
|
Optional<EntityDetail> |
findPortImplementationEntity(String userId,
String qualifiedName)
Find out if the PortImplementation 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,
EntityDetail originalPortEntity,
PortAlias portAlias)
Update the port alias
|
void |
updatePortImplementation(String userId,
EntityDetail originalPortEntity,
PortImplementation portImplementation)
Update the port implementation
|
public PortHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, DataEngineCommonHandler dataEngineCommonHandler)
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 objectsdataEngineCommonHandler - provides utilities for manipulating entitiespublic 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, EntityDetail originalPortEntity, PortImplementation portImplementation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling useroriginalPortEntity - the created port entityportImplementation - 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, EntityDetail originalPortEntity, PortAlias portAlias) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling useroriginalPortEntity - the created port entityportAlias - 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 delegatesToQualifiedName, 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 portdelegatesToQualifiedName - 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 Optional<EntityDetail> findPortImplementationEntity(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 Optional<EntityDetail> findPortAliasEntity(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 Optional<EntityDetail> findPortEntity(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.