Skip to content

Commit

Permalink
added keywords to facility and equipments
Browse files Browse the repository at this point in the history
  • Loading branch information
vvalerio-priv committed May 8, 2024
1 parent e6b3d1b commit b9c275d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ && isAlreadyPublished(EDMEquipment.class, "equipment.findByUidAndState", em, epo
edmObject.setDescription(eposDataModelObject.getDescription());
edmObject.setDynamicrange(eposDataModelObject.getDynamicRange());
edmObject.setFilter(eposDataModelObject.getFilter());
edmObject.setKeywords(eposDataModelObject.getKeywords());

if (eposDataModelObject.getIsPartOf() != null) {
if(edmObject.getEquipmentFacilitiesByInstanceId()!=null)
Expand Down Expand Up @@ -438,6 +439,7 @@ protected Equipment mapFromDB(Object edmObject) {
o.setOrientation(edm.getOrientation());
o.setSamplePeriod(edm.getSampleperiod());
o.setSerialNumber(edm.getSerialnumber());
o.addKeywords(edm.getKeywords());
o.setSpatialExtent(
edm.getEquipmentSpatialsByInstanceId() != null ?
new ArrayList<>(edm.getEquipmentSpatialsByInstanceId().stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ && isAlreadyPublished(EDMFacility.class, "facility.findByUidAndState", em, eposD
}

edmObject.setDescription(eposDataModelObject.getDescription());
edmObject.setKeywords(eposDataModelObject.getKeywords());

if (eposDataModelObject.getIsPartOf() != null) {
if(edmObject.getFacilityFacilitiesByInstanceId()!=null)
Expand Down Expand Up @@ -434,7 +435,7 @@ protected Facility mapFromDB(Object edmObject) {
.entityType("ContactPoint")));
}
o.setDescription(edm.getDescription());

o.addKeywords(edm.getKeywords());
if (edm.getFacilityFacilitiesByInstanceId() != null) {
o.setIsPartOf(new LinkedList<>());
edm.getFacilityFacilitiesByInstanceId().stream()
Expand Down

0 comments on commit b9c275d

Please sign in to comment.