public class PortHandler extends Object
| Constructor and Description |
|---|
PortHandler(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 |
|---|---|
void |
addPortSchemaRelationship(String userId,
String portGUID,
String schemaTypeGUID)
Create a PortSchema relationship between a Port and the corresponding SchemaType
|
String |
createPortAliasWithDelegation(String userId,
String qualifiedName,
String displayName,
PortType portType,
String delegatesTo)
Create the Port Alias entity with a PortDelegation relationship
|
String |
createPortImplementation(String userId,
String qualifiedName,
String displayName,
PortType portType)
Create the port implementation
|
public PortHandler(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 createPortImplementation(String userId, String qualifiedName, String displayName, PortType portType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userqualifiedName - the qualifiedName name of the portdisplayName - the display name of the portportType - the type of the portInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userportGUID - the unique identifier of the portschemaTypeGUID - the unique identifier of the schema typeInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createPortAliasWithDelegation(String userId, String qualifiedName, String displayName, PortType portType, String delegatesTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userqualifiedName - the qualifiedName name of the portdisplayName - the display name of the portportType - the type of the portdelegatesTo - the qualified name of the delegated portInvalidParameterException - the bean properties are
invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2019 ODPi. All rights reserved.