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

      • getRelatedElement

        public RelatedElement getRelatedElement​(Class<B> beanClass,
                                                EntityDetail entity,
                                                Relationship relationship,
                                                String methodName)
                                         throws PropertyServerException
        Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entity and that of a connected relationship.
        Parameters:
        beanClass - name of the class to create
        entity - entity containing the properties
        relationship - relationship containing the properties
        methodName - calling method
        Returns:
        bean populated with properties from the instances supplied
        Throws:
        PropertyServerException - there is a problem instantiating the bean
      • getRelatedElement

        public RelatedElement getRelatedElement​(Class<B> beanClass,
                                                Relationship relationship,
                                                EntityProxy entityProxy,
                                                String methodName)
                                         throws PropertyServerException
        Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entityProxy and that of a connected relationship.
        Parameters:
        beanClass - name of the class to create
        entityProxy - entityProxy containing the properties
        relationship - relationship containing the properties
        methodName - calling method
        Returns:
        bean populated with properties from the instances supplied
        Throws:
        PropertyServerException - there is a problem instantiating the bean