debugging
This commit is contained in:
@@ -66,7 +66,7 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
private static final Logger log = LoggerFactory.getLogger(MamMigrationSelective.class);
|
private static final Logger log = LoggerFactory.getLogger(MamMigrationSelective.class);
|
||||||
|
|
||||||
static final String mamHost = "https://service.media-assistant.animalhealth.bayer.com";
|
static final String mamHost = "https://service.media-assistant.animalhealth.bayer.com";
|
||||||
private List<Integer> entrySelection = new ArrayList<Integer>(Arrays.asList( 71263 /*72048, 60984 /*48147 /* 58443/*, 53787, 32427, 71725, 63080*/ )); // 72048, 60984
|
private List<Integer> entrySelection = new ArrayList<Integer>(Arrays.asList( 56942 /*72048, 60984 /*48147 /* 58443/*, 53787, 32427, 71725, 63080*/ )); // 72048, 60984
|
||||||
|
|
||||||
static final String fileCache = "E:\\";
|
static final String fileCache = "E:\\";
|
||||||
|
|
||||||
@@ -598,7 +598,13 @@ public class MamMigrationSelective implements CommandLineRunner {
|
|||||||
|
|
||||||
log.debug("Attach uploaded file to " + reference.targetRecord);
|
log.debug("Attach uploaded file to " + reference.targetRecord);
|
||||||
HttpEntity<UploadFileRecord> httpEntity = new HttpEntity<UploadFileRecord>(fileRecord, adamHeaders);
|
HttpEntity<UploadFileRecord> httpEntity = new HttpEntity<UploadFileRecord>(fileRecord, adamHeaders);
|
||||||
restTemplate.exchange(Definitions.adamHost + reference.targetRecord, HttpMethod.PUT, httpEntity, UploadFileRecord.class);
|
|
||||||
|
// TODO HIER GEHT'S WEITER - mal mit Browser testen
|
||||||
|
// TODO E:\56942 wieder herstellen
|
||||||
|
Void response = restTemplate.exchange(Definitions.adamHost + reference.targetRecord, HttpMethod.PUT, httpEntity, Void.class).getBody();
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
log.debug("Response: " + response);
|
||||||
|
|
||||||
processedReferences.add(reference);
|
processedReferences.add(reference);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user