update External Refence
This commit is contained in:
parent
fe7d6f59b1
commit
3b9b348d4d
|
@ -15,10 +15,7 @@ public class ExternalReference {
|
|||
|
||||
private String id;
|
||||
private String name;
|
||||
private String abbreviation;
|
||||
private String pid;
|
||||
private String originalId;
|
||||
private String key;
|
||||
private String pidTypeField;
|
||||
private String uri;
|
||||
private String description;
|
||||
|
@ -31,22 +28,6 @@ public class ExternalReference {
|
|||
private String lastName;
|
||||
private String tag;
|
||||
|
||||
public String getOriginalId() {
|
||||
return originalId;
|
||||
}
|
||||
|
||||
public void setOriginalId(String originalId) {
|
||||
this.originalId = originalId;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -159,24 +140,13 @@ public class ExternalReference {
|
|||
this.tag = tag;
|
||||
}
|
||||
|
||||
public String getAbbreviation() {
|
||||
return abbreviation;
|
||||
}
|
||||
|
||||
public void setAbbreviation(String abbreviation) {
|
||||
this.abbreviation = abbreviation;
|
||||
}
|
||||
|
||||
public static ExternalReference fromRemoteModel(Map<String, String> data) {
|
||||
ExternalReference externalReference = new ExternalReference();
|
||||
if (data == null) return externalReference;
|
||||
|
||||
externalReference.setId(data.getOrDefault("id", null));
|
||||
externalReference.setName(data.getOrDefault("name", null));
|
||||
externalReference.setAbbreviation(data.getOrDefault("abbreviation", null));
|
||||
externalReference.setPid(data.getOrDefault("pid", null));
|
||||
externalReference.setOriginalId(data.getOrDefault("originalId", null));
|
||||
externalReference.setKey(data.getOrDefault("key", null));
|
||||
externalReference.setPidTypeField(data.getOrDefault("pidTypeField", null));
|
||||
externalReference.setUri(data.getOrDefault("uri", null));
|
||||
externalReference.setDescription(data.getOrDefault("description", null));
|
||||
|
@ -192,7 +162,7 @@ public class ExternalReference {
|
|||
}
|
||||
|
||||
public ExternalReference fromDataRepository(DataRepository entity) {
|
||||
this.setAbbreviation(entity.getAbbreviation());
|
||||
// this.setAbbreviation(entity.getAbbreviation());
|
||||
this.setName(entity.getLabel());
|
||||
this.setUri(entity.getUri());
|
||||
this.setId(entity.getId().toString());
|
||||
|
@ -208,7 +178,7 @@ public class ExternalReference {
|
|||
|
||||
public ExternalReference fromRegistry(Registry entity){
|
||||
this.id = entity.getId().toString();
|
||||
this.abbreviation = entity.getAbbreviation();
|
||||
// this.abbreviation = entity.getAbbreviation();
|
||||
// this.created = entity.getCreated();
|
||||
// this.label = entity.getLabel();
|
||||
this.name = entity.getLabel();
|
||||
|
@ -224,7 +194,7 @@ public class ExternalReference {
|
|||
return this;
|
||||
}
|
||||
public ExternalReference fromService(Service entity) {
|
||||
this.abbreviation = entity.getAbbreviation();
|
||||
// this.abbreviation = entity.getAbbreviation();
|
||||
// this.created = entity.getCreated();
|
||||
this.id = entity.getId().toString();
|
||||
// this.label = entity.getLabel();
|
||||
|
|
Loading…
Reference in New Issue