Class AssetCatalogConverter<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter<B>
AssetConverter is a helper class that maps the OMRS objects to Asset Catalog model.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter
repositoryHelper, serverName, serviceName
-
Constructor Summary
ConstructorsConstructorDescriptionAssetCatalogConverter
(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Instantiates a new Asset Catalog converter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildElement
(Element parentElement, Element element) Method use to add the parent element to the current element in the built context treevoid
addContextElement
(AssetCatalogItemElement assetCatalogItemElement, EntityDetail entityDetail) Method use to add to the context of the given entityvoid
addElement
(AssetCatalogItemElement assetCatalogItemElement, EntityDetail entityDetail) Add an element in the context.buildAssetElements
(EntityDetail entityDetail) Create an Asset Element from the Entity DetailsconvertClassifications
(List<Classification> classificationsFromEntity) Convert a list of Classifications from the OMRS model to Asset Catalog OMAS modelMethod used to convert the relationship from the OMRS model to AC OMAS modelconvertRelationships
(List<Relationship> relationships) Method used to covert a list of relationships from OMRS model to AC OMAS modelconvertType
(TypeDef openType) Method used to convert TypeDef to Type object from the Asset Catalog OMASgetAssetCatalogBean
(EntityDetail entityDetail) Method used to convert the Entity Details to Asset Catalog OMAS Model - Asset Description objectgetLastNode
(AssetCatalogItemElement assetCatalogItemElement) Returns the last node added in the contextMethods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter
getAbbreviation, getAdditionalValues, getAnchorGUID, getArguments, getAssetSummary, getAssociationDescription, getAttributeName, getCertificationGUID, getCertifiedBy, getClassificationProperties, getClassificationProperties, getConditions, getConfidence, getCustodian, getDataStoreEncodingDescription, getDataStoreEncodingLanguage, getDataStoreEncodingType, getDescription, getDisplayName, getElementClassifications, getElementOriginCategory, getElementStatus, getElementStub, getElementStub, getElementStub, getElementType, getElementVersions, getEncodingProperties, getEncryption, getEnd, getFormat, getFormula, getFormulaType, getGroups, getGuard, getImplementationLanguage, getImplementationValue, getIsPublic, getLicensedBy, getLicensee, getLicenseGUID, getMetadataElementHeader, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean, getNotes, getOriginBusinessCapabilityGUID, getOriginOrganizationGUID, getOtherOriginValues, getOwner, getOwnerPropertyName, getOwnerTypeName, getOwnerTypeOrdinal, getPointType, getPosition, getQualifiedName, getQuery, getQueryId, getRationale, getRecipient, getReferenceId, getRemainingExtendedProperties, getSecurityLabels, getSecurityProperties, getStart, getSteward, getStewardPropertyName, getStewardTypeName, getStrictRequirement, getSummary, getSymbolicName, getUsage, getZoneMembership, handleBadEntity, handleBadEntityProxy, handleBadRelationship, handleInvalidBeanClass, handleMissingMetadataInstance, handleUnexpectedBeanClass, removeAbbreviation, removeActionProperties, removeActionRequested, removeActionTargetName, removeAdditionalProperties, removeAliases, removeAllowsDuplicateValues, removeAnalysisParameters, removeAnalysisStep, removeAnchorGUID, removeAnnotationType, removeAssociationType, removeAttachmentGUID, removeAuthor, removeAverageValue, removeBusinessImperatives, removeCandidateClassifications, removeCandidateDataClassGUIDs, removeCandidateGlossaryCategoryGUIDs, removeCandidateGlossaryTermGUIDs, removeCapabilityType, removeCapabilityVersion, removeClassificationName, removeClassificationPropertyName, removeClearPassword, removeCollectionType, removeComment, removeCommentText, removeCompletionDate, removeCompletionGuards, removeCompletionMessage, removeCompletionTime, removeConfidence, removeConfidenceLevel, removeConfigurationProperties, removeConnectorFrameworkName, removeConnectorInterfaceLanguage, removeConnectorInterfaces, removeConnectorProviderClassName, removeContactMethodService, removeContactMethodValue, removeContactType, removeCoordinates, removeCreatedTime, removeCreationTime, removeCriteria, removeDatabaseImportedFrom, removeDatabaseInstance, removeDatabaseType, removeDatabaseVersion, removeDataFieldAliases, removeDataFieldDescription, removeDataFieldName, removeDataFieldNamespace, removeDataFieldType, removeDataSourceProperties, removeDataType, removeDefaultValue, removeDefaultValueOverride, removeDeployedImplementationType, removeDescription, removeDetails, removeDiscoveryActivity, removeDisplayName, removeDistinguishedName, removeDivergentClassificationName, removeDivergentClassificationPropertyNames, removeDivergentPropertyNames, removeDivergentRelationshipGUID, removeDivergentRelationshipPropertyNames, removeDomainIdentifier, removeDueTime, removeDuplicateAnchorGUID, removeDuplicateAnchorGUIDs, removeDuplicateAttachmentGUID, removeEmployeeNumber, removeEmployeeType, removeEncoding, removeEncodingStandard, removeEncryptedPassword, removeEncryptionMethod, removeExamples, removeExecutionDate, removeExecutorEngineGUID, removeExecutorEngineName, removeExpectedDataFormat, removeExplanation, removeExpression, removeExternalInstanceCreatedBy, removeExternalInstanceCreationTime, removeExternalInstanceLastUpdatedBy, removeExternalInstanceLastUpdateTime, removeExternalInstanceVersion, removeFileType, removeFixedValue, removeFormula, removeFormulaType, removeFullName, removeGivenNames, removeGovernanceActionTypeName, removeGuard, removeHeadCount, removeId, removeIdentifier, removeIgnoreMultipleTriggers, removeImplementationDescription, removeImplementationLanguage, removeImplications, removeInferredDataType, removeInferredFormat, removeInferredLength, removeInferredPrecision, removeInferredScale, removeInformalTerm, removeInformalTopic, removeInitials, removeIntPriority, removeIsDefaultValue, removeIsDeprecated, removeIsNullable, removeIsPublic, removeJobTitle, removeJsonProperties, removeJurisdiction, removeKarmaPoints, removeKeyword, removeLanguage, removeLastModifiedTime, removeLastModifier, removeLastSynchronized, removeLength, removeLevel, removeLevelIdentifier, removeMandatoryGuard, removeMandatoryGuards, removeMappingProperties, removeMapProjection, removeMatchingAttachmentGUIDs, removeMatchingClassificationNames, removeMatchingPropertyNames, removeMatchingRelationshipGUIDs, removeMaxCardinality, removeMaximumInstances, removeMeasurement, removeMembershipRationale, removeMinCardinality, removeMinimumInstances, removeMinimumLength, removeMission, removeName, removeNamespace, removeNativeClass, removeNetworkAddress, removeOperatingSystem, removeOperatingSystemPatchLevel, removeOrderedValues, removeOrderPropertyName, removeOrganization, removeOriginGovernanceEngine, removeOriginGovernanceService, removeOutcomes, removeOwner, removeOwnerPropertyName, removeOwnerTypeName, removeOwnerTypeOrdinal, removeParameterType, removePatchLevel, removePathName, removePlannedEndDate, removePosition, removePostalAddress, removePrecision, removePreferredLanguage, removePreferredValue, removePriority, removeProcessingEngineUserId, removeProcessName, removeProcessStepGUID, removeProcessStepName, removeProducedGuards, removeProfileCounts, removeProfileFlags, removeProfileProperties, removePronouns, removeProtocol, removePublishVersionIdentifier, removeQualifiedName, removeQualityDimension, removeQualityScore, removeReceivedGuards, removeRecognizedAdditionalProperties, removeRecognizedConfigurationProperties, removeRecognizedSecuredProperties, removeReferenceId, removeReferenceVersion, removeRelatedEntityGUID, removeRelationshipEnd, removeRelationshipProperties, removeRelationshipTypeName, removeRequestParameters, removeRequestSourceName, removeRequestType, removeRequired, removeResults, removeReview, removeReviewDate, removeRoleTypeName, removeSchemaName, removeSchemaType, removeScope, removeSecuredProperties, removeServiceRequestType, removeSignificantDigits, removeSize, removeSource, removeSourceCreateTime, removeSourceUpdateTime, removeStartDate, removeStatus, removeSteward, removeStoreCreateTime, removeStoreUpdateTime, removeSubjectAreaName, removeSummary, removeSupportedAssetTypeName, removeSurname, removeTagDescription, removeTagName, removeTarget, removeTargetTechnologyInterfaces, removeTargetTechnologyName, removeTargetTechnologySource, removeTargetTechnologyVersions, removeText, removeTimeZone, removeTitle, removeTopicType, removeURL, removeUsage, removeUserId, removeUsesBlockingCalls, removeValueCount, removeValueList, removeValueRangeFrom, removeValueRangeTo, removeVersion, removeVersionIdentifier, removeVersionNumber, removeWaitTime, removeZoneMembership, removeZoneName, validateInstanceType
-
Constructor Details
-
AssetCatalogConverter
public AssetCatalogConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Instantiates a new Asset Catalog converter.- Parameters:
repositoryHelper
- the repository helperserviceName
- the service nameserverName
- the server name
-
-
Method Details
-
getAssetCatalogBean
Method used to convert the Entity Details to Asset Catalog OMAS Model - Asset Description object- Parameters:
entityDetail
- entityDetails object- Returns:
- Asset Description object
-
convertRelationships
Method used to covert a list of relationships from OMRS model to AC OMAS model- Parameters:
relationships
- list of relationships - OMRS model- Returns:
- a list of AC OMAS relationships objects
-
convertRelationship
Method used to convert the relationship from the OMRS model to AC OMAS model- Parameters:
rel
- relationship in the OMRS model- Returns:
- a relationship in AC OMAS model
-
convertClassifications
Convert a list of Classifications from the OMRS model to Asset Catalog OMAS model- Parameters:
classificationsFromEntity
- - list of classification in the repository services model- Returns:
- list of classifications in the AC OMAS model
-
addElement
Add an element in the context. If the context is null, the current element becomes the root of the context- Parameters:
assetCatalogItemElement
- the contextentityDetail
- entity details of the new element
-
getLastNode
Returns the last node added in the context- Parameters:
assetCatalogItemElement
- given context- Returns:
- the last element
-
addChildElement
Method use to add the parent element to the current element in the built context tree- Parameters:
parentElement
- parent element from the contextelement
- a child element
-
addContextElement
public void addContextElement(AssetCatalogItemElement assetCatalogItemElement, EntityDetail entityDetail) Method use to add to the context of the given entity- Parameters:
assetCatalogItemElement
- asset element that contains the current contextentityDetail
- entity details
-
convertType
Method used to convert TypeDef to Type object from the Asset Catalog OMAS- Parameters:
openType
- type definition- Returns:
- the Type object
-
buildAssetElements
Create an Asset Element from the Entity Details- Parameters:
entityDetail
- entityDetails- Returns:
- an AssetElement object
-