public class AssetConverter extends ReferenceableConverter
AssetConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS) EntityDetail object into an Asset bean.
  • Constructor Details

    • AssetConverter

      public AssetConverter(EntityDetail assetEntity, Relationship connectionToAssetRelationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Constructor captures the initial content with connectionToAssetRelationship
      Parameters:
      assetEntity - properties to convert
      connectionToAssetRelationship - properties to convert
      repositoryHelper - helper object to parse entity/relationship objects
      serviceName - name of this component
      serverName - called server
    • AssetConverter

      public AssetConverter(EntityDetail assetEntity, Relationship connectionToAssetRelationship, OMRSRepositoryHelper repositoryHelper, String serviceName)
      Constructor captures the initial content with connectionToAssetRelationship
      Parameters:
      assetEntity - properties to convert
      connectionToAssetRelationship - properties to convert
      repositoryHelper - helper object to parse entity/relationship objects
      serviceName - name of this component
  • Method Details

    • getNewBean

      protected Asset getNewBean()
      This method is overridable by the subclasses.
      Returns:
      empty bean
    • getAssetBean

      public Asset getAssetBean()
      Request the bean is extracted from the repository objects
      Returns:
      output bean
    • updateBean

      protected void updateBean(Asset bean)
      Request the bean is extracted from the repository objects
      Parameters:
      bean - output bean