+
Device Overview - Digital Display
+ {{#defineZone "device-detail-properties"}}
+
+
+ Device | {{device.viewModel.vendor}} {{device.properties.model}} |
+ Model | {{device.viewModel.model}} |
+ IMEI | {{device.viewModel.imei}} |
+ {{#if device.viewModel.udid}}
+ UDID | {{device.viewModel.udid}} |
+ {{/if}}
+ {{#if device.viewModel.phoneNumber}}
+ Phone Number | {{device.viewModel.phoneNumber}} |
+ {{/if}}
+
+ Status |
+
+ {{#equal device.status "ACTIVE"}} Active{{/equal}}
+ {{#equal device.status "INACTIVE"}} Inactive{{/equal}}
+ {{#equal device.status "BLOCKED"}} Blocked{{/equal}}
+ {{#equal device.status "REMOVED"}} Removed{{/equal}}
+ |
+
+
+
+ {{/defineZone}}
+
Operations
+
+ {{unit "cdmf.unit.device.iot-operation" deviceType=device.type}}
+
+
+
\ No newline at end of file
diff --git a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggerryapps/devicemgt/app/units/iot.unit.device.digitaldisplay-overview/digitaldisplay-overview.js b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggerryapps/devicemgt/app/units/iot.unit.device.digitaldisplay-overview/digitaldisplay-overview.js
new file mode 100644
index 0000000000..b9bffdecd8
--- /dev/null
+++ b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggerryapps/devicemgt/app/units/iot.unit.device.digitaldisplay-overview/digitaldisplay-overview.js
@@ -0,0 +1,25 @@
+function onRequest (context) {
+ var log = new Log("detail.js");
+ var deviceType = request.getParameter("type");
+ var deviceId = request.getParameter("id");
+
+ if (deviceType != null && deviceType != undefined && deviceId != null && deviceId != undefined) {
+ var deviceModule = require("/modules/device.js").deviceModule;
+ var device = deviceModule.viewDevice(deviceType, deviceId);
+
+ if (device) {
+ var viewModel = {};
+ var deviceInfo = device.properties.DEVICE_INFO;
+ if (deviceInfo != undefined && String(deviceInfo.toString()).length > 0) {
+ deviceInfo = parse(stringify(deviceInfo));
+ viewModel.system = device.properties.IMEI;
+ viewModel.machine = "Digital Display";
+ viewModel.vendor = device.properties.VENDOR;
+ }
+ device.viewModel = viewModel;
+ }
+ context.device = device;
+
+ return context;
+ }
+}
\ No newline at end of file
diff --git a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggerryapps/devicemgt/app/units/iot.unit.device.digitaldisplay-overview/digitaldisplay-overview.json b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggerryapps/devicemgt/app/units/iot.unit.device.digitaldisplay-overview/digitaldisplay-overview.json
new file mode 100644
index 0000000000..688e939808
--- /dev/null
+++ b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggerryapps/devicemgt/app/units/iot.unit.device.digitaldisplay-overview/digitaldisplay-overview.json
@@ -0,0 +1,3 @@
+{
+ "version": "1.0.0"
+}
\ No newline at end of file
diff --git a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/p2.inf b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/p2.inf
new file mode 100644
index 0000000000..3cd8cd0fb9
--- /dev/null
+++ b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/p2.inf
@@ -0,0 +1,9 @@
+instructions.configure = \
+org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\
+org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/webapps/,target:${installFolder}/../../deployment/server/webapps/,overwrite:true);\
+org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../resources/sketches/);\
+org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../resources/sketches/digitaldisplay/);\
+org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/agent/,target:${installFolder}/../../resources/sketches/digitaldisplay/,overwrite:true);\
+org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/dbscripts/,target:${installFolder}/../../../dbscripts/cdm/plugins/digitaldisplay,overwrite:true);\
+org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/jaggeryapps/);\
+org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/jaggerryapps/,target:${installFolder}/../../deployment/server/jaggeryapps/,overwrite:true);\
diff --git a/features/device-mgt-iot-digitaldisplay-feature/pom.xml b/features/device-mgt-iot-digitaldisplay-feature/pom.xml
new file mode 100644
index 0000000000..a06cd450ef
--- /dev/null
+++ b/features/device-mgt-iot-digitaldisplay-feature/pom.xml
@@ -0,0 +1,24 @@
+
+