entity Entry
This commit is contained in:
@@ -69,8 +69,8 @@ public class MediaAssistantMigrationSimple {
|
|||||||
headers.add("From", "migration@bayer.com");
|
headers.add("From", "migration@bayer.com");
|
||||||
headers.add("Content-Type", "application/json");
|
headers.add("Content-Type", "application/json");
|
||||||
entity = new HttpEntity<String>("Parameters", headers);
|
entity = new HttpEntity<String>("Parameters", headers);
|
||||||
ResponseEntity<Entry> r2 = restTemplate.exchange("https://qa.service.media-assistant.animalhealth.bayer.com/rest/migration/entry/204", HttpMethod.GET, entity, Entry.class);
|
ResponseEntity<Entry> r2 = restTemplate.exchange("https://service.media-assistant.animalhealth.bayer.com/rest/migration/entry/71948", HttpMethod.GET, entity, Entry.class);
|
||||||
log.info(r2.getBody().toString());
|
log.info(r2.toString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,50 +1,128 @@
|
|||||||
package com.bayer.edam.migration.mam;
|
package com.bayer.edam.migration.mam;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public class Entry {
|
public class Entry {
|
||||||
|
|
||||||
|
public static class MediaType {
|
||||||
|
public Long id;
|
||||||
|
public Map<String, String> name;
|
||||||
|
|
||||||
|
public MediaType() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Copyright {
|
||||||
|
public String use;
|
||||||
|
public String time;
|
||||||
|
public String regionalLicenseComment;
|
||||||
|
public String personalLicenseComment;
|
||||||
|
public String validFrom;
|
||||||
|
public String validTo;
|
||||||
|
public Map<String, String> organization;
|
||||||
|
public Boolean releasedForJournalists;
|
||||||
|
public Boolean usageInternal;
|
||||||
|
public Boolean usageExternal;
|
||||||
|
public Boolean usagePrint;
|
||||||
|
public Boolean usageOnline;
|
||||||
|
public Boolean usageAudio;
|
||||||
|
public Boolean usageVideo;
|
||||||
|
public Boolean regionalLicense;
|
||||||
|
public Boolean personalLicense;
|
||||||
|
|
||||||
|
public Copyright() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Download {
|
||||||
|
public Long id;
|
||||||
|
public String href;
|
||||||
|
public String mimeType;
|
||||||
|
public Integer contentSuperTypeId;
|
||||||
|
public Long size;
|
||||||
|
public String entryFileVariation;
|
||||||
|
public String watermarkVariation;
|
||||||
|
public Map<String, String> description;
|
||||||
|
public String fileName;
|
||||||
|
public String fileNameOnDisc;
|
||||||
|
|
||||||
|
public Download() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private Long id;
|
public static class FileFolder {
|
||||||
private String href;
|
public Long id;
|
||||||
private Long fileSize;
|
public String href;
|
||||||
private String fileName;
|
public String mimeType;
|
||||||
|
public Integer contentSuperTypeId;
|
||||||
|
public Long size;
|
||||||
|
public String entryFileVariation;
|
||||||
|
public String watermarkVariation;
|
||||||
|
public Map<String, String> description;
|
||||||
|
public String fileName;
|
||||||
|
public String fileNameOnDisc;
|
||||||
|
|
||||||
|
public FileFolder() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// public class Download {
|
||||||
|
// public Long id;
|
||||||
|
// public String href;
|
||||||
|
// public String mimeType;
|
||||||
|
// public Integer contentSuperTypeId;
|
||||||
|
// public Long size;
|
||||||
|
// public String entryFileVariation;
|
||||||
|
// public String watermarkVariation;
|
||||||
|
// public Map<String, String> description;
|
||||||
|
// public String fileName;
|
||||||
|
// public String fileNameOnDisc;
|
||||||
|
//// public String duration;
|
||||||
|
//
|
||||||
|
// public Download() {
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
public Long id;
|
||||||
|
public String href;
|
||||||
|
public Long fileSize;
|
||||||
|
public String fileName;
|
||||||
|
public Date creationDate;
|
||||||
|
public Date uploadDate;
|
||||||
|
public Map<String, String> name;
|
||||||
|
public Map<String, String> keyword;
|
||||||
|
public Map<String, String> description;
|
||||||
|
public Map<String, String> comment;
|
||||||
|
public Map<String, String> user;
|
||||||
|
public Map<String, String> uploader;
|
||||||
|
public String indexer;
|
||||||
|
public Double ratingValue;
|
||||||
|
public Map<String, String> release;
|
||||||
|
public String brandingNet;
|
||||||
|
public MediaType mediaType;
|
||||||
|
public Copyright copyright;
|
||||||
|
public String master;
|
||||||
|
public Map<String, String> project;
|
||||||
|
public String imageType;
|
||||||
|
// public String gpc;
|
||||||
|
public String mediaAssistantId;
|
||||||
|
public Map<String, String> metaData;
|
||||||
|
public List<String> categories;
|
||||||
|
public Integer stateId;
|
||||||
|
public Integer contentSuperTypeId;
|
||||||
|
public List<Download> downloadList;
|
||||||
|
public List<FileFolder> downloadListFileFolder;
|
||||||
|
|
||||||
public Entry() {
|
public Entry() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getHref() {
|
|
||||||
return href;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHref(String href) {
|
|
||||||
this.href = href;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getFileSize() {
|
|
||||||
return fileSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFileSize(Long fileSize) {
|
|
||||||
this.fileSize = fileSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFileName() {
|
|
||||||
return fileName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFileName(String fileName) {
|
|
||||||
this.fileName = fileName;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Entry{" + "id=" + id + ", fileName=" + fileName + '}';
|
return "Entry{" + "id=" + id + ", fileName=" + fileName + ", creationDate=" + creationDate + ", name="
|
||||||
|
+ name.get("en") + ", user=" + user.get("id") + ", copyright.organization.id=" + copyright.organization.get("id") + '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user