public static String validateAssetInfo(AssetInfo assetInfo, String validationType) { if (assetInfo.getAssetLifeCycleInfo() != null) { if (validateAssetLifeCycleInfo(assetInfo.getAssetLifeCycleInfo()) .equalsIgnoreCase(RepositoryServiceClientConstants.FAILURE)) { return RepositoryServiceClientConstants.FAILURE; } } if (validateBasicAssetInfo(assetInfo.getBasicAssetInfo()) .equalsIgnoreCase(RepositoryServiceClientConstants.FAILURE)) { return RepositoryServiceClientConstants.FAILURE; } if (assetInfo.getExtendedAssetInfo() != null) { if (validateExtendedAssetInfo(assetInfo.getExtendedAssetInfo()) .equalsIgnoreCase(RepositoryServiceClientConstants.FAILURE)) { return RepositoryServiceClientConstants.FAILURE; } } if (assetInfo.getFlattenedRelationship() != null) { if (validateFlattenedRelationship(assetInfo.getFlattenedRelationship()) .equalsIgnoreCase(RepositoryServiceClientConstants.FAILURE)) { return RepositoryServiceClientConstants.FAILURE; } } return RepositoryServiceClientConstants.SUCCESS; }
public void modifySourceRelationship(AssetInfo assetInfo) { if (assetInfo.getFlattenedRelationship() != null) assetInfo.getFlattenedRelationship().setSourceAsset(null); }