java.lang.Object
org.odpi.openmetadata.accessservices.assetconsumer.fvt.AssetOwnerFactory

public class AssetOwnerFactory extends Object
AssetOwnerFactory uses the Asset Owner OMAS methods to create assets and schema elements that can be used by Asset Consumer OMAS.
  • Constructor Details

    • AssetOwnerFactory

      public AssetOwnerFactory(String testCaseName, String serverName, String serverPlatformRootURL, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition
      Simple constructor
      Parameters:
      testCaseName - calling test case
      serverName - server name
      serverPlatformRootURL - server location
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition - something went wrong
  • Method Details

    • getAsset

      public String getAsset(String userId) throws org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition
      Create an asset and return its GUID.
      Parameters:
      userId - calling user
      Returns:
      GUID of asset
      Throws:
      org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition - the test case failed
    • getAssetFromTemplate

      public String getAssetFromTemplate(String userId, String templateGUID) throws org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition
      Create an asset and return its GUID.
      Parameters:
      userId - calling user
      templateGUID - unique identifier of template to use
      Returns:
      GUID of asset
      Throws:
      org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition - the test case failed
    • getSchemaType

      public String getSchemaType(String userId, String assetGUID) throws org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition
      Create a schemaType and return its GUID.
      Parameters:
      userId - calling user
      assetGUID - unique id of the schemaType manager
      Returns:
      GUID of schemaType
      Throws:
      org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition - the test case failed