Class ReferenceableConverter
java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
- Direct Known Subclasses:
AssetConverter
ReferenceableConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS)
EntityDetail object into a ReferenceableHeader bean.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
entity, relationship, repositoryHelper, serverName, serviceName, typeName -
Constructor Summary
ConstructorsConstructorDescriptionReferenceableConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with relationshipReferenceableConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.frameworks.connectors.properties.beans.ReferenceablegetBean()Return the converted bean.protected org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertiesgetClassificationProperties(String classificationName) Extract the properties for the requested classification from the entity.protected voidupdateBean(org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable bean) Set up the bean to convert.Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
setTypeName, updateBean
-
Constructor Details
-
ReferenceableConverter
public ReferenceableConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content- Parameters:
entity- properties to convertrepositoryHelper- helper object to parse entityserviceName- name of this componentserverName- called server
-
ReferenceableConverter
public ReferenceableConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with relationship- Parameters:
entity- properties to convertrelationship- properties to convertrepositoryHelper- helper object to parse entity/relationshipserviceName- name of this componentserverName- called server
-
-
Method Details
-
updateBean
protected void updateBean(org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable bean) Set up the bean to convert.- Parameters:
bean- output bean
-
getBean
public org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable getBean()Return the converted bean.- Returns:
- bean populated with properties from the entity supplied in the constructor
-
getClassificationProperties
protected org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getClassificationProperties(String classificationName) Extract the properties for the requested classification from the entity.- Parameters:
classificationName- name of classification- Returns:
- list of properties for the named classification
-