Class AssetOwnerFactory
java.lang.Object
org.odpi.openmetadata.accessservices.assetconsumer.fvt.AssetOwnerFactory
AssetOwnerFactory uses the Asset Owner OMAS methods to create assets and schema elements that can be used by Asset Consumer OMAS.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetOwnerFactory(String testCaseName, String serverName, String serverPlatformRootURL, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Simple constructor -
Method Summary
Modifier and TypeMethodDescriptionCreate an asset and return its GUID.getAssetFromTemplate(String userId, String templateGUID) Create an asset and return its GUID.getSchemaType(String userId, String assetGUID) Create a schemaType and return its GUID.
-
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 caseserverName- server nameserverPlatformRootURL- server locationauditLog- 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 usertemplateGUID- 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 userassetGUID- unique id of the schemaType manager- Returns:
- GUID of schemaType
- Throws:
org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition- the test case failed
-