Class DigitalArchitectureOMASConverter<B>

    • Constructor Detail

      • DigitalArchitectureOMASConverter

        public DigitalArchitectureOMASConverter​(OMRSRepositoryHelper repositoryHelper,
                                                String serviceName,
                                                String serverName)
        Constructor
        Parameters:
        repositoryHelper - helper object to parse entity
        serviceName - name of this component
        serverName - name of this server
    • Method Detail

      • getMetadataElementHeader

        public ElementHeader getMetadataElementHeader​(Class<B> beanClass,
                                                      InstanceHeader header,
                                                      String methodName)
                                               throws PropertyServerException
        Extract the properties from the entity or relationship.
        Parameters:
        beanClass - name of the class to create
        header - header from the entity containing the properties
        methodName - calling method
        Returns:
        filled out element header
        Throws:
        PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
      • getClassification

        protected ElementClassification getClassification​(String classificationName,
                                                          List<ElementClassification> beanClassifications)
        Retrieve a specific named classification.
        Parameters:
        classificationName - name of classification
        beanClassifications - list of classifications retrieved from the repositories
        Returns:
        null or the requested classification
      • removeClassification

        protected List<ElementClassification> removeClassification​(String classificationName,
                                                                   List<ElementClassification> beanClassifications)
        Remove the requested classification from the bean classifications and return the resulting list.
        Parameters:
        classificationName - name of the classification
        beanClassifications - list of classifications retrieved from the repositories
        Returns:
        null or a list of classifications
      • getElementStub

        public ElementStub getElementStub​(Class<B> beanClass,
                                          EntityProxy entityProxy,
                                          String methodName)
                                   throws PropertyServerException
        Extract the properties from the entity.
        Parameters:
        beanClass - name of the class to create
        entityProxy - entityProxy from the relationship containing the properties
        methodName - calling method
        Returns:
        filled out element header
        Throws:
        PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler