public Asset createAssetFromFetchUrl( MediaArchive inArchive, String inUrl, User inUser, String inSourcePath, String inFileName) { for (UrlMetadataImporter importer : getUrlMetadataImporters()) { Asset asset = importer.importFromUrl(inArchive, inUrl, inUser, inSourcePath, inFileName); if (asset != null) { return asset; } } return null; }
public void fetchMediaForAsset(MediaArchive inArchive, Asset inAsset, User inUser) { for (UrlMetadataImporter importer : getUrlMetadataImporters()) { importer.fetchMediaForAsset(inArchive, inAsset, inUser); } }