Added changes required to initialise sample devices

application-manager-new
Shabir Mohamed 9 years ago
parent 3f678d9096
commit a9ee964a07

@ -455,7 +455,6 @@
<fileset dir="src/repository/conf/datasources"/>
<!-- Copy master-datasources.xml and cdm-datasources.xml to target -->
</copy>
<!--<copy todir="target/wso2carbon-core-${carbon.kernel.version}/modules" overwrite="true">
<fileset dir="src/repository/modules"></fileset>
</copy>

@ -458,6 +458,15 @@
</includes>
</fileSet>
<!--============ Added with ES Features ===============-->
<!--Copies publisher specific config files that needs to be overriden for the CDMF-STORE. -->
<!--These files are already provided in the CDMF-Store feature too. -->
<!--However, given that the order of feature installation cannot be controlled, they are recopied at the product level.-->
<fileSet>
<directory>src/publisher/config</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/publisher/config</outputDirectory>
</fileSet>
<!--========================================================================================================-->
<!-- End of Enterprise Store Features -->

@ -0,0 +1,68 @@
{
"roles": {
"Internal/publisher": {
"/permission/admin/login": ["ui.execute"]
},
"Internal/reviewer": {
"/permission/admin/login": ["ui.execute"]
}
},
"user": {
"username": "admin",
"password": "admin"
},
"application": {
"landingPage": "/assets/gadget/list"
},
"features": {
"assetTypesHotDelploy": {
"enabled": false
}
},
"assets":["gadget","site", "device"],
"disabledAssets":[],
"userRoles": ["Internal/publisher"],
"permissions": {
"login": {
"/permission/admin/login": ["ui.execute"]
}
},
"userSpace": "/_system/governance/users",
"accessible": [{
"context": "/_system/governance",
"collections": ["gadgets", "sites", "ebooks", "devices"],
"actions": ["http://www.wso2.org/projects/registry/actions/get", "http://www.wso2.org/projects/registry/actions/add", "http://www.wso2.org/projects/registry/actions/delete", "authorize"]
}],
"app": {
"RXT_MANAGER": "rxt_manager",
"ROUTE_MANAGER": "route_manager",
"MODEL_MANAGER": "model_manager"
},
"paths": {
"ASSET_EXT_PATH": "/assets",
"ASSET_DEFAULT_PATH": "/assets/default",
"ASSETS_EXT_PATH": "/assets",
"ASSETS_DEFAULT_PATH": "/assets/default",
"RXT_EXTENSION_PATH": "/config/ext/"
},
"urls": {
"ASSET": "/asset",
"ASSETS": "/assets"
},
"defaultAssets": {
"root": "/samples/assets",
"assetData": [{
"type": "gadgets",
"ignore": ["agricultural-land", "intro-gadget-1", "intro-gadget-2", "gadget-template-explorer", "gadget-explorer", "co2-emission", "electric-power", "energy-use", "greenhouse-gas"]
}, {
"type": "ebooks"
}, {
"type": "sites"
}, {
"type": "devices"
}]
},
"router": {
"RENDERER": "/modules/router.caramel-renderer.js"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

@ -0,0 +1,18 @@
{
"name": "Arduino",
"tags": "WSO2, IoT, Arduino, ArduinoUno",
"rate": 3,
"attributes": {
"overview_status": "PUBLISHED",
"overview_provider": "admin",
"overview_name": "Arduino",
"overview_version": "1.0.0",
"overview_board": "Arduino",
"overview_url": "https://204.232.188.214:9443/iotserver/devices/arduino",
"overview_model": "Arduino Uno",
"overview_defaultOs": "Cross-Platform",
"overview_description": "This is a bare-board Arduino Device-Type. The board used here is Arduino Uno.",
"images_thumbnail": "/arduino/arduino_thumbnail.png",
"images_banner": "/arduino/arduino_banner.png"
}
}

@ -65,6 +65,11 @@
<copy toDir="${target.sketch.dir}/${sample_type}">
<fileset dir="sketch"/>
</copy>
<mkdir dir="${target.sample.device.dir}/${sample_type}"/>
<copy toDir="${target.sample.device.dir}/${sample_type}">
<fileset dir="artifact/"/>
</copy>
<copy file="src/${package}.service.impl/target/${sample_type}.war" toDir="${target.webapp.dir}" overwrite="yes"/>
<copy file="src/${package}.plugin.impl/target/${package}.plugin.impl-${target.version}.jar" toDir="${target.dropins.dir}" overwrite="yes"/>
<copy file="page/${sample_type}.hbs" toDir="${target.page.dir}" overwrite="yes"/>

@ -6,6 +6,7 @@
<property name="target.dropins.dir" value="../../repository/components/dropins"/>
<property name="target.webapp.dir" value="../../repository/deployment/server/webapps"/>
<property name="target.sketch.dir" value="../../repository/resources/sketches"/>
<property name="target.sample.device.dir" value="../../repository/deployment/server/jaggeryapps/publisher/samples/assets/devices"/>
<property name="target.page.dir" value="../../repository/deployment/server/jaggeryapps/iotserver/pages/devices"/>
<property name="target.unit.dir" value="../../repository/deployment/server/jaggeryapps/iotserver/units"/>
<property name="target.version" value="1.0.0-SNAPSHOT"/>

@ -0,0 +1,18 @@
{
"name": "Raspberry Pi",
"tags": "WSO2, IoT, RaspberryPi, RaspberryPi-B Plus",
"rate": 3,
"attributes": {
"overview_status": "PUBLISHED",
"overview_provider": "admin",
"overview_name": "Raspberry Pi",
"overview_version": "1.0.0",
"overview_board": "RaspberryPi",
"overview_url": "https://204.232.188.214:9443/iotserver/devices/raspberrypi",
"overview_model": "RaspberryPi B+",
"overview_defaultOs": "Cross-Platform",
"overview_description": "This is a bare-board Raspberry Pi Device-Type. The board used here is RPi B+.",
"images_thumbnail": "/raspberrypi/raspberryPi_thumbnail.png",
"images_banner": "/raspberrypi/raspberryPi_banner.png"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

@ -65,6 +65,11 @@
<copy toDir="${target.sketch.dir}/${sample_type}">
<fileset dir="sketch"/>
</copy>
<mkdir dir="${target.sample.device.dir}/${sample_type}"/>
<copy toDir="${target.sample.device.dir}/${sample_type}">
<fileset dir="artifact/"/>
</copy>
<copy file="src/${package}.service.impl/target/${sample_type}.war" toDir="${target.webapp.dir}" overwrite="yes"/>
<copy file="src/${package}.plugin.impl/target/${package}.plugin.impl-${target.version}.jar" toDir="${target.dropins.dir}" overwrite="yes"/>
<copy file="page/${sample_type}.hbs" toDir="${target.page.dir}" overwrite="yes"/>

Loading…
Cancel
Save