java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.builders.RootBuilder
Direct Known Subclasses:
ReferenceableBuilder

public class RootBuilder extends Object
RootBuilder provides the super class for builders. Builders create Open Metadata Repository Services (OMRS) objects based on the bean properties supplied in the constructor.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementClassification>
     
    protected org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler
     
    protected org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper
     
    protected String
     
    protected String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RootBuilder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification>
    Return a list of entity classifications that can be stored in the metadata repository.
    protected org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties
    Return the supplied bean properties in an InstanceProperties object.
    void
    setClassifications(List<org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementClassification> classifications)
    Set up the classifications associated with the entity.

    Methods inherited from class java.lang.Object

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

    • errorHandler

      protected org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler errorHandler
    • repositoryHelper

      protected org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper
    • serviceName

      protected String serviceName
    • serverName

      protected String serverName
    • classifications

      protected List<org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementClassification> classifications
  • Constructor Details

    • RootBuilder

      protected RootBuilder(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Constructor.
      Parameters:
      repositoryHelper - helper methods
      serviceName - name of this OMAS
      serverName - name of local server
  • Method Details

    • setClassifications

      public void setClassifications(List<org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementClassification> classifications)
      Set up the classifications associated with the entity.
      Parameters:
      classifications - list of classification objects
    • getEntityClassifications

      public List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> getEntityClassifications(String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Return a list of entity classifications that can be stored in the metadata repository.
      Parameters:
      methodName - calling method
      Returns:
      list of entity classification objects
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the properties of the classification are flawed
    • getInstanceProperties

      protected org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getInstanceProperties(String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Return the supplied bean properties in an InstanceProperties object.
      Parameters:
      methodName - name of the calling method
      Returns:
      InstanceProperties object
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem with the properties