diff --git a/pom.xml b/pom.xml index f1675b2..a1a1820 100644 --- a/pom.xml +++ b/pom.xml @@ -14,25 +14,24 @@ UTF-8 - 17 - 17 de.fraunhofer.iosb.ilt.sensorthingsmanager.MainApp - 3.11.0 + 3.12.1 3.1.1 3.0.1 3.5.0 0.0.8 1.6.13 - 2.5.3 + 3.0.1 3.2.1 - 2.11.0 - 3.12.0 + 2.15.1 + 3.14.0 0.34 - 1.4.6 - 19.0.2.1 - 2.2-SNAPSHOT + 1.4.14 + 21.0.1 + 2.6-SNAPSHOT + 17 diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/AggregateCombo.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/AggregateCombo.java index 9365acf..103a39c 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/AggregateCombo.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/AggregateCombo.java @@ -22,22 +22,18 @@ import de.fraunhofer.iosb.ilt.frostclient.model.Entity; import de.fraunhofer.iosb.ilt.frostclient.model.EntitySet; import de.fraunhofer.iosb.ilt.frostclient.model.EntityType; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.TimeInterval; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.TimeValue; import de.fraunhofer.iosb.ilt.frostclient.model.property.NavigationPropertyEntitySet; import de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11; import de.fraunhofer.iosb.ilt.frostclient.models.ext.MapValue; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.TimeInterval; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.TimeValue; import static de.fraunhofer.iosb.ilt.frostclient.utils.ParserUtils.formatKeyValuesForUrl; import java.time.DateTimeException; import java.time.Instant; -import java.time.ZoneId; -import java.time.ZonedDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.Map; import java.util.Objects; -import net.time4j.ClockUnit; import net.time4j.Moment; import net.time4j.ZonalDateTime; import net.time4j.tz.TZID; diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/ControllerAggManager.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/ControllerAggManager.java index da24986..1730189 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/ControllerAggManager.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/ControllerAggManager.java @@ -21,14 +21,14 @@ import de.fraunhofer.iosb.ilt.frostclient.SensorThingsService; import de.fraunhofer.iosb.ilt.frostclient.exception.ServiceFailureException; import de.fraunhofer.iosb.ilt.frostclient.model.Entity; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.TimeValue; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.UnitOfMeasurement; import de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsMultiDatastreamV11; import de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11; import static de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11.EP_DESCRIPTION; import static de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11.EP_PHENOMENONTIME; import static de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11.EP_UNITOFMEASUREMENT; import de.fraunhofer.iosb.ilt.frostclient.models.ext.MapValue; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.TimeValue; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.UnitOfMeasurement; import de.fraunhofer.iosb.ilt.frostclient.utils.CollectionsHelper; import de.fraunhofer.iosb.ilt.frostclient.utils.ParserUtils; import de.fraunhofer.iosb.ilt.sensorthingsmanager.utils.ButtonTableCell; diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/SensorThingsUtils.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/SensorThingsUtils.java index b0c2d44..49bda43 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/SensorThingsUtils.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/SensorThingsUtils.java @@ -20,7 +20,6 @@ import de.fraunhofer.iosb.ilt.frostclient.exception.ServiceFailureException; import de.fraunhofer.iosb.ilt.frostclient.model.Entity; import de.fraunhofer.iosb.ilt.frostclient.model.EntitySet; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.UnitOfMeasurement; import de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsMultiDatastreamV11; import de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11; import static de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11.EP_DEFINITION; @@ -28,6 +27,7 @@ import static de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11.EP_NAME; import static de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11.EP_PROPERTIES; import de.fraunhofer.iosb.ilt.frostclient.models.ext.MapValue; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.UnitOfMeasurement; import de.fraunhofer.iosb.ilt.frostclient.query.Query; import de.fraunhofer.iosb.ilt.frostclient.utils.StringHelper; import java.util.ArrayList; diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/Utils.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/Utils.java index a427bdd..d229115 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/Utils.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/aggregation/Utils.java @@ -17,9 +17,9 @@ package de.fraunhofer.iosb.ilt.sensorthingsmanager.aggregation; import de.fraunhofer.iosb.ilt.frostclient.model.Entity; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.TimeValue; -import de.fraunhofer.iosb.ilt.frostclient.model.ext.UnitOfMeasurement; import de.fraunhofer.iosb.ilt.frostclient.models.SensorThingsSensingV11; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.TimeValue; +import de.fraunhofer.iosb.ilt.frostclient.models.ext.UnitOfMeasurement; import java.nio.charset.Charset; import java.util.regex.Pattern; import net.time4j.Moment; diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/ControllerServer.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/ControllerServer.java index c07eaaf..4051e86 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/ControllerServer.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/ControllerServer.java @@ -80,7 +80,7 @@ public void setServerEntry(Server entry) { if (et.getProperty(SensorThingsSensingV11.NAME_NAME) != null) { orderBy = "name asc"; } - addTabFor(et.plural, orderBy, service.query(et)); + addTabFor(et.mainContainer, orderBy, service.query(et)); } if (service.hasModel(SensorThingsMultiDatastreamV11.class)) { diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/EntityGuiController.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/EntityGuiController.java index 8dc1a4e..285f508 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/EntityGuiController.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsmanager/controller/EntityGuiController.java @@ -3,14 +3,15 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import de.fraunhofer.iosb.ilt.frostclient.SensorThingsService; +import de.fraunhofer.iosb.ilt.frostclient.model.ComplexValue; import de.fraunhofer.iosb.ilt.frostclient.model.Entity; import de.fraunhofer.iosb.ilt.frostclient.model.EntityType; +import de.fraunhofer.iosb.ilt.frostclient.model.Property; import de.fraunhofer.iosb.ilt.frostclient.model.PropertyType; +import de.fraunhofer.iosb.ilt.frostclient.model.property.EntityProperty; import de.fraunhofer.iosb.ilt.frostclient.model.property.EntityPropertyMain; import de.fraunhofer.iosb.ilt.frostclient.model.property.NavigationProperty; import de.fraunhofer.iosb.ilt.frostclient.model.property.NavigationPropertyEntitySet; -import de.fraunhofer.iosb.ilt.frostclient.model.ComplexValue; -import de.fraunhofer.iosb.ilt.frostclient.model.property.EntityProperty; import de.fraunhofer.iosb.ilt.frostclient.model.property.type.TypeComplex; import de.fraunhofer.iosb.ilt.frostclient.model.property.type.TypePrimitive; import static de.fraunhofer.iosb.ilt.frostclient.model.property.type.TypePrimitive.EDM_STRING_NAME; @@ -217,9 +218,11 @@ public GuiGlueComplex init(String namePrefix, GridPane gridProperties, AtomicInt value = ptc.instantiate(); entity.setProperty(property, value); } - for (EntityProperty subProperty : ptc.getProperties()) { - PropertyGuiGlue subItem = PropertyGuiGlue.createGuiElement(value, subProperty, editable, gridProperties, itemCount); - subProperties.put(subProperty.getJsonName(), subItem); + for (Property subProperty : ptc.getProperties()) { + if (subProperty instanceof EntityProperty ep) { + PropertyGuiGlue subItem = PropertyGuiGlue.createGuiElement(value, ep, editable, gridProperties, itemCount); + subProperties.put(subProperty.getJsonName(), subItem); + } } } return this;