diff --git a/components/device-types/pom.xml b/components/device-types/pom.xml
index 95dea0b73..4e50338fd 100644
--- a/components/device-types/pom.xml
+++ b/components/device-types/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.agent.impl/pom.xml b/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.agent.impl/pom.xml
index 186b3656d..f76ff3b85 100644
--- a/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.agent.impl/pom.xml
+++ b/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.agent.impl/pom.xml
@@ -23,7 +23,7 @@
virtual-fire-alarm-plugin
io.entgra.device.mgt.plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/pom.xml b/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/pom.xml
index 90ceeb1d0..57d5282b7 100644
--- a/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/pom.xml
+++ b/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/pom.xml
@@ -21,7 +21,7 @@
virtual-fire-alarm-plugin
io.entgra.device.mgt.plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/src/main/java/io/entgra/device/mgt/plugins/virtualfirealarm/api/service/impl/VirtualFireAlarmService.java b/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/src/main/java/io/entgra/device/mgt/plugins/virtualfirealarm/api/service/impl/VirtualFireAlarmService.java
index 9f1015870..a0b4ab3ce 100644
--- a/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/src/main/java/io/entgra/device/mgt/plugins/virtualfirealarm/api/service/impl/VirtualFireAlarmService.java
+++ b/components/device-types/virtual-fire-alarm-plugin/io.entgra.device.mgt.plugins.virtualfirealarm.api/src/main/java/io/entgra/device/mgt/plugins/virtualfirealarm/api/service/impl/VirtualFireAlarmService.java
@@ -53,7 +53,7 @@ import javax.ws.rs.core.Response;
@Scope(
name = "Enroll device",
description = "",
- key = "perm:firealarm:enroll",
+ key = "dm:firealarm:enroll",
permissions = {"/device-mgt/devices/enroll/firealarm"},
roles = {"Internal/devicemgt-user"}
)
@@ -83,7 +83,7 @@ public interface VirtualFireAlarmService {
tags = "virtual_firealarm",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = SCOPE, value = "perm:firealarm:enroll")
+ @ExtensionProperty(name = SCOPE, value = "dm:firealarm:enroll")
})
}
)
@@ -104,7 +104,7 @@ public interface VirtualFireAlarmService {
tags = "virtual_firealarm",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = SCOPE, value = "perm:firealarm:enroll")
+ @ExtensionProperty(name = SCOPE, value = "dm:firealarm:enroll")
})
}
)
@@ -125,7 +125,7 @@ public interface VirtualFireAlarmService {
tags = "virtual_firealarm",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = SCOPE, value = "perm:firealarm:enroll")
+ @ExtensionProperty(name = SCOPE, value = "dm:firealarm:enroll")
})
}
)
diff --git a/components/device-types/virtual-fire-alarm-plugin/pom.xml b/components/device-types/virtual-fire-alarm-plugin/pom.xml
index 30788fb54..90f9cf78c 100644
--- a/components/device-types/virtual-fire-alarm-plugin/pom.xml
+++ b/components/device-types/virtual-fire-alarm-plugin/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
device-types
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.extension/pom.xml b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.extension/pom.xml
index e4946ebb5..76e177804 100644
--- a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.extension/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.extension/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/pom.xml b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/pom.xml
index 325f16281..b6e8382a2 100644
--- a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/src/main/java/io/entgra/device/mgt/plugins/input/adapter/http/authorization/client/OAuthRequestInterceptor.java b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/src/main/java/io/entgra/device/mgt/plugins/input/adapter/http/authorization/client/OAuthRequestInterceptor.java
index e92fff1d1..9c26297d5 100755
--- a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/src/main/java/io/entgra/device/mgt/plugins/input/adapter/http/authorization/client/OAuthRequestInterceptor.java
+++ b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.http/src/main/java/io/entgra/device/mgt/plugins/input/adapter/http/authorization/client/OAuthRequestInterceptor.java
@@ -62,7 +62,7 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
private static final String APPLICATION_NAME = "websocket-app";
private static final String PASSWORD_GRANT_TYPE = "password";
private static final String REFRESH_GRANT_TYPE = "refresh_token";
- private static final String REQUIRED_SCOPE = "perm:authorization:verify";
+ private static final String REQUIRED_SCOPE = "dm:authorization:verify";
private ApiApplicationRegistrationService apiApplicationRegistrationService;
private TokenIssuerService tokenIssuerService;
diff --git a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.mqtt/pom.xml b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.mqtt/pom.xml
index f935c0c7b..e431a983e 100644
--- a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.mqtt/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.mqtt/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.thrift/pom.xml b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.thrift/pom.xml
index 21cc73b28..335c95c7b 100644
--- a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.thrift/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.thrift/pom.xml
@@ -21,7 +21,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.xmpp/pom.xml b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.xmpp/pom.xml
index 64f5d7fb4..4b3bbba18 100644
--- a/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.xmpp/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/input/io.entgra.device.mgt.plugins.input.adapter.xmpp/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.http/pom.xml b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.http/pom.xml
index fdfb7de66..51f436932 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.http/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.http/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/pom.xml b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/pom.xml
index 2677f402a..7a070ac37 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
4.0.0
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/MQTTEventAdapterFactory.java b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/MQTTEventAdapterFactory.java
index 7d19b438f..cb962777a 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/MQTTEventAdapterFactory.java
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/MQTTEventAdapterFactory.java
@@ -94,12 +94,18 @@ public class MQTTEventAdapterFactory extends OutputEventAdapterFactory {
qos.setOptions(new String[]{"0", "1", "2"});
qos.setDefaultValue("2");
+ // set topic
+ Property topicProperty = new Property(MQTTEventAdapterConstants.ADAPTER_MESSAGE_TOPIC);
+ topicProperty.setDisplayName(resourceBundle.getString(MQTTEventAdapterConstants.ADAPTER_MESSAGE_TOPIC));
+ topicProperty.setRequired(false);
+
staticPropertyList.add(brokerUrl);
staticPropertyList.add(userName);
staticPropertyList.add(scopes);
staticPropertyList.add(clearSession);
staticPropertyList.add(qos);
staticPropertyList.add(password);
+ staticPropertyList.add(topicProperty);
return staticPropertyList;
}
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTAdapterPublisher.java b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTAdapterPublisher.java
index a6f930877..2a3be10e6 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTAdapterPublisher.java
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTAdapterPublisher.java
@@ -17,37 +17,28 @@
*/
package io.entgra.device.mgt.plugins.output.adapter.mqtt.util;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.DCRResponse;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.TokenRequest;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.TokenResponse;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.exception.BadRequestException;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.exception.KeyMgtException;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.service.KeyMgtService;
+import io.entgra.device.mgt.core.apimgt.keymgt.extension.service.KeyMgtServiceImpl;
+import io.entgra.device.mgt.core.identity.jwt.client.extension.exception.JWTClientException;
+import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.ssl.Base64;
-import org.apache.http.HttpResponse;
-import org.apache.http.client.HttpClient;
-import org.apache.http.client.methods.HttpPost;
-import org.apache.http.entity.ContentType;
-import org.apache.http.entity.StringEntity;
-import org.apache.http.message.BasicHeader;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence;
-import org.json.simple.JSONObject;
-import org.json.simple.parser.JSONParser;
-import org.json.simple.parser.ParseException;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.DCRResponse;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.TokenRequest;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.TokenResponse;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.exception.BadRequestException;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.exception.KeyMgtException;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.service.KeyMgtService;
-import io.entgra.device.mgt.core.apimgt.keymgt.extension.service.KeyMgtServiceImpl;
+import org.jetbrains.annotations.NotNull;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.event.output.adapter.core.exception.ConnectionUnavailableException;
import org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException;
import org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterRuntimeException;
-import io.entgra.device.mgt.core.identity.jwt.client.extension.dto.AccessTokenInfo;
-import io.entgra.device.mgt.core.identity.jwt.client.extension.exception.JWTClientException;
-import io.entgra.device.mgt.core.identity.jwt.client.extension.service.JWTClientManagerService;
import org.wso2.carbon.user.api.UserStoreException;
/**
@@ -153,6 +144,8 @@ public class MQTTAdapterPublisher {
String dcrUrlString = this.mqttBrokerConnectionConfiguration.getDcrUrl();
if (dcrUrlString != null && !dcrUrlString.isEmpty()) {
+ PrivilegedCarbonContext.startTenantFlow();
+ PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(tenantDomain, true);
try {
KeyMgtService keyMgtService = new KeyMgtServiceImpl();
String applicationName = MQTTEventAdapterConstants.APPLICATION_NAME_PREFIX
@@ -170,6 +163,8 @@ public class MQTTAdapterPublisher {
} catch (KeyMgtException e) {
log.error("Failed to create an application.", e);
throw new OutputEventAdapterRuntimeException("Failed to create an application.", e);
+ } finally {
+ PrivilegedCarbonContext.endTenantFlow();
}
}
throw new OutputEventAdapterRuntimeException("Invalid configuration for mqtt publisher");
@@ -177,27 +172,33 @@ public class MQTTAdapterPublisher {
private String getToken(String clientId, String clientSecret)
throws UserStoreException, JWTClientException {
- PrivilegedCarbonContext.startTenantFlow();
- PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(tenantDomain, true);
try {
- String scopes = mqttBrokerConnectionConfiguration.getScopes();
- scopes += " perm:topic:pub:" + tenantDomain + ":+:+:operation";
-
- TokenRequest tokenRequest = new TokenRequest(clientId, clientSecret,
- null, scopes.toString(), "client_credentials", null,
- null, null, null, Integer.MAX_VALUE);
+ TokenRequest tokenRequest = getTokenRequest(clientId, clientSecret);
KeyMgtService keyMgtService = new KeyMgtServiceImpl();
TokenResponse tokenResponse = keyMgtService.generateAccessToken(tokenRequest);
return tokenResponse.getAccessToken();
} catch (KeyMgtException | BadRequestException e) {
log.error("Error while generating access token", e);
- } finally {
- PrivilegedCarbonContext.endTenantFlow();
}
return null;
}
+ @NotNull
+ private TokenRequest getTokenRequest(String clientId, String clientSecret) {
+ String scopes = mqttBrokerConnectionConfiguration.getScopes();
+ scopes += " perm:topic:pub:" + tenantDomain + ":+:+:operation";
+
+ if (!StringUtils.isEmpty(mqttBrokerConnectionConfiguration.getTopic())) {
+ scopes += " perm:topic:pub:" + mqttBrokerConnectionConfiguration.getTopic().replace("/",":");
+ }
+
+ TokenRequest tokenRequest = new TokenRequest(clientId, clientSecret,
+ null, scopes.toString(), "client_credentials", null,
+ null, null, null, Integer.MAX_VALUE);
+ return tokenRequest;
+ }
+
private String getBase64Encode(String key, String value) {
return new String(Base64.encodeBase64((key + ":" + value).getBytes()));
}
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTBrokerConnectionConfiguration.java b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTBrokerConnectionConfiguration.java
index 29be5f56a..51b4018f3 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTBrokerConnectionConfiguration.java
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.mqtt/src/main/java/io/entgra/device/mgt/plugins/output/adapter/mqtt/util/MQTTBrokerConnectionConfiguration.java
@@ -17,8 +17,8 @@
*/
package io.entgra.device.mgt.plugins.output.adapter.mqtt.util;
+import org.apache.commons.lang3.StringUtils;
import org.wso2.carbon.event.output.adapter.core.OutputEventAdapterConfiguration;
-import org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException;
import java.util.Map;
@@ -36,6 +36,8 @@ public class MQTTBrokerConnectionConfiguration {
private boolean globalCredentailSet;
private int qos;
+ private String topic;
+
public String getTokenUrl() {
return tokenUrl;
}
@@ -79,6 +81,11 @@ public class MQTTBrokerConnectionConfiguration {
public int getQos() {
return qos;
}
+
+ public String getTopic() {
+ return topic;
+ }
+
public MQTTBrokerConnectionConfiguration(OutputEventAdapterConfiguration eventAdapterConfiguration,
Map globalProperties) {
adapterName = eventAdapterConfiguration.getName();
@@ -123,7 +130,10 @@ public class MQTTBrokerConnectionConfiguration {
this.qos = Integer.parseInt(qosVal);
}
-
+ String topic = eventAdapterConfiguration.getStaticProperties().get(MQTTEventAdapterConstants.ADAPTER_MESSAGE_TOPIC);
+ if (!StringUtils.isEmpty(topic)) {
+ this.topic = topic;
+ }
}
}
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket.endpoint/pom.xml b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket.endpoint/pom.xml
index 49b5c377f..27e781817 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket.endpoint/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket.endpoint/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/pom.xml b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/pom.xml
index 01c3cb0f2..cd6d5aff7 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/pom.xml
@@ -21,7 +21,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/src/main/java/io/entgra/device/mgt/plugins/output/adapter/websocket/authorization/client/OAuthRequestInterceptor.java b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/src/main/java/io/entgra/device/mgt/plugins/output/adapter/websocket/authorization/client/OAuthRequestInterceptor.java
index 0cc0fbb31..a1981dd21 100755
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/src/main/java/io/entgra/device/mgt/plugins/output/adapter/websocket/authorization/client/OAuthRequestInterceptor.java
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.websocket/src/main/java/io/entgra/device/mgt/plugins/output/adapter/websocket/authorization/client/OAuthRequestInterceptor.java
@@ -74,7 +74,7 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
private static final String APPLICATION_NAME = "websocket-app";
private static final String PASSWORD_GRANT_TYPE = "password";
private static final String REFRESH_GRANT_TYPE = "refresh_token";
- private static final String REQUIRED_SCOPE = "perm:authorization:verify";
+ private static final String REQUIRED_SCOPE = "dm:authorization:verify";
private ApiApplicationRegistrationService apiApplicationRegistrationService;
private TokenIssuerService tokenIssuerService;
private ApiApplicationKey apiApplicationKey;
diff --git a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.xmpp/pom.xml b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.xmpp/pom.xml
index 55e277b34..c2ce3eedc 100644
--- a/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.xmpp/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/output/io.entgra.device.mgt.plugins.output.adapter.xmpp/pom.xml
@@ -20,7 +20,7 @@
io.entgra.device.mgt.plugins
cdmf-transport-adapters
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/extensions/cdmf-transport-adapters/pom.xml b/components/extensions/cdmf-transport-adapters/pom.xml
index 0ae5917cb..47f466cf9 100644
--- a/components/extensions/cdmf-transport-adapters/pom.xml
+++ b/components/extensions/cdmf-transport-adapters/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/pom.xml b/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/pom.xml
index 58052f086..e2c9e7980 100644
--- a/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/pom.xml
+++ b/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/pom.xml
@@ -21,7 +21,7 @@
io.entgra.device.mgt.plugins
emqx-extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
@@ -74,6 +74,11 @@
io.entgra.device.mgt.core.device.mgt.core
provided
+
+ org.ops4j.pax.logging
+ pax-logging-api
+ provided
+
diff --git a/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/src/main/java/io/entgra/device/mgt/plugins/emqx/exhook/ExServer.java b/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/src/main/java/io/entgra/device/mgt/plugins/emqx/exhook/ExServer.java
index e991d9324..65006c039 100644
--- a/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/src/main/java/io/entgra/device/mgt/plugins/emqx/exhook/ExServer.java
+++ b/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.exhook/src/main/java/io/entgra/device/mgt/plugins/emqx/exhook/ExServer.java
@@ -23,6 +23,12 @@ import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.protobuf.ByteString;
import com.google.protobuf.GeneratedMessageV3;
+import io.entgra.device.mgt.core.device.mgt.common.DeviceIdentifier;
+import io.entgra.device.mgt.core.device.mgt.common.EnrolmentInfo;
+import io.entgra.device.mgt.core.device.mgt.common.exceptions.DeviceManagementException;
+import io.entgra.device.mgt.core.device.mgt.core.config.DeviceConfigurationManager;
+import io.entgra.device.mgt.core.device.mgt.core.config.keymanager.KeyManagerConfigurations;
+import io.entgra.device.mgt.core.device.mgt.core.service.DeviceManagementProviderService;
import io.grpc.Server;
import io.grpc.ServerBuilder;
import io.grpc.stub.StreamObserver;
@@ -34,15 +40,8 @@ import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
-import io.entgra.device.mgt.core.device.mgt.core.config.DeviceConfigurationManager;
-import io.entgra.device.mgt.core.device.mgt.core.config.keymanager.KeyManagerConfigurations;
-import io.entgra.device.mgt.core.device.mgt.core.internal.DeviceManagementDataHolder;
-import io.entgra.device.mgt.core.device.mgt.core.service.DeviceManagementProviderService;
-import io.entgra.device.mgt.core.device.mgt.common.EnrolmentInfo;
-import io.entgra.device.mgt.core.device.mgt.common.exceptions.DeviceManagementException;
-import io.entgra.device.mgt.core.device.mgt.common.DeviceIdentifier;
-import org.wso2.carbon.context.CarbonContext;
import org.wso2.carbon.context.PrivilegedCarbonContext;
+
import java.io.IOException;
import java.util.*;
import java.util.concurrent.TimeUnit;
@@ -110,7 +109,7 @@ public class ExServer {
public void DEBUG(String fn, Object req) {
- System.out.printf(fn + ", request: " + req);
+ logger.debug(fn + ", request: " + req);
}
@Override
@@ -493,8 +492,7 @@ public class ExServer {
@Override
public void onMessagePublish(MessagePublishRequest request, StreamObserver responseObserver) {
- DEBUG("onMessagePublish", request);
-
+ logger.info("onMessagePublish");
ByteString bstr = ByteString.copyFromUtf8("hardcode payload by exhook-svr-java :)");
Message nmsg = Message.newBuilder()
@@ -538,7 +536,7 @@ public class ExServer {
@Override
public void onMessageDelivered(MessageDeliveredRequest request, StreamObserver responseObserver) {
- DEBUG("onMessageDelivered", request);
+ logger.info("onMessageDelivered");
EmptySuccess reply = EmptySuccess.newBuilder().build();
responseObserver.onNext(reply);
responseObserver.onCompleted();
@@ -554,10 +552,11 @@ public class ExServer {
@Override
public void onMessageDropped(MessageDroppedRequest request, StreamObserver responseObserver) {
- DEBUG("onMessageDropped", request);
+ logger.info("onMessageDropped ---------------------------------------------------------------");
EmptySuccess reply = EmptySuccess.newBuilder().build();
responseObserver.onNext(reply);
responseObserver.onCompleted();
+
}
diff --git a/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.initializer/pom.xml b/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.initializer/pom.xml
index 53ab7b6bb..5b61fa5b3 100644
--- a/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.initializer/pom.xml
+++ b/components/extensions/emqx-extensions/io.entgra.device.mgt.plugins.emqx.initializer/pom.xml
@@ -21,7 +21,7 @@
io.entgra.device.mgt.plugins
emqx-extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/emqx-extensions/pom.xml b/components/extensions/emqx-extensions/pom.xml
index bf07f73b1..29c447340 100644
--- a/components/extensions/emqx-extensions/pom.xml
+++ b/components/extensions/emqx-extensions/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.api/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/jaxrs/service/MQTTManagementAdminService.java b/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.api/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/jaxrs/service/MQTTManagementAdminService.java
index 96dfbaa0e..9057da87a 100644
--- a/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.api/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/jaxrs/service/MQTTManagementAdminService.java
+++ b/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.api/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/jaxrs/service/MQTTManagementAdminService.java
@@ -64,7 +64,7 @@ import javax.ws.rs.core.Response;
@Scope(
name = "Getting Details of Topics",
description = "Getting Details of Topics",
- key = "perm:admin:topics:view",
+ key = "dm:admin:topics:view",
permissions = {"/device-mgt/topics/view"}
)
}
@@ -82,7 +82,7 @@ public interface MQTTManagementAdminService {
tags = "MQTT Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = Constants.SCOPE, value = "perm:admin:topics:view")
+ @ExtensionProperty(name = Constants.SCOPE, value = "dm:admin:topics:view")
})
}
)
diff --git a/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/client/OAuthRequestInterceptor.java b/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/client/OAuthRequestInterceptor.java
index 1cde68b66..9d91477eb 100755
--- a/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/client/OAuthRequestInterceptor.java
+++ b/components/extensions/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/client/OAuthRequestInterceptor.java
@@ -58,7 +58,7 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
private static final String APPLICATION_NAME = "mqtt_broker";
private static final String PASSWORD_GRANT_TYPE = "password";
private static final String REFRESH_GRANT_TYPE = "refresh_token";
- private static final String REQUIRED_SCOPE = "perm:authorization:verify";
+ private static final String REQUIRED_SCOPE = "dm:authorization:verify";
private ApiApplicationRegistrationService apiApplicationRegistrationService;
private TokenIssuerService tokenIssuerService;
private static Log log = LogFactory.getLog(OAuthRequestInterceptor.class);
diff --git a/components/extensions/pom.xml b/components/extensions/pom.xml
index e5ba3db4e..10ca4ab2d 100644
--- a/components/extensions/pom.xml
+++ b/components/extensions/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/components/extensions/pull-notification-listeners/io.entgra.device.mgt.plugins.mqtt.notification.listener/pom.xml b/components/extensions/pull-notification-listeners/io.entgra.device.mgt.plugins.mqtt.notification.listener/pom.xml
index 89ac02c33..e3ac4976f 100644
--- a/components/extensions/pull-notification-listeners/io.entgra.device.mgt.plugins.mqtt.notification.listener/pom.xml
+++ b/components/extensions/pull-notification-listeners/io.entgra.device.mgt.plugins.mqtt.notification.listener/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
pull-notification-listeners
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/pull-notification-listeners/pom.xml b/components/extensions/pull-notification-listeners/pom.xml
index a8cae473d..57e12e77f 100644
--- a/components/extensions/pull-notification-listeners/pom.xml
+++ b/components/extensions/pull-notification-listeners/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/pom.xml b/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/pom.xml
index b308689cb..e8b87d5ff 100644
--- a/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/pom.xml
+++ b/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
siddhi-extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/src/main/java/io/entgra/device/mgt/plugins/extension/siddhi/device/client/OAuthRequestInterceptor.java b/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/src/main/java/io/entgra/device/mgt/plugins/extension/siddhi/device/client/OAuthRequestInterceptor.java
index 9d347635b..2507a328c 100755
--- a/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/src/main/java/io/entgra/device/mgt/plugins/extension/siddhi/device/client/OAuthRequestInterceptor.java
+++ b/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.device/src/main/java/io/entgra/device/mgt/plugins/extension/siddhi/device/client/OAuthRequestInterceptor.java
@@ -50,7 +50,7 @@ import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
public class OAuthRequestInterceptor implements RequestInterceptor {
private static final String APPLICATION_NAME = "siddhi_extension_client";
- private static final String REQUIRED_SCOPES = "perm:devices:operations";
+ private static final String REQUIRED_SCOPES = "dm:devices:ops:view";
private static final String[] API_TAGS = {"device_management"};
private DCRService dcrService;
private static OAuthApplication oAuthApplication;
diff --git a/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.execution.json/pom.xml b/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.execution.json/pom.xml
index 1b90ebbff..3676e7f94 100644
--- a/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.execution.json/pom.xml
+++ b/components/extensions/siddhi-extensions/io.entgra.device.mgt.plugins.extension.siddhi.execution.json/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
siddhi-extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/extensions/siddhi-extensions/pom.xml b/components/extensions/siddhi-extensions/pom.xml
index d81598415..5a0b5b8e6 100644
--- a/components/extensions/siddhi-extensions/pom.xml
+++ b/components/extensions/siddhi-extensions/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
extensions
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/pom.xml b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/pom.xml
index 0309c0c3a..de74bd578 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/pom.xml
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/pom.xml
@@ -21,7 +21,7 @@
android-plugin
io.entgra.device.mgt.plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementAdminService.java b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementAdminService.java
index f21638bda..f6dcb918e 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementAdminService.java
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementAdminService.java
@@ -70,182 +70,182 @@ import java.util.List;
@Scope(
name = "Lock Device",
description = "Hard lock own device",
- key = "perm:android:lock-devices",
+ key = "and:ops:lock-devices",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/lock"}
),
@Scope(
name = "Unlock Device",
description = "Unlock permanently locked device",
- key = "perm:android:unlock-devices",
+ key = "and:ops:unlock-devices",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/unlock"}
),
@Scope(
name = "Get Location",
description = "Request device location coordinates",
- key = "perm:android:location",
+ key = "and:ops:location",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/location"}
),
@Scope(
name = "Clear Password",
description = "Clear the password on Android devices",
- key = "perm:android:clear-password",
+ key = "and:ops:clear-password",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/clear-password"}
),
@Scope(
name = "Control Camera",
description = "Enabling or Disabling the Camera on Android Devices",
- key = "perm:android:control-camera",
+ key = "and:ops:control-camera",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/camera"}
),
@Scope(
name = "Get Info",
description = "Requesting device information from Android Devices",
- key = "perm:android:info",
+ key = "and:ops:device-info",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/info"}
),
@Scope(
name = "Get Logs",
description = "Requesting Logcat Details from Android Devices",
- key = "perm:android:logcat",
+ key = "and:ops:logcat",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/logcat"}
),
@Scope(
name = "Enterprise Wipe",
description = "Enterprise Wiping Android Devices",
- key = "perm:android:enterprise-wipe",
+ key = "and:ops:enterprise-wipe",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/enterprise-wipe"}
),
@Scope(
name = "Factory Reset",
description = "Factory Resetting Android Devices",
- key = "perm:android:wipe",
+ key = "and:ops:wipe",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/wipe"}
),
@Scope(
name = "Get Installed Applications",
description = "Get list of installed applications",
- key = "perm:android:applications",
+ key = "and:ops:app-list",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/applications"}
),
@Scope(
name = "Ring Device",
description = "Ring Android devices",
- key = "perm:android:ring",
+ key = "and:ops:ring",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/ring"}
),
@Scope(
name = "Reboot Device",
description = "Reboot Android devices",
- key = "perm:android:reboot",
+ key = "and:ops:reboot",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/reboot"}
),
@Scope(
name = "Mute Device",
description = "Mute Android devices",
- key = "perm:android:mute",
+ key = "and:ops:mute",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/mute"}
),
@Scope(
name = "Install Applications",
description = "Installing an Application on Android Devices",
- key = "perm:android:install-application",
+ key = "and:ops:install-app",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/install-app"}
),
@Scope(
name = "Update Applications",
description = "Updating an Application on Android Devices",
- key = "perm:android:update-application",
+ key = "and:ops:update-app",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/update-app"}
),
@Scope(
name = "Uninstall Applications",
description = "Uninstalling an Application on Android Devices",
- key = "perm:android:uninstall-application",
+ key = "and:ops:uninstall-app",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/uninstall-app"}
),
@Scope(
name = "Blacklist Applications",
description = "Blacklisting applications on Android Devices",
- key = "perm:android:blacklist-applications",
+ key = "and:ops:blacklist-app",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/blacklist-app"}
),
@Scope(
name = "Upgrade Firmware",
description = "Upgrading Firmware of Android Devices",
- key = "perm:android:upgrade-firmware",
+ key = "and:ops:upgrade-firmware",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/upgrade"}
),
@Scope(
name = "Configure VPN",
description = "Configure VPN on Android Device",
- key = "perm:android:configure-vpn",
+ key = "and:ops:configure-vpn",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/vpn"}
),
@Scope(
name = "Send Notification",
description = "Sending a notification to Android Device",
- key = "perm:android:send-notification",
+ key = "and:ops:send-notif",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/send-notification"}
),
@Scope(
name = "Configure Wi-Fi",
description = "Configure Wi-Fi on Android Device",
- key = "perm:android:configure-wifi",
+ key = "and:ops:configure-wifi",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/wifi"}
),
@Scope(
name = "Encrypt Storage",
description = "Encrypting storage on Android Device",
- key = "perm:android:encrypt-storage",
+ key = "and:ops:encrypt-storage",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/encrypt"}
),
@Scope(
name = "Change Password",
description = "Changing the lock code of an Android Device",
- key = "perm:android:change-lock-code",
+ key = "and:ops:change-lock-code",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/change-lock-code"}
),
@Scope(
name = "Password Policy",
description = "Set password policy of an Android Device",
- key = "perm:android:set-password-policy",
+ key = "and:ops:password-policy",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/password-policy"}
),
@Scope(
name = "Add Web clip",
description = "Setting a Web Clip on Android Devices",
- key = "perm:android:set-webclip",
+ key = "and:ops:set-webclip",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/webclip"}
),
@Scope(
name = "File Transfer",
description = "Transferring a file to android devices",
- key = "perm:android:file-transfer",
+ key = "and:ops:file-transfer",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/devices/owning-device/operations/android/file-transfer"}
)
@@ -265,7 +265,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:file-transfer")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:file-transfer")
})
}
)
@@ -326,7 +326,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:lock-devices")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:lock-devices")
})
}
)
@@ -389,7 +389,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:unlock-devices")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:unlock-devices")
})
}
)
@@ -452,7 +452,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:location")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:location")
})
}
)
@@ -511,7 +511,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:clear-password")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:clear-password")
})
}
)
@@ -569,7 +569,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:control-camera")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:control-camera")
})
})
@ApiResponses(value = {
@@ -634,7 +634,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:info")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:device-info")
})
}
)
@@ -697,7 +697,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:logcat")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:logcat")
})
}
)
@@ -759,7 +759,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enterprise-wipe")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:enterprise-wipe")
})
}
)
@@ -819,7 +819,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:wipe")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:wipe")
})
}
)
@@ -883,7 +883,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:applications")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:app-list")
})
}
)
@@ -943,7 +943,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:ring")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:ring")
})
}
)
@@ -1003,7 +1003,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:reboot")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:reboot")
})
}
)
@@ -1063,7 +1063,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:mute")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:mute")
})
}
)
@@ -1125,7 +1125,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:install-application")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:install-app")
})
}
)
@@ -1190,7 +1190,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:update-application")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:update-app")
})
}
)
@@ -1252,7 +1252,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:uninstall-application")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:uninstall-app")
})
}
)
@@ -1318,7 +1318,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:blacklist-applications")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:blacklist-app")
})
}
)
@@ -1380,7 +1380,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:upgrade-firmware")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:upgrade-firmware")
})
}
)
@@ -1444,7 +1444,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:configure-vpn")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:configure-vpn")
})
}
)
@@ -1504,7 +1504,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:send-notification")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:send-notif")
})
}
)
@@ -1565,7 +1565,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:configure-wifi")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:configure-wifi")
})
}
)
@@ -1627,7 +1627,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:encrypt-storage")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:encrypt-storage")
})
}
)
@@ -1689,7 +1689,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:change-lock-code")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:change-lock-code")
})
}
)
@@ -1751,7 +1751,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:set-password-policy")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:password-policy")
})
}
)
@@ -1811,7 +1811,7 @@ public interface DeviceManagementAdminService {
tags = "Android Device Management Administrative Service",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:set-webclip")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:ops:set-webclip")
})
}
)
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementService.java b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementService.java
index b3da8dfd7..9b5f64ddb 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementService.java
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceManagementService.java
@@ -69,14 +69,14 @@ import java.util.List;
@Scope(
name = "Enroll Device",
description = "Register an Android device",
- key = "perm:android:enroll",
+ key = "and:devices:enroll",
roles = {"Internal/devicemgt-user"},
permissions = {"/device-mgt/devices/enroll/android"}
),
@Scope(
name = "Un-enroll Device",
description = "Unregister an Android device",
- key = "perm:android:disenroll",
+ key = "and:devices:disenroll",
roles = {"Internal/devicemgt-user"},
permissions = {"/device-mgt/devices/disenroll/android"}
)
@@ -95,7 +95,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -160,7 +160,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -221,7 +221,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -283,7 +283,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -338,7 +338,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -391,7 +391,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -447,7 +447,7 @@ public interface DeviceManagementService {
tags = "Android Device Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:disenroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:disenroll")
})
}
)
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceTypeConfigurationService.java b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceTypeConfigurationService.java
index f8cd89070..a4506b160 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceTypeConfigurationService.java
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/DeviceTypeConfigurationService.java
@@ -66,23 +66,23 @@ import javax.ws.rs.core.Response;
@Scope(
name = "Enroll Device",
description = "Register an Android device",
- key = "perm:android:enroll",
+ key = "and:devices:enroll",
roles = {"Internal/devicemgt-user"},
permissions = {"/device-mgt/devices/enroll/android"}
),
@Scope(
name = "View Configurations",
description = "Getting Android Platform Configurations",
- key = "perm:android:view-configuration",
+ key = "and:conf:view",
roles = {"Internal/devicemgt-user"},
- permissions = {"/device-mgt/devices/enroll/android"}
+ permissions = {"/device-mgt/platform-configurations/android/view"}
),
@Scope(
name = "Manage Configurations",
description = "Updating Android Platform Configurations",
- key = "perm:android:manage-configuration",
+ key = "and:conf:manage",
roles = {"Internal/devicemgt-user"},
- permissions = {"/device-mgt/platform-configurations/manage"}
+ permissions = {"/device-mgt/platform-configurations/android/manage"}
)
}
)
@@ -98,7 +98,7 @@ public interface DeviceTypeConfigurationService {
tags = "Android Configuration Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:view-configuration")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:conf:view")
})
}
)
@@ -152,7 +152,7 @@ public interface DeviceTypeConfigurationService {
tags = "Android Configuration Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:manage-configuration")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:conf:manage")
})
}
)
@@ -207,7 +207,7 @@ public interface DeviceTypeConfigurationService {
tags = "Android Configuration Management",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/EventReceiverService.java b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/EventReceiverService.java
index 3f77741b2..6361d500f 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/EventReceiverService.java
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/main/java/io/entgra/device/mgt/plugins/mobile/android/api/services/EventReceiverService.java
@@ -66,7 +66,7 @@ import javax.ws.rs.core.Response;
@Scope(
name = "Enroll Device",
description = "Register an Android device",
- key = "perm:android:enroll",
+ key = "and:devices:enroll",
roles = {"Internal/devicemgt-user"},
permissions = {"/device-mgt/devices/enroll/android"}
)
@@ -85,7 +85,7 @@ public interface EventReceiverService {
tags = "Event Receiver",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
@@ -148,7 +148,7 @@ public interface EventReceiverService {
tags = "Event Receiver",
extensions = {
@Extension(properties = {
- @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:enroll")
+ @ExtensionProperty(name = AndroidConstants.SCOPE, value = "and:devices:enroll")
})
}
)
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.emulator/pom.xml b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.emulator/pom.xml
index a8879f230..5b5f92473 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.emulator/pom.xml
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.emulator/pom.xml
@@ -21,7 +21,7 @@
android-plugin
io.entgra.device.mgt.plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/pom.xml b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/pom.xml
index 89e26bb54..76ed1c3bf 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/pom.xml
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/pom.xml
@@ -23,7 +23,7 @@
android-plugin
io.entgra.device.mgt.plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/config.json b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/config.json
index e6ab55c5d..ece5617ae 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/config.json
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.type-view/private/config.json
@@ -6,36 +6,36 @@
"analyticsEnabled": "false",
"groupingEnabled": "true",
"scopes" : [
- "perm:android:file-transfer",
- "perm:android:enroll",
- "perm:android:wipe",
- "perm:android:ring",
- "perm:android:lock-devices",
- "perm:android:configure-vpn",
- "perm:android:configure-wifi",
- "perm:android:enroll",
- "perm:android:uninstall-application",
- "perm:android:manage-configuration",
- "perm:android:location",
- "perm:android:install-application",
- "perm:android:mute",
- "perm:android:change-lock-code",
- "perm:android:blacklist-applications",
- "perm:android:set-password-policy",
- "perm:android:encrypt-storage",
- "perm:android:clear-password",
- "perm:android:enterprise-wipe",
- "perm:android:info",
- "perm:android:view-configuration",
- "perm:android:upgrade-firmware",
- "perm:android:set-webclip",
- "perm:android:send-notification",
- "perm:android:disenroll",
- "perm:android:update-application",
- "perm:android:unlock-devices",
- "perm:android:control-camera",
- "perm:android:reboot",
- "perm:android:logcat"
+ "and:ops:file-transfer",
+ "and:devices:enroll",
+ "and:ops:wipe",
+ "and:ops:ring",
+ "and:ops:lock-devices",
+ "and:ops:configure-vpn",
+ "and:ops:configure-wifi",
+ "and:devices:enroll",
+ "and:ops:uninstall-app",
+ "and:conf:manage",
+ "and:ops:location",
+ "and:ops:install-app",
+ "and:ops:mute",
+ "and:ops:change-lock-code",
+ "and:ops:blacklist-app",
+ "and:ops:password-policy",
+ "and:ops:encrypt-storage",
+ "and:ops:clear-password",
+ "and:ops:enterprise-wipe",
+ "and:ops:device-info",
+ "and:conf:view",
+ "and:ops:upgrade-firmware",
+ "and:ops:set-webclip",
+ "and:ops:send-notif",
+ "and:devices:disenroll",
+ "and:ops:update-app",
+ "and:ops:unlock-devices",
+ "and:ops:control-camera",
+ "and:ops:reboot",
+ "and:ops:logcat"
],
"features": {
"DEVICE_RING": {
diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android/pom.xml b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android/pom.xml
index 227232618..1d35ee1d5 100644
--- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android/pom.xml
+++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android/pom.xml
@@ -22,7 +22,7 @@
android-plugin
io.entgra.device.mgt.plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/mobile-plugins/android-plugin/pom.xml b/components/mobile-plugins/android-plugin/pom.xml
index 0230e5d08..9d0541828 100644
--- a/components/mobile-plugins/android-plugin/pom.xml
+++ b/components/mobile-plugins/android-plugin/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
mobile-plugins
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/components/mobile-plugins/pom.xml b/components/mobile-plugins/pom.xml
index e30fed9f7..874da69ee 100644
--- a/components/mobile-plugins/pom.xml
+++ b/components/mobile-plugins/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/features/analytics-feature/io.entgra.device.mgt.plugins.analytics.feature/pom.xml b/features/analytics-feature/io.entgra.device.mgt.plugins.analytics.feature/pom.xml
index a0cae4782..1fb0f68dc 100644
--- a/features/analytics-feature/io.entgra.device.mgt.plugins.analytics.feature/pom.xml
+++ b/features/analytics-feature/io.entgra.device.mgt.plugins.analytics.feature/pom.xml
@@ -23,7 +23,7 @@
io.entgra.device.mgt.plugins
analytics-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/analytics-feature/pom.xml b/features/analytics-feature/pom.xml
index 076e63e59..1a54767a2 100644
--- a/features/analytics-feature/pom.xml
+++ b/features/analytics-feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/features/device-types-feature/pom.xml b/features/device-types-feature/pom.xml
index aafc51f4e..b0ab12fe1 100644
--- a/features/device-types-feature/pom.xml
+++ b/features/device-types-feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/features/device-types-feature/virtual-fire-alarm-plugin-feature/io.entgra.device.mgt.plugins.virtualfirealarm.backend.feature/pom.xml b/features/device-types-feature/virtual-fire-alarm-plugin-feature/io.entgra.device.mgt.plugins.virtualfirealarm.backend.feature/pom.xml
index 87fcb9589..3e73fa424 100644
--- a/features/device-types-feature/virtual-fire-alarm-plugin-feature/io.entgra.device.mgt.plugins.virtualfirealarm.backend.feature/pom.xml
+++ b/features/device-types-feature/virtual-fire-alarm-plugin-feature/io.entgra.device.mgt.plugins.virtualfirealarm.backend.feature/pom.xml
@@ -23,7 +23,7 @@
io.entgra.device.mgt.plugins
virtual-fire-alarm-plugin-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/device-types-feature/virtual-fire-alarm-plugin-feature/pom.xml b/features/device-types-feature/virtual-fire-alarm-plugin-feature/pom.xml
index 8329053ef..fecd9ac59 100644
--- a/features/device-types-feature/virtual-fire-alarm-plugin-feature/pom.xml
+++ b/features/device-types-feature/virtual-fire-alarm-plugin-feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
device-types-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/extensions-feature/io.entgra.device.mgt.plugins.adapter.feature/pom.xml b/features/extensions-feature/io.entgra.device.mgt.plugins.adapter.feature/pom.xml
index 477b4bf73..ec0c0d039 100644
--- a/features/extensions-feature/io.entgra.device.mgt.plugins.adapter.feature/pom.xml
+++ b/features/extensions-feature/io.entgra.device.mgt.plugins.adapter.feature/pom.xml
@@ -23,7 +23,7 @@
io.entgra.device.mgt.plugins
extensions-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.device.feature/pom.xml b/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.device.feature/pom.xml
index 38a382e5e..bbe84d514 100644
--- a/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.device.feature/pom.xml
+++ b/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.device.feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
extensions-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.execution.json.feature/pom.xml b/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.execution.json.feature/pom.xml
index 789f0a5f1..ef9ed47f0 100644
--- a/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.execution.json.feature/pom.xml
+++ b/features/extensions-feature/io.entgra.device.mgt.plugins.extension.siddhi.execution.json.feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
extensions-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/extensions-feature/io.entgra.device.mgt.plugins.notification.listener.feature/pom.xml b/features/extensions-feature/io.entgra.device.mgt.plugins.notification.listener.feature/pom.xml
index c62c5178a..2273c4cd4 100644
--- a/features/extensions-feature/io.entgra.device.mgt.plugins.notification.listener.feature/pom.xml
+++ b/features/extensions-feature/io.entgra.device.mgt.plugins.notification.listener.feature/pom.xml
@@ -21,7 +21,7 @@
io.entgra.device.mgt.plugins
extensions-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
4.0.0
diff --git a/features/extensions-feature/pom.xml b/features/extensions-feature/pom.xml
index 16eeae063..c8d0dbeec 100644
--- a/features/extensions-feature/pom.xml
+++ b/features/extensions-feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/features/mobile-plugins-feature/android-plugin-feature/io.entgra.device.mgt.plugins.mobile.android.feature/pom.xml b/features/mobile-plugins-feature/android-plugin-feature/io.entgra.device.mgt.plugins.mobile.android.feature/pom.xml
index a70b4e97d..da2bfc817 100644
--- a/features/mobile-plugins-feature/android-plugin-feature/io.entgra.device.mgt.plugins.mobile.android.feature/pom.xml
+++ b/features/mobile-plugins-feature/android-plugin-feature/io.entgra.device.mgt.plugins.mobile.android.feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
android-plugin-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/mobile-plugins-feature/android-plugin-feature/pom.xml b/features/mobile-plugins-feature/android-plugin-feature/pom.xml
index 2371fc3b5..ece5023ad 100644
--- a/features/mobile-plugins-feature/android-plugin-feature/pom.xml
+++ b/features/mobile-plugins-feature/android-plugin-feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
mobile-plugins-feature
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../pom.xml
diff --git a/features/mobile-plugins-feature/pom.xml b/features/mobile-plugins-feature/pom.xml
index 1b5cf5add..65fcc8d21 100644
--- a/features/mobile-plugins-feature/pom.xml
+++ b/features/mobile-plugins-feature/pom.xml
@@ -22,7 +22,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
../../pom.xml
diff --git a/pom.xml b/pom.xml
index 12400ba15..9aaaa7c81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
io.entgra.device.mgt.plugins
io.entgra.device.mgt.plugins.parent
pom
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
WSO2 Carbon - Device Management Plugins Parent
http://entgra.io
WSO2 Carbon - Device Management Plugins Parent
@@ -953,11 +953,11 @@
- 5.0.29-SNAPSHOT
+ 5.0.31-SNAPSHOT
[5.0.0, 6.0.0)
- 6.0.20-SNAPSHOT
+ 6.0.22-SNAPSHOT
4.0.0