예제 #1
0
 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;
 }
예제 #2
0
 public void fetchMediaForAsset(MediaArchive inArchive, Asset inAsset, User inUser) {
   for (UrlMetadataImporter importer : getUrlMetadataImporters()) {
     importer.fetchMediaForAsset(inArchive, inAsset, inUser);
   }
 }