Class GovernanceProgramOMASConverter<B>

    • Constructor Detail

      • GovernanceProgramOMASConverter

        public GovernanceProgramOMASConverter​(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,
                                                      List<Classification> entityClassifications,
                                                      String methodName)
                                               throws PropertyServerException
        Extract the properties from the instance.
        Parameters:
        beanClass - name of the class to create
        header - header from the entity containing the properties
        entityClassifications - classifications from the entity
        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