B - class of bean for returning the port attributespublic class PortHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
PortHandler(OpenMetadataAPIGenericConverter<B> converter,
Class<B> beanClass,
String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearPortDelegation(String userId,
String externalSourceGUID,
String externalSourceName,
String portOneGUID,
String portOneGUIDParameterName,
String portTwoGUID,
String portTwoGUIDParameterName,
String methodName)
Remove the port delegation relationship between two ports.
|
void |
clearPortSchemaType(String userId,
String externalSourceGUID,
String externalSourceName,
String portGUID,
String portGUIDParameterName,
String schemaTypeGUID,
String schemaTypeGUIDParameterName,
String methodName)
Remove the schema type from a port.
|
void |
clearProcessPort(String userId,
String externalSourceGUID,
String externalSourceName,
String processGUID,
String processGUIDParameterName,
String portGUID,
String portGUIDParameterName,
String methodName)
Unlink a port from a process.
|
String |
createPort(String userId,
String externalSourceGUID,
String externalSourceName,
String processGUID,
String processGUIDParameterName,
String qualifiedName,
String displayName,
int portType,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Create a new metadata element to represent a port.
|
List<B> |
findPorts(String userId,
String searchString,
String searchStringParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of port metadata elements that contain the search string.
|
B |
getPortByGUID(String userId,
String portGUID,
String portGUIDParameterName,
String methodName)
Retrieve the port metadata element with the supplied unique identifier.
|
B |
getPortDelegation(String userId,
String portGUID,
String portGUIDParameterName,
String methodName)
Retrieve the port that this port delegates to.
|
List<B> |
getPortsByName(String userId,
String name,
String nameParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of port metadata elements with a matching qualified or display name.
|
List<B> |
getPortsForProcess(String userId,
String processGUID,
String processGUIDParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of ports associated with a process.
|
List<B> |
getPortUse(String userId,
String portGUID,
String portGUIDParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of ports that delegate to this port.
|
void |
removePort(String userId,
String externalSourceGUID,
String externalSourceName,
String portGUID,
String portGUIDParameterName,
String methodName)
Remove the metadata element representing a port.
|
void |
setupPortDelegation(String userId,
String externalSourceGUID,
String externalSourceName,
String portOneGUID,
String portOneGUIDParameterName,
String portTwoGUID,
String portTwoGUIDParameterName,
String methodName)
Link two ports together to show that portTwo is an implementation of portOne.
|
void |
setupPortSchemaType(String userId,
String externalSourceGUID,
String externalSourceName,
String portGUID,
String portGUIDParameterName,
String schemaTypeGUID,
String schemaTypeGUIDParameterName,
String methodName)
Link a schema type to a port to show the structure of data it accepts.
|
void |
setupProcessPort(String userId,
String externalSourceGUID,
String externalSourceName,
String processGUID,
String processGUIDParameterName,
String portGUID,
String portGUIDParameterName,
String methodName)
Link a port to a process.
|
void |
updatePort(String userId,
String externalSourceGUID,
String externalSourceName,
String portGUID,
String portGUIDParameterName,
String qualifiedName,
String displayName,
int portType,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Update the properties of the metadata element representing a port.
|
archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkAllElements, unlinkConnectedElement, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic PortHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
converter - specific converter for this bean classbeanClass - name of bean class that is represented by the generic class BserviceName - 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 objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve Asset instances from.defaultZones - list of zones that the access service should set in all new Asset instances.publishZones - list of zones that the access service sets up in published Asset instances.auditLog - destination for audit log events.public String createPort(String userId, String externalSourceGUID, String externalSourceName, String processGUID, String processGUIDParameterName, String qualifiedName, String displayName, int portType, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerprocessGUID - unique identifier of the process where the port is locatedprocessGUIDParameterName - parameter supplying processGUIDqualifiedName - unique name for the port - used in other configurationdisplayName - short display name for the portportType - description of the portadditionalProperties - additional properties for a portsuppliedTypeName - type name from the caller (enables creation of subtypes)extendedProperties - properties for a port subtypemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updatePort(String userId, String externalSourceGUID, String externalSourceName, String portGUID, String portGUIDParameterName, String qualifiedName, String displayName, int portType, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerportGUID - unique identifier of the port to updateportGUIDParameterName - parameter supplying portGUIDqualifiedName - unique name for the port - used in other configurationdisplayName - short display name for the portportType - description of the portadditionalProperties - additional properties for a portsuppliedTypeName - type name from the caller (enables creation of subtypes)extendedProperties - properties for a port subtypemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupProcessPort(String userId, String externalSourceGUID, String externalSourceName, String processGUID, String processGUIDParameterName, String portGUID, String portGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerprocessGUID - unique identifier of the processprocessGUIDParameterName - parameter supplying processGUIDportGUID - unique identifier of the portportGUIDParameterName - parameter supplying portGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearProcessPort(String userId, String externalSourceGUID, String externalSourceName, String processGUID, String processGUIDParameterName, String portGUID, String portGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerprocessGUID - unique identifier of the processprocessGUIDParameterName - parameter supplying processGUIDportGUID - unique identifier of the portportGUIDParameterName - parameter supplying portGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupPortDelegation(String userId, String externalSourceGUID, String externalSourceName, String portOneGUID, String portOneGUIDParameterName, String portTwoGUID, String portTwoGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerportOneGUID - unique identifier of the port at end 1portOneGUIDParameterName - parameter supplying portOneGUIDportTwoGUID - unique identifier of the port at end 2portTwoGUIDParameterName - parameter supplying portTwoGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearPortDelegation(String userId, String externalSourceGUID, String externalSourceName, String portOneGUID, String portOneGUIDParameterName, String portTwoGUID, String portTwoGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerportOneGUID - unique identifier of the port at end 1portOneGUIDParameterName - parameter supplying portOneGUIDportTwoGUID - unique identifier of the port at end 2portTwoGUIDParameterName - parameter supplying portTwoGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupPortSchemaType(String userId, String externalSourceGUID, String externalSourceName, String portGUID, String portGUIDParameterName, String schemaTypeGUID, String schemaTypeGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerportGUID - unique identifier of the portportGUIDParameterName - parameter supplying portGUIDschemaTypeGUID - unique identifier of the schemaTypeschemaTypeGUIDParameterName - parameter supplying schemaTypeGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearPortSchemaType(String userId, String externalSourceGUID, String externalSourceName, String portGUID, String portGUIDParameterName, String schemaTypeGUID, String schemaTypeGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerportGUID - unique identifier of the portportGUIDParameterName - parameter supplying portGUIDschemaTypeGUID - unique identifier of the schemaTypeschemaTypeGUIDParameterName - parameter supplying schemaTypeGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removePort(String userId, String externalSourceGUID, String externalSourceName, String portGUID, String portGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerportGUID - unique identifier of the metadata element to removeportGUIDParameterName - parameter supplying portGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<B> findPorts(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersearchString - string to find in the propertiessearchStringParameterName - parameter supplying searchStringstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<B> getPortsForProcess(String userId, String processGUID, String processGUIDParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userprocessGUID - unique identifier of the process of interestprocessGUIDParameterName - parameter passing processGUIDstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<B> getPortUse(String userId, String portGUID, String portGUIDParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userportGUID - unique identifier of the starting portportGUIDParameterName - parameter passing portGUIDstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public B getPortDelegation(String userId, String portGUID, String portGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userportGUID - unique identifier of the starting port aliasportGUIDParameterName - parameter passing portGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<B> getPortsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling username - name to search fornameParameterName - parameter supplying namestartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public B getPortByGUID(String userId, String portGUID, String portGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userportGUID - unique identifier of the requested metadata elementportGUIDParameterName - parameter passing portGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.