100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Minor
Christian Bauere6226db99645
diff --git a/agent/src/main/java/org/openremote/agent/protocol/ProtocolAssetService.java b/agent/src/main/java/org/openremote/agent/protocol/ProtocolAssetService.javaindex e850adfdc..5cbd628bd 100644--- a/agent/src/main/java/org/openremote/agent/protocol/ProtocolAssetService.java+++ b/agent/src/main/java/org/openremote/agent/protocol/ProtocolAssetService.java@@ -48,6 +48,10 @@ public interface ProtocolAssetService extends ContainerService {this(null, ignoredAttributeNames, ignoredAttributeKeys);}+ public MergeOptions(String assignToUserName, Predicate<String> ignoredAttributeKeys) {+ this(assignToUserName, null, ignoredAttributeKeys);+ }+public MergeOptions(String assignToUserName, Predicate<String> ignoredAttributeNames, Predicate<String> ignoredAttributeKeys) {this.assignToUserName = assignToUserName;this.ignoredAttributeNames = ignoredAttributeNames;diff --git a/manager/server/src/main/resources/logging.properties b/manager/server/src/main/resources/logging.propertiesindex 27b468b4d..b8ef5703f 100644--- a/manager/server/src/main/resources/logging.properties+++ b/manager/server/src/main/resources/logging.properties@@ -39,3 +39,8 @@ org.apache.http.impl.conn.DefaultClientConnection.level=WARNING# Set this to FINEST to log SQL executionorg.hibernate.SQL.level=WARNINGorg.hibernate.type.descriptor.sql.BasicBinder.level=WARNING++# Log only attribute event processing begin/end, useful to debug many events+#org.openremote.container.web.level=INFO+#org.openremote.manager.server.level=INFO+#org.openremote.manager.server.asset.AssetProcessingService.level=FINEdiff --git a/model/src/main/java/org/openremote/model/value/ArrayValue.java b/model/src/main/java/org/openremote/model/value/ArrayValue.javaindex d23d66d2b..5c4551841 100644--- a/model/src/main/java/org/openremote/model/value/ArrayValue.java+++ b/model/src/main/java/org/openremote/model/value/ArrayValue.java@@ -61,4 +61,6 @@ public interface ArrayValue extends Value {boolean contains(String string);boolean contains(double number);++ int indexOf(String string);}diff --git a/model/src/main/java/org/openremote/model/value/impl/ArrayValueImpl.java b/model/src/main/java/org/openremote/model/value/impl/ArrayValueImpl.javaindex 262e2377d..e53303fbb 100644--- a/model/src/main/java/org/openremote/model/value/impl/ArrayValueImpl.java+++ b/model/src/main/java/org/openremote/model/value/impl/ArrayValueImpl.java@@ -172,6 +172,11 @@ public class ArrayValueImpl extends ValueImpl implements ArrayValue {return values.contains(factory.create(number));}+ @Override+ public int indexOf(String string) {+ return values.indexOf(factory.create(string));+ }+@Overridepublic String toJson() throws ValueException {return ValueUtil.stringify(this);