public abstract class OCFConverter<B> extends OpenMetadataAPIGenericConverter<B>
repositoryHelper, serverName, serviceName| Modifier | Constructor and Description |
|---|---|
protected |
OCFConverter(OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected ElementClassification |
getClassification(String classificationName,
List<ElementClassification> beanClassifications)
Retrieve a specific named classification.
|
protected Connection |
getEmbeddedConnection(Class<B> beanClass,
EntityDetail primaryEntity,
List<EntityDetail> supplementaryEntities,
List<Relationship> relationships,
String methodName)
Using the supplied instances, return a new instance of the Connection bean.
|
protected List<ElementClassification> |
getEntityClassifications(List<Classification> entityClassifications)
Extract the classifications from the entity.
|
protected OwnerType |
getOwnerTypeFromProperties(InstanceProperties properties)
Retrieve the OwnerType enum property from the instance properties of a classification
|
protected List<ElementClassification> |
removeClassification(String classificationName,
List<ElementClassification> beanClassifications)
Remove the requested classification from the bean classifications and return the resulting list.
|
protected OwnerType |
removeOwnerTypeFromProperties(InstanceProperties properties)
Retrieve and delete the OwnerType enum property from the instance properties of an entity
|
protected DataItemSortOrder |
removeSortOrder(InstanceProperties instanceProperties)
Extract and delete the sortOrder property from the supplied instance properties.
|
protected void |
setUpElementHeader(ElementHeader elementHeader,
EntityDetail entity,
String expectedTypeName,
String methodName)
Extract the properties from the entity.
|
protected void |
setUpElementHeader(ElementHeader elementHeader,
InstanceHeader instanceHeader,
List<Classification> classifications,
String methodName)
Extract the properties from the entity.
|
getAdditionalValues, getAnchorGUID, getArguments, getAssetSummary, getAssociationDescription, getCertificationGUID, getCertifiedBy, getClassificationProperties, getClassificationProperties, getConditions, getConfidence, getCustodian, getDataStoreEncodingDescription, getDataStoreEncodingLanguage, getDataStoreEncodingType, getDescription, getDisplayName, getEncodingProperties, getEncryption, getEnd, getFormat, getFormula, getGuard, getImplementationLanguage, getImplementationValue, getIsPublic, getLicensedBy, getLicensee, getLicenseGUID, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean, getNotes, getOriginBusinessCapabilityGUID, getOriginOrganizationGUID, getOtherOriginValues, getOwner, getPosition, getQualifiedName, getRecipient, getRemainingExtendedProperties, getStart, getSteward, getStrictRequirement, getSymbolicName, getZoneMembership, handleInvalidBeanClass, handleMissingMetadataInstance, handleUnexpectedBeanClass, removeActionProperties, removeActionRequested, removeActionTargetName, removeAdditionalProperties, removeAliases, removeAllowsDuplicateValues, removeAnalysisParameters, removeAnalysisStep, removeAnchorGUID, removeAnnotationType, removeAttachmentGUID, removeAuthor, removeAverageValue, removeCandidateClassifications, removeCandidateDataClassGUIDs, removeCandidateGlossaryCategoryGUIDs, removeCandidateGlossaryTermGUIDs, removeCapabilityVersion, removeClearPassword, removeComment, removeCommentText, removeCompletionDate, removeCompletionGuards, removeConfidenceLevel, removeConfigurationProperties, removeConnectorProviderClassName, removeCoordinates, removeCriteria, removeDatabaseImportedFrom, removeDatabaseInstance, removeDatabaseType, removeDatabaseVersion, removeDataFieldAliases, removeDataFieldDescription, removeDataFieldName, removeDataFieldType, removeDataSourceProperties, removeDataType, removeDefaultValue, removeDefaultValueOverride, removeDeployedImplementationType, removeDescription, removeDiscoveryActivity, removeDisplayName, removeDivergentClassificationName, removeDivergentClassificationPropertyNames, removeDivergentPropertyNames, removeDivergentRelationshipGUID, removeDivergentRelationshipPropertyNames, removeDomainIdentifier, removeDuplicateAnchorGUID, removeDuplicateAnchorGUIDs, removeDuplicateAttachmentGUID, removeEncoding, removeEncodingStandard, removeEncryptedPassword, removeEncryptionMethod, removeExecutionDate, removeExplanation, removeExpression, removeFileType, removeFixedValue, removeFormula, removeIdentifier, removeImplementationLanguage, removeImplications, removeInferredDataType, removeInferredFormat, removeInferredLength, removeInferredPrecision, removeInferredScale, removeInformalTerm, removeInformalTopic, removeIsDeprecated, removeIsNullable, removeIsPublic, removeJsonProperties, removeLanguage, removeLastSynchronized, removeLength, removeLevel, removeMandatoryGuards, removeMappingProperties, removeMapProjection, removeMatchingAttachmentGUIDs, removeMatchingClassificationNames, removeMatchingPropertyNames, removeMatchingRelationshipGUIDs, removeMaxCardinality, removeMinCardinality, removeMinimumLength, removeName, removeNamespace, removeNativeClass, removeNetworkAddress, removeOrderedValues, removeOriginGovernanceEngine, removeOriginGovernanceService, removeOutcomes, removeOwner, removePatchLevel, removePathName, removePosition, removePostalAddress, removePrecision, removePreferredValue, removePriority, removeProcessingEngineUserId, removeProducedGuards, removeProfileCounts, removeProfileFlags, removeProfileProperties, removeProtocol, removeQualifiedName, removeQualityDimension, removeQualityScore, removeReceivedGuards, removeRecognizedAdditionalProperties, removeRecognizedConfigurationProperties, removeRecognizedSecuredProperties, removeRelatedEntityGUID, removeRelationshipProperties, removeRelationshipTypeName, removeRequestParameters, removeRequestSourceName, removeRequestType, removeResults, removeReview, removeReviewDate, removeSchemaName, removeSchemaType, removeScope, removeSecuredProperties, removeSize, removeSource, removeSourceCreateTime, removeSourceUpdateTime, removeStartDate, removeSteward, removeStoreCreateTime, removeStoreUpdateTime, removeSummary, removeTagDescription, removeTagName, removeTimeZone, removeTitle, removeUsage, removeUserId, removeValueCount, removeValueList, removeValueRangeFrom, removeValueRangeTo, removeVersionNumber, removeZoneMembership, validateInstanceTypeprotected OCFConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
repositoryHelper - helper object to parse entityserviceName - name of this componentserverName - name of this serverprotected void setUpElementHeader(ElementHeader elementHeader, EntityDetail entity, String expectedTypeName, String methodName) throws PropertyServerException
elementHeader - the header for the beanentity - entity containing the propertiesexpectedTypeName - type that the entity must match (or it may be a subtype)methodName - calling methodPropertyServerException - the supplied entity is not of the expected typeprotected void setUpElementHeader(ElementHeader elementHeader, InstanceHeader instanceHeader, List<Classification> classifications, String methodName) throws PropertyServerException
elementHeader - the header for the beaninstanceHeader - header of entityclassifications - classifications from the entitymethodName - calling methodPropertyServerException - the supplied entity is not of the expected typeprotected List<ElementClassification> getEntityClassifications(List<Classification> entityClassifications)
entityClassifications - list of classifications from entityprotected ElementClassification getClassification(String classificationName, List<ElementClassification> beanClassifications)
classificationName - name of classificationbeanClassifications - list of classifications retrieved from the repositoriesprotected List<ElementClassification> removeClassification(String classificationName, List<ElementClassification> beanClassifications)
classificationName - name of the classificationbeanClassifications - list of classifications retrieved from the repositoriesprotected DataItemSortOrder removeSortOrder(InstanceProperties instanceProperties)
instanceProperties - properties from entityprotected OwnerType removeOwnerTypeFromProperties(InstanceProperties properties)
properties - entity propertiesprotected OwnerType getOwnerTypeFromProperties(InstanceProperties properties)
properties - entity propertiesprotected Connection getEmbeddedConnection(Class<B> beanClass, EntityDetail primaryEntity, List<EntityDetail> supplementaryEntities, List<Relationship> relationships, String methodName) throws PropertyServerException
beanClass - class name for the beanprimaryEntity - entity that is the root of the cluster of entities that make up the
content of the beansupplementaryEntities - entities connected to the primary entity by the relationshipsrelationships - relationships linking the entitiesmethodName - calling methodPropertyServerException - there is a problem instantiating the beanCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.