Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Added new AttributeTypes (status and tags)

Rich Turnerd64c09aabc8d
diff --git a/model/src/main/java/org/openremote/model/attribute/AttributeType.java b/model/src/main/java/org/openremote/model/attribute/AttributeType.java
index 2cc053f4b..2d934efec 100644
--- a/model/src/main/java/org/openremote/model/attribute/AttributeType.java
+++ b/model/src/main/java/org/openremote/model/attribute/AttributeType.java
@@ -73,7 +73,13 @@ public enum AttributeType implements AttributeDescriptor {
ASSET_META_NAMESPACE + ":assetStatusColors",
new Access(true, false, true),
false,
- null));
+ null)),
+
+ TAGS(
+ "tags", AttributeValueType.ARRAY,
+ LABEL.withInitialValue(Values.create("Asset Tags")),
+ DESCRIPTION.withInitialValue(Values.create("List of tags associated with an asset"))
+ );
final protected String attributeName;
final protected AttributeValueDescriptor valueDescriptor;