Update digital display related files

NuwanSameera 9 years ago
parent 9f294b24e4
commit 6c85ada9ac

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<DeviceTypeConfigurations type="digitaldisplay">
<DatasourceName>jdbc/DigitalDisplayDM_DB</DatasourceName>
</DeviceTypeConfigurations>

@ -0,0 +1,46 @@
<!--
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration">
<providers>
<provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider>
</providers>
<datasources>
<datasource>
<name>DigitalDisplayDM_DB</name>
<description>The datasource used for the Digital Display database</description>
<jndiConfig>
<name>jdbc/DigitalDisplayDM_DB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:h2:repository/database/DigitalDisplayDM_DB;DB_CLOSE_ON_EXIT=FALSE
</url>
<username>wso2carbon</username>
<password>wso2carbon</password>
<driverClassName>org.h2.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
</configuration>
</definition>
</datasource>
</datasources>
</datasources-configuration>

@ -1,6 +1,8 @@
{
"deviceType": {
"displayName": "digital display",
"category" : "iot"
"label": "Digital Display",
"category": "iot",
"downloadAgentUri": "http://localhost:9763/digital_display/manager/device/device_display/download"
}
}

@ -6,6 +6,6 @@ org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../reso
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);\
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../conf/devicetype-conf/);\
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/configs/,target:${installFolder}/../../conf/devicetype-conf/,overwrite:true);\
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/jaggeryapps/,target:${installFolder}/../../deployment/server/jaggeryapps/,overwrite:true);\
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../conf/datasources/devicemgt/);\
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.iot.digitaldisplay_${feature.version}/datasources/,target:${installFolder}/../../conf/datasources/devicemgt,overwrite:true);\

@ -8,4 +8,7 @@
<IotDeviceTypeConfig type="android_sense">
<DatasourceName>jdbc/AndroidSenseDM_DB</DatasourceName>
</IotDeviceTypeConfig>
<IotDeviceTypeConfigurations type="digitaldisplay">
<DatasourceName>jdbc/DigitalDisplayDM_DB</DatasourceName>
</IotDeviceTypeConfigurations>
</IoTDeviceTypeConfigManager>

@ -35,20 +35,6 @@ var operationModule = function () {
switch (deviceType) {
case "virtual_firealarm":
return [{name: "Alarm Status", description: "0:off 1:on", operation: "bulb"}];
case "digital_display":
return [
{name: "Restart Browser", description: "0:faild 1:sucess", operation: "bulb"},
{name: "Close Browser", description: "0:faild 1:sucess"},
{name: "Terminate Display", description: "0:faild 1:sucess"},
{name: "Restart Display", description: "0:faild 1:sucess"},
{name: "Edit Content", description: "0:faild 1:sucess"},
{name: "Add New Resource", description: "0:faild 1:sucess"},
{name: "Remove Resource", description: "0:faild 1:sucess"},
{name: "Remove Directory", description: "0:faild 1:sucess"},
{name: "Remove Content", description: "0:faild 1:sucess"},
{name: "Shutdown Display", description: "0:faild 1:sucess"}
];
default:
return [];
}

Loading…
Cancel
Save