diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index b146f348..e45d239f 100755 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -323,7 +323,7 @@ - + ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/deployment/server/devicetypes @@ -571,15 +571,6 @@ - - ../scripts/mobile-qsg/target - - ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps - - - **/**.war - - @@ -662,6 +653,7 @@ */** + true @@ -1327,6 +1319,12 @@ true 644 + + src/core/resources/tenant/tenant-conf.json + ${pom.artifactId}-${pom.version}/repository/resources/tenant + true + 644 + @@ -1425,15 +1423,6 @@ true 644 - - - - ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/resources/devicetypes/org_wso2_carbon_device_mgt_cdmf_analytics-1.0.0.car - - ${pom.artifactId}-${pom.version}/repository/deployment/server/carbonapps/ - - 644 - src/core/conf/etc/webapp-publisher-config.xml @@ -1560,12 +1549,6 @@ ${pom.artifactId}-${pom.version}/samples/mobile-qsg - - ../scripts/mobile-qsg/target/org.wso2.carbon.appmgt.oauth.core-1.2.5.jar - - ${pom.artifactId}-${pom.version}/dropins - - ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/governance.xml diff --git a/modules/distribution/src/core/resources/tenant/tenant-conf.json b/modules/distribution/src/core/resources/tenant/tenant-conf.json new file mode 100644 index 00000000..b4bda265 --- /dev/null +++ b/modules/distribution/src/core/resources/tenant/tenant-conf.json @@ -0,0 +1,109 @@ +{ + "EnableMonetization" : false, + "IsUnlimitedTierPaid" : false, + "ExtensionHandlerPosition": "bottom", + "RESTAPIScopes": { + "Scope": [ + { + "Name": "apim:api_publish", + "Roles": "admin,Internal/publisher" + }, + { + "Name": "apim:api_create", + "Roles": "admin,Internal/creator" + }, + { + "Name": "apim:api_view", + "Roles": "admin,Internal/publisher,Internal/creator" + }, + { + "Name": "apim:subscribe", + "Roles": "admin,Internal/subscriber" + }, + { + "Name": "apim:tier_view", + "Roles": "admin,Internal/publisher,Internal/creator" + }, + { + "Name": "apim:tier_manage", + "Roles": "admin" + }, + { + "Name": "apim:bl_view", + "Roles": "admin" + }, + { + "Name": "apim:bl_manage", + "Roles": "admin" + }, + { + "Name": "apim:subscription_view", + "Roles": "admin,Internal/creator" + }, + { + "Name": "apim:subscription_block", + "Roles": "admin,Internal/creator" + }, + { + "Name": "apim:mediation_policy_view", + "Roles": "admin" + }, + { + "Name": "apim:mediation_policy_create", + "Roles": "admin" + }, + { + "Name": "apim:api_workflow", + "Roles": "admin" + }, + { + "Name": "appm:publish", + "Roles": "admin,Internal/publisher" + }, + { + "Name": "appm:read", + "Roles": "admin,Internal/creator,Internal/publisher,Internal/subscriber,Internal/store-admin,Internal/store" + }, + { + "Name": "appm:create", + "Roles": "admin,Internal/creator" + }, + { + "Name": "appm:subscribe", + "Roles": "admin,Internal/subscriber" + }, + { + "Name": "appm:update", + "Roles": "admin,Internal/creator" + }, + { + "Name": "appm:administration", + "Roles": "admin" + } + ] + }, + "NotificationsEnabled":"false", + "Notifications":[{ + "Type":"new_api_version", + "Notifiers" :[{ + "Class":"org.wso2.carbon.apimgt.impl.notification.NewAPIVersionEmailNotifier", + "ClaimsRetrieverImplClass":"org.wso2.carbon.apimgt.impl.token.DefaultClaimsRetriever", + "Title": "Version $2 of $1 Released", + "Template": "

We’re happy to announce the arrival of the next major version $2 of $1 API which is now available in Our API Store.

Click here to Visit WSO2 API Store" + }] + } + ], + "DefaultRoles" : { + "PublisherRole" : { + "CreateOnTenantLoad" : true, + "RoleName" : "Internal/publisher" + }, + "CreatorRole" : { + "CreateOnTenantLoad" : true, + "RoleName" : "Internal/creator" + }, + "SubscriberRole" : { + "CreateOnTenantLoad" : true + } + } +} \ No newline at end of file diff --git a/modules/p2-profile/iot-core-profile/pom.xml b/modules/p2-profile/iot-core-profile/pom.xml index 2cfb7463..00954e3b 100644 --- a/modules/p2-profile/iot-core-profile/pom.xml +++ b/modules/p2-profile/iot-core-profile/pom.xml @@ -176,6 +176,9 @@ org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.mobile.windows.feature:${carbon.device.mgt.plugin.version} + + org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.androidsense.feature:${carbon.device.mgt.plugin.version} + @@ -465,6 +468,15 @@ org.wso2.carbon.store:org.wso2.carbon.social.feature:${carbon.store.version} + + org.wso2.carbon.appmgt:org.wso2.carbon.appmgt.oauth.feature:${appmgt.feature.version} + + + org.wso2.carbon.appmgt:org.wso2.carbon.appmgt.rest.api.store.feature:${appmgt.feature.version} + + + org.wso2.carbon.appmgt:org.wso2.carbon.appmgt.rest.api.publisher.feature:${appmgt.feature.version} + @@ -902,6 +914,18 @@ org.wso2.carbon.social.feature.group ${carbon.store.version} + + org.wso2.carbon.appmgt.rest.api.store.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.rest.api.publisher.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.oauth.feature.group + ${appmgt.feature.version} + @@ -997,6 +1021,10 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.adapter.feature.group @@ -1955,6 +1983,10 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.apimgt.gateway.feature.group ${carbon.api.mgt.version} @@ -2429,6 +2461,10 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.apimgt.gateway.feature.group ${carbon.api.mgt.version} @@ -2527,6 +2563,18 @@ org.wso2.carbon.appmgt.mdm.restconnector.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.appmgt.rest.api.store.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.rest.api.publisher.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.oauth.feature.group + ${appmgt.feature.version} + @@ -2638,6 +2686,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -3097,6 +3149,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -3322,6 +3378,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -3761,6 +3821,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} diff --git a/modules/scripts/mobile-qsg/pom.xml b/modules/scripts/mobile-qsg/pom.xml index 6fe429ec..017fd5c0 100644 --- a/modules/scripts/mobile-qsg/pom.xml +++ b/modules/scripts/mobile-qsg/pom.xml @@ -63,72 +63,6 @@ - - org.apache.maven.plugins - maven-antrun-plugin - - - download-appm-store.war - prepare-package - - run - - - - - - - - - download-appm-publisher.war - prepare-package - - run - - - - - - - - - download-appm-ouath-webapp.war - prepare-package - - run - - - - - - - - - download-appm-ouath-core.jar - prepare-package - - run - - - - - - - - - ${project.artifactId}