java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationMapper
Direct Known Subclasses:
CanonicalVocabularyMapper, ConfidenceMapper, ConfidentialityMapper, CriticalityMapper, GlossaryProjectMapper, ObjectIdentifierMapper, RetentionMapper, SpineAttributeMapper, SpineObjectMapper, SubjectAreaMapper, TaxonomyMapper

public abstract class ClassificationMapper extends Object
Static mapping methods to map between an OMAS Classification and the OMRS Classification.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
     
    protected final org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ClassificationMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification
    get an instance of the classification
    static org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributes
    createSystemAttributesFromOMRSClassification(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification)
     
    protected boolean
    isTypeCorrect(String actualTypeName)
    Check whether the type name matches the mapper.
    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification
    mapBeanToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
     
    protected abstract Set<String>
    mapKnownAttributesToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties omrsClassificationProperties)
    Map attributes we know are part of this type to OMRS.
    org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification
    mapOmrsToBean(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification)
     
    protected abstract org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties
    updateOMRSAttributes(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • genericHandler

      protected final org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler
    • repositoryHelper

      protected final org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper
  • Constructor Details

    • ClassificationMapper

      protected ClassificationMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
  • Method Details

    • mapOmrsToBean

      public org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification mapOmrsToBean(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification)
      Parameters:
      omrsClassification - - the supplied omrs classification
      Returns:
      equivalent org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification
    • mapBeanToOmrs

      public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification mapBeanToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
    • createOmasClassification

      protected abstract org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification createOmasClassification()
      get an instance of the classification
      Returns:
      classification instance
    • mapKnownAttributesToOmrs

      protected abstract Set<String> mapKnownAttributesToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties omrsClassificationProperties)
      Map attributes we know are part of this type to OMRS.
      Parameters:
      omasClassification - omasclassification
      omrsClassificationProperties - omrs properties
      Returns:
      set of property Names that we know about.
    • isTypeCorrect

      protected boolean isTypeCorrect(String actualTypeName)
      Check whether the type name matches the mapper.
      Parameters:
      actualTypeName - name of type to check
      Returns:
      true if type is correct otherwise false.
    • updateOMRSAttributes

      protected abstract org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties updateOMRSAttributes(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
    • createSystemAttributesFromOMRSClassification

      public static org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributes createSystemAttributesFromOMRSClassification(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification)