public class UpsertAssetCommandsBuilderHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultDomainId(List<Asset> assets,
String defaultDomainId)
For upsert by external id, it might happen that assets do not have domain
provided on asset level.
|
static UpsertAssetCommand |
generateAssetCommandByExternalId(String externalSystemId,
String assetTypeId,
Asset asset) |
static UpsertAssetCommand |
generateAssetCommandByName(String assetTypeId,
Asset asset) |
public static void addDefaultDomainId(List<Asset> assets, String defaultDomainId)
public static UpsertAssetCommand generateAssetCommandByExternalId(String externalSystemId, String assetTypeId, Asset asset)
externalSystemId
- - the external system idassetTypeId
- - the asset typeasset
- - an instance of Asset
containing all the details
required to create the asset CommandUpsertAssetCommand
containing all the
information to Insert or Update an Assetpublic static UpsertAssetCommand generateAssetCommandByName(String assetTypeId, Asset asset)
assetTypeId
- - id of the asset typeasset
- - an instance of Asset
containing all the details
required to create the asset CommandUpsertAssetCommand
containing all the
information to Insert or Update an AssetCopyright © 2010–2019. All rights reserved.