Class ProjectManagementOMASConverter<B>

java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.accessservices.projectmanagement.converters.ProjectManagementOMASConverter<B>
Direct Known Subclasses:
ActorProfileConverter, PersonRoleConverter, ProjectConverter, RelatedElementConverter

public class ProjectManagementOMASConverter<B> extends OpenMetadataAPIGenericConverter<B>
ProjectManagementOMASConverter provides the generic methods for the Community Profile beans converters. Generic classes have limited knowledge of the classes these are working on and this means creating a new instance of a class from within a generic is a little involved. This class provides the generic method for creating and initializing a Community Profile bean.
  • Constructor Details

    • ProjectManagementOMASConverter

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

      public ProjectManagementOMASConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, int karmaPointPlateau)
      Constructor
      Parameters:
      repositoryHelper - helper object to parse entity
      serviceName - name of this component
      serverName - local server name
      karmaPointPlateau - how many karma points to a plateau
  • Method Details

    • 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