Skip to content
Snippets Groups Projects
Commit 72a1a335 authored by kaloyane's avatar kaloyane
Browse files

[LMS-2500] add type to WellMetadata

SVN: 22953
parent 6e781f78
No related branches found
No related tags found
No related merge requests found
...@@ -926,7 +926,8 @@ public class ScreeningApiImpl ...@@ -926,7 +926,8 @@ public class ScreeningApiImpl
Map<String, String> properties = EntityHelper.convertToStringMap(well.getProperties()); Map<String, String> properties = EntityHelper.convertToStringMap(well.getProperties());
Map<String, Material> materialProperties = Map<String, Material> materialProperties =
convertMaterialProperties(well.getProperties(), materialsCache); convertMaterialProperties(well.getProperties(), materialsCache);
return new WellMetadata(plateIdentifier, well.getCode(), well.getPermId(), wellPosition, return new WellMetadata(plateIdentifier, well.getCode(), well.getPermId(), well
.getSampleType().getCode(), wellPosition,
properties, materialProperties); properties, materialProperties);
} }
......
...@@ -32,16 +32,19 @@ public class WellMetadata extends WellIdentifier ...@@ -32,16 +32,19 @@ public class WellMetadata extends WellIdentifier
private final String code; private final String code;
private final String type;
private final Map<String, String> properties; private final Map<String, String> properties;
private final Map<String, Material> materialProperties; private final Map<String, Material> materialProperties;
public WellMetadata(PlateIdentifier plateIdentifier, String code, String permId, public WellMetadata(PlateIdentifier plateIdentifier, String code, String permId, String type,
WellPosition wellPosition, Map<String, String> properties, WellPosition wellPosition, Map<String, String> properties,
Map<String, Material> materialProperties) Map<String, Material> materialProperties)
{ {
super(plateIdentifier, wellPosition, permId); super(plateIdentifier, wellPosition, permId);
this.code = code; this.code = code;
this.type = type;
this.properties = new HashMap<String, String>(properties); this.properties = new HashMap<String, String>(properties);
this.materialProperties = new HashMap<String, Material>(materialProperties); this.materialProperties = new HashMap<String, Material>(materialProperties);
} }
...@@ -106,4 +109,9 @@ public class WellMetadata extends WellIdentifier ...@@ -106,4 +109,9 @@ public class WellMetadata extends WellIdentifier
return true; return true;
} }
public String getType()
{
return type;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment