mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/wso2/carbon-device-mgt
This commit is contained in:
commit
67e9212b36
@ -22,13 +22,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.annotations</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.annotations</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - API Management Annotations</name>
|
<name>WSO2 Carbon - API Management Annotations</name>
|
||||||
<description>WSO2 Carbon - API Management Custom Annotation Module</description>
|
<description>WSO2 Carbon - API Management Custom Annotation Module</description>
|
||||||
|
|||||||
@ -21,12 +21,12 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<artifactId>org.wso2.carbon.apimgt.application.extension.api</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.application.extension.api</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>WSO2 Carbon - API Application Management API</name>
|
<name>WSO2 Carbon - API Application Management API</name>
|
||||||
|
|||||||
@ -22,12 +22,12 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<artifactId>org.wso2.carbon.apimgt.application.extension</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.application.extension</artifactId>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - API Application Management</name>
|
<name>WSO2 Carbon - API Application Management</name>
|
||||||
|
|||||||
@ -21,13 +21,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.handlers</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.handlers</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - API Security Handler Component</name>
|
<name>WSO2 Carbon - API Security Handler Component</name>
|
||||||
<description>WSO2 Carbon - API Management Security Handler Module</description>
|
<description>WSO2 Carbon - API Management Security Handler Module</description>
|
||||||
|
|||||||
@ -13,13 +13,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.integration.client</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.integration.client</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - API Management Integration Client</name>
|
<name>WSO2 Carbon - API Management Integration Client</name>
|
||||||
<description>WSO2 Carbon - API Management Integration Client</description>
|
<description>WSO2 Carbon - API Management Integration Client</description>
|
||||||
|
|||||||
@ -13,13 +13,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - API Management Integration Generated Client</name>
|
<name>WSO2 Carbon - API Management Integration Generated Client</name>
|
||||||
<description>WSO2 Carbon - API Management Integration Client</description>
|
<description>WSO2 Carbon - API Management Integration Client</description>
|
||||||
|
|||||||
@ -22,13 +22,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.webapp.publisher</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.webapp.publisher</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - API Management Webapp Publisher</name>
|
<name>WSO2 Carbon - API Management Webapp Publisher</name>
|
||||||
<description>WSO2 Carbon - API Management Webapp Publisher</description>
|
<description>WSO2 Carbon - API Management Webapp Publisher</description>
|
||||||
|
|||||||
@ -22,13 +22,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>apimgt-extensions</artifactId>
|
<artifactId>apimgt-extensions</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - API Management Extensions Component</name>
|
<name>WSO2 Carbon - API Management Extensions Component</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>certificate-mgt</artifactId>
|
<artifactId>certificate-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>certificate-mgt</artifactId>
|
<artifactId>certificate-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -21,13 +21,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>certificate-mgt</artifactId>
|
<artifactId>certificate-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.certificate.mgt.core</artifactId>
|
<artifactId>org.wso2.carbon.certificate.mgt.core</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Certificate Management Core</name>
|
<name>WSO2 Carbon - Certificate Management Core</name>
|
||||||
<description>WSO2 Carbon - Certificate Management Core</description>
|
<description>WSO2 Carbon - Certificate Management Core</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>certificate-mgt</artifactId>
|
<artifactId>certificate-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Certificate Management Component</name>
|
<name>WSO2 Carbon - Certificate Management Component</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt-extensions</artifactId>
|
<artifactId>device-mgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt-extensions</artifactId>
|
<artifactId>device-mgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt-extensions</artifactId>
|
<artifactId>device-mgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt-extensions</artifactId>
|
<artifactId>device-mgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt-extensions</artifactId>
|
<artifactId>device-mgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt-extensions</artifactId>
|
<artifactId>device-mgt-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -68,15 +68,21 @@ import javax.ws.rs.core.Response;
|
|||||||
@Scope(
|
@Scope(
|
||||||
name = "View Analytics",
|
name = "View Analytics",
|
||||||
description = "",
|
description = "",
|
||||||
key = "perm:geo-service:analytics",
|
key = "perm:geo-service:analytics-view",
|
||||||
permissions = {"/device-mgt/devices/owning-device/analytics"}
|
permissions = {"/device-mgt/devices/owning-device/view-analytics"}
|
||||||
|
),
|
||||||
|
@Scope(
|
||||||
|
name = "Manage Alerts",
|
||||||
|
description = "",
|
||||||
|
key = "perm:geo-service:alerts-manage",
|
||||||
|
permissions = {"/device-mgt/devices/owning-device/manage-alerts"}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@Path("/geo-services")
|
@Path("/geo-services")
|
||||||
@Api(value = "Geo Service",
|
@Api(value = "Geo Service",
|
||||||
description = "This carries all the resources related to the geo service functionalities.")
|
description = "This carries all the resources related to the geo service functionalities.")
|
||||||
public interface GeoService {
|
public interface GeoLocationBasedService {
|
||||||
/**
|
/**
|
||||||
* Retrieve Analytics for the device type
|
* Retrieve Analytics for the device type
|
||||||
*/
|
*/
|
||||||
@ -92,7 +98,7 @@ public interface GeoService {
|
|||||||
tags = "Geo Service Management",
|
tags = "Geo Service Management",
|
||||||
extensions = {
|
extensions = {
|
||||||
@Extension(properties = {
|
@Extension(properties = {
|
||||||
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics")
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics-view")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -161,7 +167,7 @@ public interface GeoService {
|
|||||||
tags = "Geo Service Management",
|
tags = "Geo Service Management",
|
||||||
extensions = {
|
extensions = {
|
||||||
@Extension(properties = {
|
@Extension(properties = {
|
||||||
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics")
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:alerts-manage")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -226,7 +232,7 @@ public interface GeoService {
|
|||||||
tags = "Geo Service Management",
|
tags = "Geo Service Management",
|
||||||
extensions = {
|
extensions = {
|
||||||
@Extension(properties = {
|
@Extension(properties = {
|
||||||
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics")
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:alerts-manage")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -291,7 +297,7 @@ public interface GeoService {
|
|||||||
tags = "Geo Service Management",
|
tags = "Geo Service Management",
|
||||||
extensions = {
|
extensions = {
|
||||||
@Extension(properties = {
|
@Extension(properties = {
|
||||||
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics")
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:alerts-manage")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -355,7 +361,7 @@ public interface GeoService {
|
|||||||
tags = "Geo Service Management",
|
tags = "Geo Service Management",
|
||||||
extensions = {
|
extensions = {
|
||||||
@Extension(properties = {
|
@Extension(properties = {
|
||||||
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics")
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:alerts-manage")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -415,13 +421,13 @@ public interface GeoService {
|
|||||||
consumes = "application/json",
|
consumes = "application/json",
|
||||||
produces = "application/json",
|
produces = "application/json",
|
||||||
httpMethod = "DELETE",
|
httpMethod = "DELETE",
|
||||||
value = "Create Geo alerts for the device",
|
value = "Deletes Geo alerts for the device",
|
||||||
notes = "",
|
notes = "",
|
||||||
response = Response.class,
|
response = Response.class,
|
||||||
tags = "Geo Service Management",
|
tags = "Geo Service Management",
|
||||||
extensions = {
|
extensions = {
|
||||||
@Extension(properties = {
|
@Extension(properties = {
|
||||||
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:analytics")
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:geo-service:alerts-manage")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -35,11 +35,12 @@ import org.wso2.carbon.device.mgt.common.authorization.DeviceAccessAuthorization
|
|||||||
import org.wso2.carbon.device.mgt.common.geo.service.Alert;
|
import org.wso2.carbon.device.mgt.common.geo.service.Alert;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.Event;
|
import org.wso2.carbon.device.mgt.common.geo.service.Event;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoFence;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoFence;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoServiceException;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoLocationProviderService;
|
||||||
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoLocationBasedServiceException;
|
||||||
import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroupConstants;
|
import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroupConstants;
|
||||||
import org.wso2.carbon.device.mgt.core.config.DeviceConfigurationManager;
|
import org.wso2.carbon.device.mgt.core.config.DeviceConfigurationManager;
|
||||||
import org.wso2.carbon.device.mgt.core.config.DeviceManagementConfig;
|
import org.wso2.carbon.device.mgt.core.config.DeviceManagementConfig;
|
||||||
import org.wso2.carbon.device.mgt.jaxrs.service.api.GeoService;
|
import org.wso2.carbon.device.mgt.jaxrs.service.api.GeoLocationBasedService;
|
||||||
import org.wso2.carbon.device.mgt.jaxrs.util.Constants;
|
import org.wso2.carbon.device.mgt.jaxrs.util.Constants;
|
||||||
import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils;
|
import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils;
|
||||||
import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtUtil;
|
import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtUtil;
|
||||||
@ -64,9 +65,9 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* The api for
|
* The api for
|
||||||
*/
|
*/
|
||||||
public class GeoServiceImpl implements GeoService {
|
public class GeoLocationBasedServiceImpl implements GeoLocationBasedService {
|
||||||
|
|
||||||
private static Log log = LogFactory.getLog(GeoServiceImpl.class);
|
private static Log log = LogFactory.getLog(GeoLocationBasedServiceImpl.class);
|
||||||
|
|
||||||
@Path("stats/{deviceType}/{deviceId}")
|
@Path("stats/{deviceType}/{deviceId}")
|
||||||
@GET
|
@GET
|
||||||
@ -149,10 +150,10 @@ public class GeoServiceImpl implements GeoService {
|
|||||||
identifier.setId(deviceId);
|
identifier.setId(deviceId);
|
||||||
identifier.setType(deviceType);
|
identifier.setType(deviceType);
|
||||||
|
|
||||||
org.wso2.carbon.device.mgt.common.geo.service.GeoService geoService = DeviceMgtAPIUtils.getGeoService();
|
GeoLocationProviderService geoService = DeviceMgtAPIUtils.getGeoService();
|
||||||
geoService.createGeoAlert(alert, identifier, alertType);
|
geoService.createGeoAlert(alert, identifier, alertType);
|
||||||
return Response.ok().build();
|
return Response.ok().build();
|
||||||
} catch (DeviceAccessAuthorizationException | GeoServiceException e) {
|
} catch (DeviceAccessAuthorizationException | GeoLocationBasedServiceException e) {
|
||||||
String error = "Error occurred while creating the geo alert for " + deviceType + " with id: " + deviceId;
|
String error = "Error occurred while creating the geo alert for " + deviceType + " with id: " + deviceId;
|
||||||
log.error(error, e);
|
log.error(error, e);
|
||||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
||||||
@ -182,10 +183,10 @@ public class GeoServiceImpl implements GeoService {
|
|||||||
identifier.setId(deviceId);
|
identifier.setId(deviceId);
|
||||||
identifier.setType(deviceType);
|
identifier.setType(deviceType);
|
||||||
|
|
||||||
org.wso2.carbon.device.mgt.common.geo.service.GeoService geoService = DeviceMgtAPIUtils.getGeoService();
|
GeoLocationProviderService geoService = DeviceMgtAPIUtils.getGeoService();
|
||||||
geoService.updateGeoAlert(alert, identifier, alertType);
|
geoService.updateGeoAlert(alert, identifier, alertType);
|
||||||
return Response.ok().build();
|
return Response.ok().build();
|
||||||
} catch (DeviceAccessAuthorizationException | GeoServiceException e) {
|
} catch (DeviceAccessAuthorizationException | GeoLocationBasedServiceException e) {
|
||||||
String error = "Error occurred while creating the geo alert for " + deviceType + " with id: " + deviceId;
|
String error = "Error occurred while creating the geo alert for " + deviceType + " with id: " + deviceId;
|
||||||
log.error(error, e);
|
log.error(error, e);
|
||||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
||||||
@ -216,10 +217,10 @@ public class GeoServiceImpl implements GeoService {
|
|||||||
identifier.setId(deviceId);
|
identifier.setId(deviceId);
|
||||||
identifier.setType(deviceType);
|
identifier.setType(deviceType);
|
||||||
|
|
||||||
org.wso2.carbon.device.mgt.common.geo.service.GeoService geoService = DeviceMgtAPIUtils.getGeoService();
|
GeoLocationProviderService geoService = DeviceMgtAPIUtils.getGeoService();
|
||||||
geoService.removeGeoAlert(alertType, identifier, queryName);
|
geoService.removeGeoAlert(alertType, identifier, queryName);
|
||||||
return Response.ok().build();
|
return Response.ok().build();
|
||||||
} catch (DeviceAccessAuthorizationException | GeoServiceException e) {
|
} catch (DeviceAccessAuthorizationException | GeoLocationBasedServiceException e) {
|
||||||
String error = "Error occurred while removing the geo alert for " + deviceType + " with id: " + deviceId;
|
String error = "Error occurred while removing the geo alert for " + deviceType + " with id: " + deviceId;
|
||||||
log.error(error, e);
|
log.error(error, e);
|
||||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
||||||
@ -249,7 +250,7 @@ public class GeoServiceImpl implements GeoService {
|
|||||||
identifier.setId(deviceId);
|
identifier.setId(deviceId);
|
||||||
identifier.setType(deviceType);
|
identifier.setType(deviceType);
|
||||||
|
|
||||||
org.wso2.carbon.device.mgt.common.geo.service.GeoService geoService = DeviceMgtAPIUtils.getGeoService();
|
GeoLocationProviderService geoService = DeviceMgtAPIUtils.getGeoService();
|
||||||
|
|
||||||
if (GeoServices.ALERT_TYPE_WITHIN.equals(alertType)) {
|
if (GeoServices.ALERT_TYPE_WITHIN.equals(alertType)) {
|
||||||
List<GeoFence> alerts = geoService.getWithinAlerts(identifier);
|
List<GeoFence> alerts = geoService.getWithinAlerts(identifier);
|
||||||
@ -271,7 +272,7 @@ public class GeoServiceImpl implements GeoService {
|
|||||||
return Response.ok().entity(alerts).build();
|
return Response.ok().entity(alerts).build();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
} catch (DeviceAccessAuthorizationException | GeoServiceException e) {
|
} catch (DeviceAccessAuthorizationException | GeoLocationBasedServiceException e) {
|
||||||
String error = "Error occurred while getting the geo alerts for " + deviceType + " with id: " + deviceId;
|
String error = "Error occurred while getting the geo alerts for " + deviceType + " with id: " + deviceId;
|
||||||
log.error(error, e);
|
log.error(error, e);
|
||||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
|
||||||
@ -44,7 +44,7 @@ import org.wso2.carbon.device.mgt.common.authorization.DeviceAccessAuthorization
|
|||||||
import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationEntry;
|
import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationEntry;
|
||||||
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration;
|
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration;
|
||||||
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfigurationManagementService;
|
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfigurationManagementService;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoService;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoLocationProviderService;
|
||||||
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService;
|
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService;
|
||||||
import org.wso2.carbon.device.mgt.common.spi.DeviceTypeGeneratorService;
|
import org.wso2.carbon.device.mgt.common.spi.DeviceTypeGeneratorService;
|
||||||
import org.wso2.carbon.device.mgt.core.app.mgt.ApplicationManagementProviderService;
|
import org.wso2.carbon.device.mgt.core.app.mgt.ApplicationManagementProviderService;
|
||||||
@ -427,9 +427,10 @@ public class DeviceMgtAPIUtils {
|
|||||||
return gadgetDataService;
|
return gadgetDataService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GeoService getGeoService() {
|
public static GeoLocationProviderService getGeoService() {
|
||||||
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
||||||
GeoService geoService = (GeoService) ctx.getOSGiService(GeoService.class, null);
|
GeoLocationProviderService
|
||||||
|
geoService = (GeoLocationProviderService) ctx.getOSGiService(GeoLocationProviderService.class, null);
|
||||||
if (geoService == null) {
|
if (geoService == null) {
|
||||||
throw new IllegalStateException("Geo Service has not been initialized.");
|
throw new IllegalStateException("Geo Service has not been initialized.");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
<bean id="roleManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.RoleManagementServiceImpl"/>
|
<bean id="roleManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.RoleManagementServiceImpl"/>
|
||||||
<bean id="userManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.UserManagementServiceImpl"/>
|
<bean id="userManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.UserManagementServiceImpl"/>
|
||||||
<bean id="groupManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.GroupManagementServiceImpl"/>
|
<bean id="groupManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.GroupManagementServiceImpl"/>
|
||||||
<bean id="geoService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.GeoServiceImpl"/>
|
<bean id="geoService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.GeoLocationBasedServiceImpl"/>
|
||||||
<bean id="deviceManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.DeviceManagementAdminServiceImpl"/>
|
<bean id="deviceManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.DeviceManagementAdminServiceImpl"/>
|
||||||
<bean id="applicationManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.ApplicationManagementAdminServiceImpl"/>
|
<bean id="applicationManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.ApplicationManagementAdminServiceImpl"/>
|
||||||
<bean id="groupManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.GroupManagementAdminServiceImpl"/>
|
<bean id="groupManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.GroupManagementAdminServiceImpl"/>
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ package org.wso2.carbon.device.mgt.common.geo.service;
|
|||||||
/**
|
/**
|
||||||
* Custom exception class of Geo Service related operations.
|
* Custom exception class of Geo Service related operations.
|
||||||
*/
|
*/
|
||||||
public class GeoServiceException extends Exception {
|
public class GeoLocationBasedServiceException extends Exception {
|
||||||
|
|
||||||
private static final long serialVersionUID = -7151990041029070298L;
|
private static final long serialVersionUID = -7151990041029070298L;
|
||||||
|
|
||||||
@ -34,26 +34,26 @@ public class GeoServiceException extends Exception {
|
|||||||
this.errorMessage = errorMessage;
|
this.errorMessage = errorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeoServiceException(String msg, Exception nestedEx) {
|
public GeoLocationBasedServiceException(String msg, Exception nestedEx) {
|
||||||
super(msg, nestedEx);
|
super(msg, nestedEx);
|
||||||
setErrorMessage(msg);
|
setErrorMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeoServiceException(String message, Throwable cause) {
|
public GeoLocationBasedServiceException(String message, Throwable cause) {
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
setErrorMessage(message);
|
setErrorMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeoServiceException(String msg) {
|
public GeoLocationBasedServiceException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
setErrorMessage(msg);
|
setErrorMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeoServiceException() {
|
public GeoLocationBasedServiceException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeoServiceException(Throwable cause) {
|
public GeoLocationBasedServiceException(Throwable cause) {
|
||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,26 +26,26 @@ import java.util.List;
|
|||||||
* This represents the Geo service functionality which should be implemented by
|
* This represents the Geo service functionality which should be implemented by
|
||||||
* required GeoServiceManagers.
|
* required GeoServiceManagers.
|
||||||
*/
|
*/
|
||||||
public interface GeoService {
|
public interface GeoLocationProviderService {
|
||||||
|
|
||||||
List<GeoFence> getWithinAlerts(DeviceIdentifier identifier) throws GeoServiceException;
|
List<GeoFence> getWithinAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
List<GeoFence> getExitAlerts(DeviceIdentifier identifier) throws GeoServiceException;
|
List<GeoFence> getExitAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
boolean createGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
boolean createGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
||||||
throws GeoServiceException;
|
throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
boolean updateGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
boolean updateGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
||||||
throws GeoServiceException;
|
throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
boolean removeGeoAlert(String alertType, DeviceIdentifier identifier, String queryName)
|
boolean removeGeoAlert(String alertType, DeviceIdentifier identifier, String queryName)
|
||||||
throws GeoServiceException;
|
throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
String getSpeedAlerts(DeviceIdentifier identifier) throws GeoServiceException;
|
String getSpeedAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
String getProximityAlerts(DeviceIdentifier identifier) throws GeoServiceException;
|
String getProximityAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
List<GeoFence> getStationaryAlerts(DeviceIdentifier identifier) throws GeoServiceException;
|
List<GeoFence> getStationaryAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException;
|
||||||
|
|
||||||
List<GeoFence> getTrafficAlerts(DeviceIdentifier identifier) throws GeoServiceException;
|
List<GeoFence> getTrafficAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException;
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@ -146,6 +146,18 @@
|
|||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>javax.servlet</groupId>
|
||||||
|
<artifactId>servlet-api</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.wso2.carbon.registry</groupId>
|
||||||
|
<artifactId>org.wso2.carbon.registry.indexing</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.wso2.carbon.identity.framework</groupId>
|
||||||
|
<artifactId>org.wso2.carbon.user.mgt</artifactId>
|
||||||
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@ -71,7 +71,6 @@ public class EnrollmentDAOImpl implements EnrollmentDAO {
|
|||||||
Connection conn;
|
Connection conn;
|
||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
int status = -1;
|
|
||||||
try {
|
try {
|
||||||
conn = this.getConnection();
|
conn = this.getConnection();
|
||||||
String sql = "UPDATE DM_ENROLMENT SET OWNERSHIP = ?, STATUS = ?, DATE_OF_LAST_UPDATE = ? WHERE DEVICE_ID = ?" +
|
String sql = "UPDATE DM_ENROLMENT SET OWNERSHIP = ?, STATUS = ?, DATE_OF_LAST_UPDATE = ? WHERE DEVICE_ID = ?" +
|
||||||
@ -84,7 +83,7 @@ public class EnrollmentDAOImpl implements EnrollmentDAO {
|
|||||||
stmt.setString(5, enrolmentInfo.getOwner());
|
stmt.setString(5, enrolmentInfo.getOwner());
|
||||||
stmt.setInt(6, tenantId);
|
stmt.setInt(6, tenantId);
|
||||||
stmt.setInt(7, enrolmentInfo.getId());
|
stmt.setInt(7, enrolmentInfo.getId());
|
||||||
stmt.executeUpdate();
|
int status = stmt.executeUpdate();
|
||||||
return status;
|
return status;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DeviceManagementDAOException("Error occurred while updating enrolment configuration", e);
|
throw new DeviceManagementDAOException("Error occurred while updating enrolment configuration", e);
|
||||||
@ -98,7 +97,6 @@ public class EnrollmentDAOImpl implements EnrollmentDAO {
|
|||||||
Connection conn;
|
Connection conn;
|
||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
int status = -1;
|
|
||||||
try {
|
try {
|
||||||
conn = this.getConnection();
|
conn = this.getConnection();
|
||||||
String sql = "UPDATE DM_ENROLMENT SET OWNERSHIP = ?, STATUS = ?, DATE_OF_LAST_UPDATE = ? WHERE ID = ?";
|
String sql = "UPDATE DM_ENROLMENT SET OWNERSHIP = ?, STATUS = ?, DATE_OF_LAST_UPDATE = ? WHERE ID = ?";
|
||||||
@ -107,7 +105,7 @@ public class EnrollmentDAOImpl implements EnrollmentDAO {
|
|||||||
stmt.setString(2, enrolmentInfo.getStatus().toString());
|
stmt.setString(2, enrolmentInfo.getStatus().toString());
|
||||||
stmt.setTimestamp(3, new Timestamp(new Date().getTime()));
|
stmt.setTimestamp(3, new Timestamp(new Date().getTime()));
|
||||||
stmt.setInt(4, enrolmentInfo.getId());
|
stmt.setInt(4, enrolmentInfo.getId());
|
||||||
stmt.executeUpdate();
|
int status = stmt.executeUpdate();
|
||||||
return status;
|
return status;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DeviceManagementDAOException("Error occurred while updating enrolment configuration", e);
|
throw new DeviceManagementDAOException("Error occurred while updating enrolment configuration", e);
|
||||||
|
|||||||
@ -39,8 +39,8 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
|||||||
import org.wso2.carbon.device.mgt.common.DeviceManagementConstants.GeoServices;
|
import org.wso2.carbon.device.mgt.common.DeviceManagementConstants.GeoServices;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.Alert;
|
import org.wso2.carbon.device.mgt.common.geo.service.Alert;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoFence;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoFence;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoService;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoLocationProviderService;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoServiceException;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoLocationBasedServiceException;
|
||||||
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder;
|
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder;
|
||||||
import org.wso2.carbon.event.processor.stub.EventProcessorAdminServiceStub;
|
import org.wso2.carbon.event.processor.stub.EventProcessorAdminServiceStub;
|
||||||
import org.wso2.carbon.identity.jwt.client.extension.JWTClient;
|
import org.wso2.carbon.identity.jwt.client.extension.JWTClient;
|
||||||
@ -78,9 +78,9 @@ import static org.wso2.carbon.device.mgt.common.DeviceManagementConstants.GeoSer
|
|||||||
* This class will read events, set alerts, read alerts related to geo-fencing and it will
|
* This class will read events, set alerts, read alerts related to geo-fencing and it will
|
||||||
* use Registry as the persistence storage.
|
* use Registry as the persistence storage.
|
||||||
*/
|
*/
|
||||||
public class GeoServcieManagerImpl implements GeoService {
|
public class GeoLocationProviderServiceImpl implements GeoLocationProviderService {
|
||||||
|
|
||||||
private static Log log = LogFactory.getLog(GeoServcieManagerImpl.class);
|
private static Log log = LogFactory.getLog(GeoLocationProviderServiceImpl.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* required soap header for authorization
|
* required soap header for authorization
|
||||||
@ -110,7 +110,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
private static final String SSLV3 = "SSLv3";
|
private static final String SSLV3 = "SSLv3";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GeoFence> getWithinAlerts(DeviceIdentifier identifier) throws GeoServiceException {
|
public List<GeoFence> getWithinAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException {
|
||||||
|
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
||||||
@ -151,14 +151,14 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
return fences;
|
return fences;
|
||||||
} catch (RegistryException | IOException e) {
|
} catch (RegistryException | IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
||||||
identifier.getId(), e);
|
identifier.getId(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GeoFence> getExitAlerts(DeviceIdentifier identifier) throws GeoServiceException {
|
public List<GeoFence> getExitAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException {
|
||||||
|
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
||||||
@ -199,7 +199,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
return fences;
|
return fences;
|
||||||
} catch (RegistryException | IOException e) {
|
} catch (RegistryException | IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
||||||
identifier.getId(), e);
|
identifier.getId(), e);
|
||||||
}
|
}
|
||||||
@ -207,18 +207,18 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean createGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
public boolean createGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
return saveGeoAlert(alert, identifier, alertType, false);
|
return saveGeoAlert(alert, identifier, alertType, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean updateGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
public boolean updateGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
return saveGeoAlert(alert, identifier, alertType, true);
|
return saveGeoAlert(alert, identifier, alertType, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean saveGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType, boolean isUpdate)
|
public boolean saveGeoAlert(Alert alert, DeviceIdentifier identifier, String alertType, boolean isUpdate)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
|
|
||||||
Type type = new TypeToken<Map<String, String>>() {
|
Type type = new TypeToken<Map<String, String>>() {
|
||||||
}.getType();
|
}.getType();
|
||||||
@ -256,7 +256,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
} else if (GeoServices.ALERT_TYPE_TRAFFIC.equals(alertType)) {
|
} else if (GeoServices.ALERT_TYPE_TRAFFIC.equals(alertType)) {
|
||||||
content = parseMap.get(GeoServices.GEO_FENCE_GEO_JSON);
|
content = parseMap.get(GeoServices.GEO_FENCE_GEO_JSON);
|
||||||
} else {
|
} else {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Unrecognized execution plan type: " + alertType + " while creating geo alert");
|
"Unrecognized execution plan type: " + alertType + " while creating geo alert");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,24 +288,24 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
} else {
|
} else {
|
||||||
log.error("Execution plan validation failed: " + validationResponse);
|
log.error("Execution plan validation failed: " + validationResponse);
|
||||||
}
|
}
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while " + action + " geo " + alertType + " alert for " +
|
"Error occurred while " + action + " geo " + alertType + " alert for " +
|
||||||
identifier.getType() + " with id: " + identifier.getId());
|
identifier.getType() + " with id: " + identifier.getId());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (AxisFault axisFault) {
|
} catch (AxisFault axisFault) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Event processor admin service initialization failed while " + action + " geo alert '" +
|
"Event processor admin service initialization failed while " + action + " geo alert '" +
|
||||||
alertType + "' for " + identifier.getType() + " " +
|
alertType + "' for " + identifier.getType() + " " +
|
||||||
"device with id: " + identifier.getId(), axisFault
|
"device with id: " + identifier.getId(), axisFault
|
||||||
);
|
);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Event processor admin service failed while " + action + " geo alert '" +
|
"Event processor admin service failed while " + action + " geo alert '" +
|
||||||
alertType + "' for " + identifier.getType() + " " +
|
alertType + "' for " + identifier.getType() + " " +
|
||||||
"device with id: " + identifier.getId(), e);
|
"device with id: " + identifier.getId(), e);
|
||||||
} catch (JWTClientException e) {
|
} catch (JWTClientException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"JWT token creation failed while " + action + " geo alert '" + alertType + "' for " +
|
"JWT token creation failed while " + action + " geo alert '" + alertType + "' for " +
|
||||||
identifier.getType() + " device with id:" + identifier.getId(), e);
|
identifier.getType() + " device with id:" + identifier.getId(), e);
|
||||||
} finally {
|
} finally {
|
||||||
@ -314,7 +314,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getRegistryPath(String alertType, DeviceIdentifier identifier, String queryName)
|
private String getRegistryPath(String alertType, DeviceIdentifier identifier, String queryName)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
String path = "";
|
String path = "";
|
||||||
if (GeoServices.ALERT_TYPE_WITHIN.equals(alertType)) {
|
if (GeoServices.ALERT_TYPE_WITHIN.equals(alertType)) {
|
||||||
path = GeoServices.REGISTRY_PATH_FOR_ALERTS + GeoServices.ALERT_TYPE_WITHIN +
|
path = GeoServices.REGISTRY_PATH_FOR_ALERTS + GeoServices.ALERT_TYPE_WITHIN +
|
||||||
@ -335,7 +335,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
path = GeoServices.REGISTRY_PATH_FOR_ALERTS + GeoServices.ALERT_TYPE_TRAFFIC +
|
path = GeoServices.REGISTRY_PATH_FOR_ALERTS + GeoServices.ALERT_TYPE_TRAFFIC +
|
||||||
"/" + identifier.getId() + "/" + queryName;
|
"/" + identifier.getId() + "/" + queryName;
|
||||||
} else {
|
} else {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Unrecognized execution plan type: " + alertType);
|
"Unrecognized execution plan type: " + alertType);
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
@ -351,7 +351,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean removeGeoAlert(String alertType, DeviceIdentifier identifier, String queryName)
|
public boolean removeGeoAlert(String alertType, DeviceIdentifier identifier, String queryName)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
removeFromRegistry(alertType, identifier, queryName);
|
removeFromRegistry(alertType, identifier, queryName);
|
||||||
String executionPlanName = getExecutionPlanName(alertType, queryName, identifier.getId());
|
String executionPlanName = getExecutionPlanName(alertType, queryName, identifier.getId());
|
||||||
EventProcessorAdminServiceStub eventprocessorStub = null;
|
EventProcessorAdminServiceStub eventprocessorStub = null;
|
||||||
@ -360,14 +360,14 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
eventprocessorStub.undeployActiveExecutionPlan(executionPlanName);
|
eventprocessorStub.undeployActiveExecutionPlan(executionPlanName);
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Event processor admin service stub invocation failed while removing geo alert '" +
|
"Event processor admin service stub invocation failed while removing geo alert '" +
|
||||||
alertType +
|
alertType +
|
||||||
"': " + executionPlanName + " for " +
|
"': " + executionPlanName + " for " +
|
||||||
identifier.getType() + " device with id:" + identifier.getId(), e
|
identifier.getType() + " device with id:" + identifier.getId(), e
|
||||||
);
|
);
|
||||||
} catch (JWTClientException e) {
|
} catch (JWTClientException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"JWT token creation failed while removing geo alert '" + alertType + "': " +
|
"JWT token creation failed while removing geo alert '" + alertType + "': " +
|
||||||
executionPlanName + " for " +
|
executionPlanName + " for " +
|
||||||
identifier.getType() + " device with id:" + identifier.getId(), e
|
identifier.getType() + " device with id:" + identifier.getId(), e
|
||||||
@ -378,13 +378,13 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void removeFromRegistry(String alertType, DeviceIdentifier identifier, String queryName)
|
private void removeFromRegistry(String alertType, DeviceIdentifier identifier, String queryName)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
String path = "unknown";
|
String path = "unknown";
|
||||||
try {
|
try {
|
||||||
path = getRegistryPath(alertType, identifier, queryName);
|
path = getRegistryPath(alertType, identifier, queryName);
|
||||||
getGovernanceRegistry().delete(path);
|
getGovernanceRegistry().delete(path);
|
||||||
} catch (RegistryException e) {
|
} catch (RegistryException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while removing " + alertType + " alert for " + identifier.getType() +
|
"Error occurred while removing " + alertType + " alert for " + identifier.getType() +
|
||||||
" device with id:" + identifier.getId() + " from the path: " + path);
|
" device with id:" + identifier.getId() + " from the path: " + path);
|
||||||
}
|
}
|
||||||
@ -437,7 +437,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSpeedAlerts(DeviceIdentifier identifier) throws GeoServiceException {
|
public String getSpeedAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException {
|
||||||
try {
|
try {
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
Resource resource = registry.get(GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
Resource resource = registry.get(GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
||||||
@ -455,7 +455,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getProximityAlerts(DeviceIdentifier identifier) throws GeoServiceException {
|
public String getProximityAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException {
|
||||||
try {
|
try {
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
Resource resource = registry.get(GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
Resource resource = registry.get(GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
||||||
@ -479,7 +479,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GeoFence> getStationaryAlerts(DeviceIdentifier identifier) throws GeoServiceException {
|
public List<GeoFence> getStationaryAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException {
|
||||||
|
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
||||||
@ -524,14 +524,14 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
return fences;
|
return fences;
|
||||||
} catch (RegistryException | IOException e) {
|
} catch (RegistryException | IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
||||||
identifier.getId(), e);
|
identifier.getId(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GeoFence> getTrafficAlerts(DeviceIdentifier identifier) throws GeoServiceException {
|
public List<GeoFence> getTrafficAlerts(DeviceIdentifier identifier) throws GeoLocationBasedServiceException {
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
String registryPath = GeoServices.REGISTRY_PATH_FOR_ALERTS +
|
||||||
GeoServices.ALERT_TYPE_STATIONARY + "/" + identifier.getId() + "/";
|
GeoServices.ALERT_TYPE_STATIONARY + "/" + identifier.getId() + "/";
|
||||||
@ -571,30 +571,31 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
return fences;
|
return fences;
|
||||||
} catch (RegistryException | IOException e) {
|
} catch (RegistryException | IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
"Error occurred while getting the geo alerts for " + identifier.getType() + " with id: " +
|
||||||
identifier.getId(), e);
|
identifier.getId(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Registry getGovernanceRegistry() throws GeoServiceException {
|
private Registry getGovernanceRegistry() throws GeoLocationBasedServiceException {
|
||||||
try {
|
try {
|
||||||
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
||||||
return DeviceManagementDataHolder.getInstance().getRegistryService()
|
return DeviceManagementDataHolder.getInstance().getRegistryService()
|
||||||
.getGovernanceSystemRegistry(
|
.getGovernanceSystemRegistry(
|
||||||
tenantId);
|
tenantId);
|
||||||
} catch (RegistryException e) {
|
} catch (RegistryException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error in retrieving governance registry instance: " +
|
"Error in retrieving governance registry instance: " +
|
||||||
e.getMessage(), e);
|
e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String parseTemplate(String alertType, Map<String, String> parseMap) throws GeoServiceException {
|
private String parseTemplate(String alertType, Map<String, String> parseMap) throws
|
||||||
|
GeoLocationBasedServiceException {
|
||||||
String templatePath = "alerts/Geo-ExecutionPlan-" + alertType + "_alert.siddhiql";
|
String templatePath = "alerts/Geo-ExecutionPlan-" + alertType + "_alert.siddhiql";
|
||||||
InputStream resource = getClass().getClassLoader().getResourceAsStream(templatePath);
|
InputStream resource = getClass().getClassLoader().getResourceAsStream(templatePath);
|
||||||
if (resource == null) {
|
if (resource == null) {
|
||||||
throw new GeoServiceException("Could not find template in path : " + templatePath);
|
throw new GeoLocationBasedServiceException("Could not find template in path : " + templatePath);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
//Read template
|
//Read template
|
||||||
@ -606,13 +607,13 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
return template;
|
return template;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while populating the template for the Within Alert", e);
|
"Error occurred while populating the template for the Within Alert", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateRegistry(String path, DeviceIdentifier identifier, Object content, Map<String, String> options)
|
private void updateRegistry(String path, DeviceIdentifier identifier, Object content, Map<String, String> options)
|
||||||
throws GeoServiceException {
|
throws GeoLocationBasedServiceException {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Registry registry = getGovernanceRegistry();
|
Registry registry = getGovernanceRegistry();
|
||||||
@ -624,7 +625,7 @@ public class GeoServcieManagerImpl implements GeoService {
|
|||||||
}
|
}
|
||||||
registry.put(path, newResource);
|
registry.put(path, newResource);
|
||||||
} catch (RegistryException e) {
|
} catch (RegistryException e) {
|
||||||
throw new GeoServiceException(
|
throw new GeoLocationBasedServiceException(
|
||||||
"Error occurred while setting the Within Alert for " + identifier.getType() + " with id: " +
|
"Error occurred while setting the Within Alert for " + identifier.getType() + " with id: " +
|
||||||
identifier.getId(), e);
|
identifier.getId(), e);
|
||||||
}
|
}
|
||||||
@ -25,7 +25,7 @@ import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
|||||||
import org.wso2.carbon.device.mgt.common.app.mgt.ApplicationManagementException;
|
import org.wso2.carbon.device.mgt.common.app.mgt.ApplicationManagementException;
|
||||||
import org.wso2.carbon.device.mgt.common.authorization.DeviceAccessAuthorizationService;
|
import org.wso2.carbon.device.mgt.common.authorization.DeviceAccessAuthorizationService;
|
||||||
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfigurationManagementService;
|
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfigurationManagementService;
|
||||||
import org.wso2.carbon.device.mgt.common.geo.service.GeoService;
|
import org.wso2.carbon.device.mgt.common.geo.service.GeoLocationProviderService;
|
||||||
import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException;
|
import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException;
|
||||||
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService;
|
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService;
|
||||||
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
|
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
|
||||||
@ -45,7 +45,7 @@ import org.wso2.carbon.device.mgt.core.config.datasource.DataSourceConfig;
|
|||||||
import org.wso2.carbon.device.mgt.core.config.tenant.PlatformConfigurationManagementServiceImpl;
|
import org.wso2.carbon.device.mgt.core.config.tenant.PlatformConfigurationManagementServiceImpl;
|
||||||
import org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOFactory;
|
import org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOFactory;
|
||||||
import org.wso2.carbon.device.mgt.core.dao.GroupManagementDAOFactory;
|
import org.wso2.carbon.device.mgt.core.dao.GroupManagementDAOFactory;
|
||||||
import org.wso2.carbon.device.mgt.core.geo.service.GeoServcieManagerImpl;
|
import org.wso2.carbon.device.mgt.core.geo.service.GeoLocationProviderServiceImpl;
|
||||||
import org.wso2.carbon.device.mgt.core.notification.mgt.NotificationManagementServiceImpl;
|
import org.wso2.carbon.device.mgt.core.notification.mgt.NotificationManagementServiceImpl;
|
||||||
import org.wso2.carbon.device.mgt.core.notification.mgt.dao.NotificationManagementDAOFactory;
|
import org.wso2.carbon.device.mgt.core.notification.mgt.dao.NotificationManagementDAOFactory;
|
||||||
import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl;
|
import org.wso2.carbon.device.mgt.core.operation.mgt.OperationManagerImpl;
|
||||||
@ -289,8 +289,8 @@ public class DeviceManagementServiceComponent {
|
|||||||
deviceAccessAuthorizationService, null);
|
deviceAccessAuthorizationService, null);
|
||||||
|
|
||||||
/* Registering Geo Service */
|
/* Registering Geo Service */
|
||||||
GeoService geoService = new GeoServcieManagerImpl();
|
GeoLocationProviderService geoService = new GeoLocationProviderServiceImpl();
|
||||||
bundleContext.registerService(GeoService.class.getName(), geoService, null);
|
bundleContext.registerService(GeoLocationProviderService.class.getName(), geoService, null);
|
||||||
|
|
||||||
/* Registering App Management service */
|
/* Registering App Management service */
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -198,7 +198,7 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|||||||
throw new OperationManagementDAOException(
|
throw new OperationManagementDAOException(
|
||||||
"Error occurred while update device mapping operation status " + "metadata", e);
|
"Error occurred while update device mapping operation status " + "metadata", e);
|
||||||
} finally {
|
} finally {
|
||||||
OperationManagementDAOUtil.cleanupResources(stmt);
|
OperationManagementDAOUtil.cleanupResources(stmt, rs);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -209,18 +209,31 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
ByteArrayOutputStream bao = null;
|
ByteArrayOutputStream bao = null;
|
||||||
ObjectOutputStream oos = null;
|
ObjectOutputStream oos = null;
|
||||||
|
ResultSet rs = null;
|
||||||
try {
|
try {
|
||||||
Connection connection = OperationManagementDAOFactory.getConnection();
|
Connection connection = OperationManagementDAOFactory.getConnection();
|
||||||
|
|
||||||
|
stmt = connection.prepareStatement("SELECT ID FROM DM_ENROLMENT_OP_MAPPING WHERE ENROLMENT_ID = ? " +
|
||||||
|
"AND OPERATION_ID = ?");
|
||||||
|
stmt.setInt(1, enrolmentId);
|
||||||
|
stmt.setInt(2, operationId);
|
||||||
|
|
||||||
|
rs = stmt.executeQuery();
|
||||||
|
int enPrimaryId = 0;
|
||||||
|
if(rs.next()){
|
||||||
|
enPrimaryId = rs.getInt("ID");
|
||||||
|
}
|
||||||
stmt = connection.prepareStatement("INSERT INTO DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID, " +
|
stmt = connection.prepareStatement("INSERT INTO DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID, " +
|
||||||
"OPERATION_RESPONSE, RECEIVED_TIMESTAMP) VALUES(?, ?, ?, ?)");
|
"EN_OP_MAP_ID, OPERATION_RESPONSE, RECEIVED_TIMESTAMP) VALUES(?, ?, ?, ?, ?)");
|
||||||
bao = new ByteArrayOutputStream();
|
bao = new ByteArrayOutputStream();
|
||||||
oos = new ObjectOutputStream(bao);
|
oos = new ObjectOutputStream(bao);
|
||||||
oos.writeObject(operationResponse);
|
oos.writeObject(operationResponse);
|
||||||
|
|
||||||
stmt.setInt(1, operationId);
|
stmt.setInt(1, operationId);
|
||||||
stmt.setInt(2, enrolmentId);
|
stmt.setInt(2, enrolmentId);
|
||||||
stmt.setBytes(3, bao.toByteArray());
|
stmt.setInt(3, enPrimaryId);
|
||||||
stmt.setTimestamp(4, new Timestamp(new Date().getTime()));
|
stmt.setBytes(4, bao.toByteArray());
|
||||||
|
stmt.setTimestamp(5, new Timestamp(new Date().getTime()));
|
||||||
stmt.executeUpdate();
|
stmt.executeUpdate();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new OperationManagementDAOException("Error occurred while inserting operation response", e);
|
throw new OperationManagementDAOException("Error occurred while inserting operation response", e);
|
||||||
@ -241,7 +254,7 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|||||||
log.warn("Error occurred while closing ObjectOutputStream", e);
|
log.warn("Error occurred while closing ObjectOutputStream", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OperationManagementDAOUtil.cleanupResources(stmt);
|
OperationManagementDAOUtil.cleanupResources(stmt, rs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -474,27 +487,8 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|||||||
List<Activity> activities = new ArrayList<>();
|
List<Activity> activities = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
Connection conn = OperationManagementDAOFactory.getConnection();
|
Connection conn = OperationManagementDAOFactory.getConnection();
|
||||||
// String sql = "SELECT eom.ENROLMENT_ID, eom.OPERATION_ID, eom.ID AS EOM_MAPPING_ID, dor.ID AS OP_RES_ID,\n" +
|
|
||||||
// "de.DEVICE_ID, d.DEVICE_IDENTIFICATION, \n" +
|
|
||||||
// "d.DEVICE_TYPE_ID, dt.NAME AS DEVICE_TYPE_NAME, eom.STATUS, eom.CREATED_TIMESTAMP, \n" +
|
|
||||||
// "eom.UPDATED_TIMESTAMP, op.OPERATION_CODE, op.TYPE AS OPERATION_TYPE, dor.OPERATION_RESPONSE, \n" +
|
|
||||||
// "dor.RECEIVED_TIMESTAMP FROM DM_ENROLMENT_OP_MAPPING AS eom \n" +
|
|
||||||
// "INNER JOIN DM_OPERATION AS op ON op.ID=eom.OPERATION_ID\n" +
|
|
||||||
// "INNER JOIN DM_ENROLMENT AS de ON de.ID=eom.ENROLMENT_ID\n" +
|
|
||||||
// "INNER JOIN DM_DEVICE AS d ON d.ID=de.DEVICE_ID \n" +
|
|
||||||
// "INNER JOIN DM_DEVICE_TYPE AS dt ON dt.ID=d.DEVICE_TYPE_ID\n" +
|
|
||||||
// "LEFT JOIN DM_DEVICE_OPERATION_RESPONSE AS dor ON dor.ENROLMENT_ID=de.id \n" +
|
|
||||||
// "AND dor.OPERATION_ID=eom.OPERATION_ID\n" +
|
|
||||||
// "WHERE eom.UPDATED_TIMESTAMP > ? AND de.TENANT_ID = ? ORDER BY eom.OPERATION_ID";
|
|
||||||
// if(limit > 0) {
|
|
||||||
// sql = sql + " LIMIT ?";
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if(offset > 0) {
|
|
||||||
// sql = sql + " OFFSET ?";
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
String sql = "SELECT opm.ENROLMENT_ID, opm.CREATED_TIMESTAMP, opm.UPDATED_TIMESTAMP, opm.OPERATION_ID,\n" +
|
String sql = "SELECT opm.ENROLMENT_ID, opm.CREATED_TIMESTAMP, opm.UPDATED_TIMESTAMP, opm.OPERATION_ID,\n" +
|
||||||
"op.OPERATION_CODE, op.TYPE as OPERATION_TYPE, opm.STATUS, en.DEVICE_ID,\n" +
|
"op.OPERATION_CODE, op.TYPE as OPERATION_TYPE, opm.STATUS, en.DEVICE_ID,\n" +
|
||||||
"ops.RECEIVED_TIMESTAMP, ops.ID as OP_RES_ID, ops.OPERATION_RESPONSE,\n" +
|
"ops.RECEIVED_TIMESTAMP, ops.ID as OP_RES_ID, ops.OPERATION_RESPONSE,\n" +
|
||||||
@ -514,15 +508,60 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|||||||
} else {
|
} else {
|
||||||
sql += "ORDER BY opm.UPDATED_TIMESTAMP asc LIMIT ? OFFSET ?";
|
sql += "ORDER BY opm.UPDATED_TIMESTAMP asc LIMIT ? OFFSET ?";
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
||||||
|
String sql = "SELECT " +
|
||||||
|
" opr.ENROLMENT_ID, " +
|
||||||
|
" opr.CREATED_TIMESTAMP, " +
|
||||||
|
" opr.UPDATED_TIMESTAMP, " +
|
||||||
|
" opr.OPERATION_ID, " +
|
||||||
|
" opr.OPERATION_CODE, " +
|
||||||
|
" opr.OPERATION_TYPE, " +
|
||||||
|
" opr.STATUS, " +
|
||||||
|
" opr.DEVICE_ID, " +
|
||||||
|
" opr.DEVICE_IDENTIFICATION, " +
|
||||||
|
" opr.DEVICE_TYPE, " +
|
||||||
|
" ops.RECEIVED_TIMESTAMP, " +
|
||||||
|
" ops.ID OP_RES_ID, " +
|
||||||
|
" ops.OPERATION_RESPONSE " +
|
||||||
|
" FROM " +
|
||||||
|
" (SELECT " +
|
||||||
|
" opm.ID MAPPING_ID, " +
|
||||||
|
" opm.ENROLMENT_ID, " +
|
||||||
|
" opm.CREATED_TIMESTAMP, " +
|
||||||
|
" opm.UPDATED_TIMESTAMP, " +
|
||||||
|
" opm.OPERATION_ID, " +
|
||||||
|
" op.OPERATION_CODE, " +
|
||||||
|
" op.TYPE OPERATION_TYPE, " +
|
||||||
|
" opm.STATUS, " +
|
||||||
|
" en.DEVICE_ID, " +
|
||||||
|
" de.DEVICE_IDENTIFICATION, " +
|
||||||
|
" dt.NAME DEVICE_TYPE, " +
|
||||||
|
" de.TENANT_ID " +
|
||||||
|
" FROM" +
|
||||||
|
" DM_ENROLMENT_OP_MAPPING opm " +
|
||||||
|
" INNER JOIN DM_OPERATION op ON opm.OPERATION_ID = op.ID " +
|
||||||
|
" INNER JOIN DM_ENROLMENT en ON opm.ENROLMENT_ID = en.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE de ON en.DEVICE_ID = de.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE_TYPE dt ON dt.ID = de.DEVICE_TYPE_ID " +
|
||||||
|
" WHERE " +
|
||||||
|
" opm.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND de.TENANT_ID = ? " +
|
||||||
|
" ORDER BY opm.UPDATED_TIMESTAMP " +
|
||||||
|
" LIMIT ? OFFSET ?) opr " +
|
||||||
|
" LEFT JOIN DM_DEVICE_OPERATION_RESPONSE ops ON opr.MAPPING_ID = ops.EN_OP_MAP_ID " +
|
||||||
|
" WHERE " +
|
||||||
|
" opr.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND opr.TENANT_ID = ? ";
|
||||||
|
|
||||||
stmt = conn.prepareStatement(sql);
|
stmt = conn.prepareStatement(sql);
|
||||||
|
|
||||||
stmt.setLong(1, timestamp);
|
stmt.setLong(1, timestamp);
|
||||||
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
|
||||||
stmt.setInt(2, tenantId);
|
stmt.setInt(2, tenantId);
|
||||||
stmt.setInt(3, limit);
|
stmt.setInt(3, limit);
|
||||||
stmt.setInt(4, offset);
|
stmt.setInt(4, offset);
|
||||||
|
stmt.setLong(5, timestamp);
|
||||||
|
stmt.setInt(6, tenantId);
|
||||||
|
|
||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
|
|
||||||
|
|||||||
@ -18,15 +18,25 @@
|
|||||||
|
|
||||||
package org.wso2.carbon.device.mgt.core.operation.mgt.dao.impl.operation;
|
package org.wso2.carbon.device.mgt.core.operation.mgt.dao.impl.operation;
|
||||||
|
|
||||||
|
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||||
|
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||||
|
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
|
||||||
|
import org.wso2.carbon.device.mgt.common.operation.mgt.ActivityStatus;
|
||||||
|
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationResponse;
|
||||||
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.Operation;
|
import org.wso2.carbon.device.mgt.core.dto.operation.mgt.Operation;
|
||||||
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOException;
|
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOException;
|
||||||
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOFactory;
|
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOFactory;
|
||||||
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOUtil;
|
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOUtil;
|
||||||
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.impl.GenericOperationDAOImpl;
|
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.impl.GenericOperationDAOImpl;
|
||||||
|
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.util.OperationDAOUtil;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class holds the implementation of OperationDAO which can be used to support MySQl db syntax.
|
* This class holds the implementation of OperationDAO which can be used to support MySQl db syntax.
|
||||||
@ -66,4 +76,163 @@ public class MySQLOperationDAOImpl extends GenericOperationDAOImpl {
|
|||||||
}
|
}
|
||||||
return isUpdated;
|
return isUpdated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Activity> getActivitiesUpdatedAfter(long timestamp, int limit,
|
||||||
|
int offset) throws OperationManagementDAOException {
|
||||||
|
PreparedStatement stmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
|
List<Activity> activities = new ArrayList<>();
|
||||||
|
try {
|
||||||
|
Connection conn = OperationManagementDAOFactory.getConnection();
|
||||||
|
|
||||||
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
||||||
|
String sql = "SELECT " +
|
||||||
|
" opr.ENROLMENT_ID, " +
|
||||||
|
" opr.CREATED_TIMESTAMP, " +
|
||||||
|
" opr.UPDATED_TIMESTAMP, " +
|
||||||
|
" opr.OPERATION_ID, " +
|
||||||
|
" opr.OPERATION_CODE, " +
|
||||||
|
" opr.OPERATION_TYPE, " +
|
||||||
|
" opr.STATUS, " +
|
||||||
|
" opr.DEVICE_ID, " +
|
||||||
|
" opr.DEVICE_IDENTIFICATION, " +
|
||||||
|
" opr.DEVICE_TYPE, " +
|
||||||
|
" ops.RECEIVED_TIMESTAMP, " +
|
||||||
|
" ops.ID OP_RES_ID, " +
|
||||||
|
" ops.OPERATION_RESPONSE " +
|
||||||
|
" FROM " +
|
||||||
|
" (SELECT " +
|
||||||
|
" opm.ID MAPPING_ID, " +
|
||||||
|
" opm.ENROLMENT_ID, " +
|
||||||
|
" opm.CREATED_TIMESTAMP, " +
|
||||||
|
" opm.UPDATED_TIMESTAMP, " +
|
||||||
|
" opm.OPERATION_ID, " +
|
||||||
|
" op.OPERATION_CODE, " +
|
||||||
|
" op.TYPE OPERATION_TYPE, " +
|
||||||
|
" opm.STATUS, " +
|
||||||
|
" en.DEVICE_ID, " +
|
||||||
|
" de.DEVICE_IDENTIFICATION, " +
|
||||||
|
" dt.NAME DEVICE_TYPE, " +
|
||||||
|
" de.TENANT_ID " +
|
||||||
|
" FROM" +
|
||||||
|
" DM_ENROLMENT_OP_MAPPING opm FORCE INDEX (IDX_ENROLMENT_OP_MAPPING) " +
|
||||||
|
" INNER JOIN DM_OPERATION op ON opm.OPERATION_ID = op.ID " +
|
||||||
|
" INNER JOIN DM_ENROLMENT en ON opm.ENROLMENT_ID = en.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE de ON en.DEVICE_ID = de.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE_TYPE dt ON dt.ID = de.DEVICE_TYPE_ID " +
|
||||||
|
" WHERE" +
|
||||||
|
" opm.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND de.TENANT_ID = ? " +
|
||||||
|
" ORDER BY opm.UPDATED_TIMESTAMP " +
|
||||||
|
" LIMIT ? OFFSET ?) opr " +
|
||||||
|
" LEFT JOIN DM_DEVICE_OPERATION_RESPONSE ops ON opr.MAPPING_ID = ops.EN_OP_MAP_ID " +
|
||||||
|
" WHERE " +
|
||||||
|
" opr.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND opr.TENANT_ID = ? ";
|
||||||
|
|
||||||
|
stmt = conn.prepareStatement(sql);
|
||||||
|
|
||||||
|
stmt.setLong(1, timestamp);
|
||||||
|
stmt.setInt(2, tenantId);
|
||||||
|
stmt.setInt(3, limit);
|
||||||
|
stmt.setInt(4, offset);
|
||||||
|
stmt.setLong(5, timestamp);
|
||||||
|
stmt.setInt(6, tenantId);
|
||||||
|
|
||||||
|
rs = stmt.executeQuery();
|
||||||
|
|
||||||
|
int operationId = 0;
|
||||||
|
int enrolmentId = 0;
|
||||||
|
int responseId = 0;
|
||||||
|
Activity activity = null;
|
||||||
|
ActivityStatus activityStatus = null;
|
||||||
|
while (rs.next()) {
|
||||||
|
|
||||||
|
if (operationId != rs.getInt("OPERATION_ID")) {
|
||||||
|
activity = new Activity();
|
||||||
|
activities.add(activity);
|
||||||
|
List<ActivityStatus> statusList = new ArrayList<>();
|
||||||
|
activityStatus = new ActivityStatus();
|
||||||
|
|
||||||
|
operationId = rs.getInt("OPERATION_ID");
|
||||||
|
enrolmentId = rs.getInt("ENROLMENT_ID");
|
||||||
|
|
||||||
|
activity.setType(Activity.Type.valueOf(rs.getString("OPERATION_TYPE")));
|
||||||
|
activity.setCreatedTimeStamp(new java.util.Date(rs.getLong(("CREATED_TIMESTAMP")) * 1000).toString());
|
||||||
|
activity.setCode(rs.getString("OPERATION_CODE"));
|
||||||
|
|
||||||
|
DeviceIdentifier deviceIdentifier = new DeviceIdentifier();
|
||||||
|
deviceIdentifier.setId(rs.getString("DEVICE_IDENTIFICATION"));
|
||||||
|
deviceIdentifier.setType(rs.getString("DEVICE_TYPE"));
|
||||||
|
activityStatus.setDeviceIdentifier(deviceIdentifier);
|
||||||
|
|
||||||
|
activityStatus.setStatus(ActivityStatus.Status.valueOf(rs.getString("STATUS")));
|
||||||
|
|
||||||
|
List<OperationResponse> operationResponses = new ArrayList<>();
|
||||||
|
if (rs.getInt("UPDATED_TIMESTAMP") != 0) {
|
||||||
|
activityStatus.setUpdatedTimestamp(new java.util.Date(
|
||||||
|
rs.getLong(("UPDATED_TIMESTAMP")) * 1000).toString());
|
||||||
|
|
||||||
|
}
|
||||||
|
if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) {
|
||||||
|
operationResponses.add(OperationDAOUtil.getOperationResponse(rs));
|
||||||
|
responseId = rs.getInt("OP_RES_ID");
|
||||||
|
}
|
||||||
|
activityStatus.setResponses(operationResponses);
|
||||||
|
statusList.add(activityStatus);
|
||||||
|
activity.setActivityStatus(statusList);
|
||||||
|
activity.setActivityId(OperationDAOUtil.getActivityId(rs.getInt("OPERATION_ID")));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (operationId == rs.getInt("OPERATION_ID") && enrolmentId != rs.getInt("ENROLMENT_ID")) {
|
||||||
|
activityStatus = new ActivityStatus();
|
||||||
|
|
||||||
|
activity.setType(Activity.Type.valueOf(rs.getString("OPERATION_TYPE")));
|
||||||
|
activity.setCreatedTimeStamp(new java.util.Date(rs.getLong(("CREATED_TIMESTAMP")) * 1000).toString());
|
||||||
|
activity.setCode(rs.getString("OPERATION_CODE"));
|
||||||
|
|
||||||
|
DeviceIdentifier deviceIdentifier = new DeviceIdentifier();
|
||||||
|
deviceIdentifier.setId(rs.getString("DEVICE_IDENTIFICATION"));
|
||||||
|
deviceIdentifier.setType(rs.getString("DEVICE_TYPE"));
|
||||||
|
activityStatus.setDeviceIdentifier(deviceIdentifier);
|
||||||
|
|
||||||
|
activityStatus.setStatus(ActivityStatus.Status.valueOf(rs.getString("STATUS")));
|
||||||
|
|
||||||
|
List<OperationResponse> operationResponses = new ArrayList<>();
|
||||||
|
if (rs.getInt("UPDATED_TIMESTAMP") != 0) {
|
||||||
|
activityStatus.setUpdatedTimestamp(new java.util.Date(
|
||||||
|
rs.getLong(("UPDATED_TIMESTAMP")) * 1000).toString());
|
||||||
|
}
|
||||||
|
if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) {
|
||||||
|
operationResponses.add(OperationDAOUtil.getOperationResponse(rs));
|
||||||
|
responseId = rs.getInt("OP_RES_ID");
|
||||||
|
}
|
||||||
|
activityStatus.setResponses(operationResponses);
|
||||||
|
activity.getActivityStatus().add(activityStatus);
|
||||||
|
|
||||||
|
enrolmentId = rs.getInt("ENROLMENT_ID");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rs.getInt("OP_RES_ID") != 0 && responseId != rs.getInt("OP_RES_ID")) {
|
||||||
|
if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) {
|
||||||
|
activityStatus.getResponses().add(OperationDAOUtil.getOperationResponse(rs));
|
||||||
|
responseId = rs.getInt("OP_RES_ID");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (SQLException e) {
|
||||||
|
throw new OperationManagementDAOException("Error occurred while getting the operation details from " +
|
||||||
|
"the database.", e);
|
||||||
|
} catch (ClassNotFoundException e) {
|
||||||
|
throw new OperationManagementDAOException("Error occurred while converting the operation response to string.", e);
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new OperationManagementDAOException("IO exception occurred while converting the operations responses.", e);
|
||||||
|
} finally {
|
||||||
|
OperationManagementDAOUtil.cleanupResources(stmt, rs);
|
||||||
|
}
|
||||||
|
return activities;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@ public class OracleOperationDAOImpl extends GenericOperationDAOImpl {
|
|||||||
List<Activity> activities = new ArrayList<>();
|
List<Activity> activities = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
Connection conn = OperationManagementDAOFactory.getConnection();
|
Connection conn = OperationManagementDAOFactory.getConnection();
|
||||||
String sql = "SELECT opm.ENROLMENT_ID, opm.CREATED_TIMESTAMP, opm.UPDATED_TIMESTAMP, opm.OPERATION_ID,\n"
|
/*String sql = "SELECT opm.ENROLMENT_ID, opm.CREATED_TIMESTAMP, opm.UPDATED_TIMESTAMP, opm.OPERATION_ID,\n"
|
||||||
+ "op.OPERATION_CODE, op.TYPE OPERATION_TYPE, opm.STATUS, en.DEVICE_ID,\n"
|
+ "op.OPERATION_CODE, op.TYPE OPERATION_TYPE, opm.STATUS, en.DEVICE_ID,\n"
|
||||||
+ "ops.RECEIVED_TIMESTAMP, ops.ID OP_RES_ID, ops.OPERATION_RESPONSE,\n"
|
+ "ops.RECEIVED_TIMESTAMP, ops.ID OP_RES_ID, ops.OPERATION_RESPONSE,\n"
|
||||||
+ "de.DEVICE_IDENTIFICATION, dt.NAME DEVICE_TYPE\n" + "FROM DM_ENROLMENT_OP_MAPPING opm\n"
|
+ "de.DEVICE_IDENTIFICATION, dt.NAME DEVICE_TYPE\n" + "FROM DM_ENROLMENT_OP_MAPPING opm\n"
|
||||||
@ -205,12 +205,62 @@ public class OracleOperationDAOImpl extends GenericOperationDAOImpl {
|
|||||||
} else {
|
} else {
|
||||||
sql += "ORDER BY opm.UPDATED_TIMESTAMP asc OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
|
sql += "ORDER BY opm.UPDATED_TIMESTAMP asc OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
||||||
|
|
||||||
|
String sql = "SELECT " +
|
||||||
|
" opr.ENROLMENT_ID, " +
|
||||||
|
" opr.CREATED_TIMESTAMP, " +
|
||||||
|
" opr.UPDATED_TIMESTAMP, " +
|
||||||
|
" opr.OPERATION_ID, " +
|
||||||
|
" opr.OPERATION_CODE, " +
|
||||||
|
" opr.OPERATION_TYPE, " +
|
||||||
|
" opr.STATUS, " +
|
||||||
|
" opr.DEVICE_ID, " +
|
||||||
|
" opr.DEVICE_IDENTIFICATION, " +
|
||||||
|
" opr.DEVICE_TYPE, " +
|
||||||
|
" ops.RECEIVED_TIMESTAMP, " +
|
||||||
|
" ops.ID OP_RES_ID, " +
|
||||||
|
" ops.OPERATION_RESPONSE " +
|
||||||
|
" FROM " +
|
||||||
|
" (SELECT " +
|
||||||
|
" opm.ID MAPPING_ID, " +
|
||||||
|
" opm.ENROLMENT_ID, " +
|
||||||
|
" opm.CREATED_TIMESTAMP, " +
|
||||||
|
" opm.UPDATED_TIMESTAMP, " +
|
||||||
|
" opm.OPERATION_ID, " +
|
||||||
|
" op.OPERATION_CODE, " +
|
||||||
|
" op.TYPE OPERATION_TYPE, " +
|
||||||
|
" opm.STATUS, " +
|
||||||
|
" en.DEVICE_ID, " +
|
||||||
|
" de.DEVICE_IDENTIFICATION, " +
|
||||||
|
" dt.NAME DEVICE_TYPE, " +
|
||||||
|
" de.TENANT_ID " +
|
||||||
|
" FROM " +
|
||||||
|
" DM_ENROLMENT_OP_MAPPING opm " +
|
||||||
|
" INNER JOIN DM_OPERATION op ON opm.OPERATION_ID = op.ID " +
|
||||||
|
" INNER JOIN DM_ENROLMENT en ON opm.ENROLMENT_ID = en.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE de ON en.DEVICE_ID = de.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE_TYPE dt ON dt.ID = de.DEVICE_TYPE_ID " +
|
||||||
|
" WHERE " +
|
||||||
|
" opm.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND de.TENANT_ID = ? " +
|
||||||
|
" ORDER BY opm.UPDATED_TIMESTAMP " +
|
||||||
|
" OFFSET ? ROWS FETCH NEXT ? ROWS ONLY) opr " +
|
||||||
|
" LEFT JOIN DM_DEVICE_OPERATION_RESPONSE ops ON opr.MAPPING_ID = ops.EN_OP_MAP_ID " +
|
||||||
|
" WHERE " +
|
||||||
|
" opr.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND opr.TENANT_ID = ? ";
|
||||||
|
|
||||||
|
|
||||||
stmt = conn.prepareStatement(sql);
|
stmt = conn.prepareStatement(sql);
|
||||||
stmt.setLong(1, timestamp);
|
stmt.setLong(1, timestamp);
|
||||||
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
|
||||||
stmt.setInt(2, tenantId);
|
stmt.setInt(2, tenantId);
|
||||||
stmt.setInt(3, offset);
|
stmt.setInt(3, offset);
|
||||||
stmt.setInt(4, limit);
|
stmt.setInt(4, limit);
|
||||||
|
stmt.setLong(5, timestamp);
|
||||||
|
stmt.setInt(6, tenantId);
|
||||||
|
|
||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
|
|
||||||
|
|||||||
@ -145,7 +145,7 @@ public class SQLServerOperationDAOImpl extends GenericOperationDAOImpl {
|
|||||||
List<Activity> activities = new ArrayList<>();
|
List<Activity> activities = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
Connection conn = OperationManagementDAOFactory.getConnection();
|
Connection conn = OperationManagementDAOFactory.getConnection();
|
||||||
String sql = "SELECT opm.ENROLMENT_ID, opm.CREATED_TIMESTAMP, opm.UPDATED_TIMESTAMP, opm.OPERATION_ID,\n"
|
/*String sql = "SELECT opm.ENROLMENT_ID, opm.CREATED_TIMESTAMP, opm.UPDATED_TIMESTAMP, opm.OPERATION_ID,\n"
|
||||||
+ "op.OPERATION_CODE, op.TYPE OPERATION_TYPE, opm.STATUS, en.DEVICE_ID,\n"
|
+ "op.OPERATION_CODE, op.TYPE OPERATION_TYPE, opm.STATUS, en.DEVICE_ID,\n"
|
||||||
+ "ops.RECEIVED_TIMESTAMP, ops.ID OP_RES_ID, ops.OPERATION_RESPONSE,\n"
|
+ "ops.RECEIVED_TIMESTAMP, ops.ID OP_RES_ID, ops.OPERATION_RESPONSE,\n"
|
||||||
+ "de.DEVICE_IDENTIFICATION, dt.NAME DEVICE_TYPE\n" + "FROM DM_ENROLMENT_OP_MAPPING opm\n"
|
+ "de.DEVICE_IDENTIFICATION, dt.NAME DEVICE_TYPE\n" + "FROM DM_ENROLMENT_OP_MAPPING opm\n"
|
||||||
@ -161,13 +161,61 @@ public class SQLServerOperationDAOImpl extends GenericOperationDAOImpl {
|
|||||||
sql += "ORDER BY opm.OPERATION_ID OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
|
sql += "ORDER BY opm.OPERATION_ID OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
|
||||||
} else {
|
} else {
|
||||||
sql += "ORDER BY opm.UPDATED_TIMESTAMP asc OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
|
sql += "ORDER BY opm.UPDATED_TIMESTAMP asc OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
||||||
|
|
||||||
|
String sql = "SELECT " +
|
||||||
|
" opr.ENROLMENT_ID, " +
|
||||||
|
" opr.CREATED_TIMESTAMP, " +
|
||||||
|
" opr.UPDATED_TIMESTAMP, " +
|
||||||
|
" opr.OPERATION_ID, " +
|
||||||
|
" opr.OPERATION_CODE, " +
|
||||||
|
" opr.OPERATION_TYPE, " +
|
||||||
|
" opr.STATUS, " +
|
||||||
|
" opr.DEVICE_ID, " +
|
||||||
|
" opr.DEVICE_IDENTIFICATION, " +
|
||||||
|
" opr.DEVICE_TYPE, " +
|
||||||
|
" ops.RECEIVED_TIMESTAMP, " +
|
||||||
|
" ops.ID OP_RES_ID, " +
|
||||||
|
" ops.OPERATION_RESPONSE " +
|
||||||
|
" FROM " +
|
||||||
|
" (SELECT " +
|
||||||
|
" opm.ID MAPPING_ID, " +
|
||||||
|
" opm.ENROLMENT_ID, " +
|
||||||
|
" opm.CREATED_TIMESTAMP, " +
|
||||||
|
" opm.UPDATED_TIMESTAMP, " +
|
||||||
|
" opm.OPERATION_ID, " +
|
||||||
|
" op.OPERATION_CODE, " +
|
||||||
|
" op.TYPE OPERATION_TYPE, " +
|
||||||
|
" opm.STATUS, " +
|
||||||
|
" en.DEVICE_ID, " +
|
||||||
|
" de.DEVICE_IDENTIFICATION, " +
|
||||||
|
" dt.NAME DEVICE_TYPE, " +
|
||||||
|
" de.TENANT_ID " +
|
||||||
|
" FROM" +
|
||||||
|
" DM_ENROLMENT_OP_MAPPING opm " +
|
||||||
|
" INNER JOIN DM_OPERATION op ON opm.OPERATION_ID = op.ID " +
|
||||||
|
" INNER JOIN DM_ENROLMENT en ON opm.ENROLMENT_ID = en.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE de ON en.DEVICE_ID = de.ID " +
|
||||||
|
" INNER JOIN DM_DEVICE_TYPE dt ON dt.ID = de.DEVICE_TYPE_ID " +
|
||||||
|
" WHERE " +
|
||||||
|
" opm.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND de.TENANT_ID = ? " +
|
||||||
|
" ORDER BY opm.UPDATED_TIMESTAMP " +
|
||||||
|
" OFFSET ? ROWS FETCH NEXT ? ROWS ONLY) opr " +
|
||||||
|
" LEFT JOIN DM_DEVICE_OPERATION_RESPONSE ops ON opr.MAPPING_ID = ops.EN_OP_MAP_ID " +
|
||||||
|
" WHERE" +
|
||||||
|
" opr.UPDATED_TIMESTAMP > ? " +
|
||||||
|
" AND opr.TENANT_ID = ? ";
|
||||||
|
|
||||||
stmt = conn.prepareStatement(sql);
|
stmt = conn.prepareStatement(sql);
|
||||||
stmt.setLong(1, timestamp);
|
stmt.setLong(1, timestamp);
|
||||||
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
|
||||||
stmt.setInt(2, tenantId);
|
stmt.setInt(2, tenantId);
|
||||||
stmt.setInt(3, offset);
|
stmt.setInt(3, offset);
|
||||||
stmt.setInt(4, limit);
|
stmt.setInt(4, limit);
|
||||||
|
stmt.setLong(5, timestamp);
|
||||||
|
stmt.setInt(6, tenantId);
|
||||||
|
|
||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -149,7 +149,8 @@
|
|||||||
"perm:device-types:events:view",
|
"perm:device-types:events:view",
|
||||||
"perm:admin:device-type",
|
"perm:admin:device-type",
|
||||||
"perm:device:enroll",
|
"perm:device:enroll",
|
||||||
"perm:geo-service:analytics"
|
"perm:geo-service:analytics-view",
|
||||||
|
"perm:geo-service:alerts-manage"
|
||||||
],
|
],
|
||||||
"isOAuthEnabled": true,
|
"isOAuthEnabled": true,
|
||||||
"backendRestEndpoints": {
|
"backendRestEndpoints": {
|
||||||
|
|||||||
@ -67,15 +67,19 @@ deviceModule = function () {
|
|||||||
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
||||||
if (!carbonUser) {
|
if (!carbonUser) {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
var userName = carbonUser.username + "@" + carbonUser.domain;
|
var userName = carbonUser.username + "@" + carbonUser.domain;
|
||||||
var locationHistory = [];
|
var locationHistory = [];
|
||||||
|
var geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.isEnabled;
|
||||||
|
if (geoServicesEnabled) {
|
||||||
try {
|
try {
|
||||||
var fromDate = new Date();
|
var fromDate = new Date();
|
||||||
fromDate.setHours(fromDate.getHours() - 2);
|
fromDate.setHours(fromDate.getHours() - 2);
|
||||||
var toDate = new Date();
|
var toDate = new Date();
|
||||||
var serviceUrl = devicemgtProps["httpsURL"] + '/api/device-mgt/v1.0/geo-services/stats/' + deviceType + '/' + deviceId;
|
var serviceUrl = devicemgtProps["httpsURL"] + '/api/device-mgt/v1.0/geo-services/stats/' + deviceType + '/' + deviceId + '?from=' + fromDate + '&to=' + toDate;
|
||||||
serviceInvokers.XMLHttp.get(serviceUrl,
|
serviceInvokers.XMLHttp.get(serviceUrl,
|
||||||
function (backendResponse) {
|
function (backendResponse) {
|
||||||
if (backendResponse.status === 200 && backendResponse.responseText) {
|
if (backendResponse.status === 200 && backendResponse.responseText) {
|
||||||
@ -85,6 +89,7 @@ deviceModule = function () {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.error(e.message, e);
|
log.error(e.message, e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var locationInfo = {};
|
var locationInfo = {};
|
||||||
try {
|
try {
|
||||||
@ -261,7 +266,9 @@ deviceModule = function () {
|
|||||||
url, function (responsePayload) {
|
url, function (responsePayload) {
|
||||||
if(!responsePayload["responseText"]){
|
if(!responsePayload["responseText"]){
|
||||||
log.error("Error while fetching device count. API `" + url + "` returns HTTP: " + responsePayload["status"]);
|
log.error("Error while fetching device count. API `" + url + "` returns HTTP: " + responsePayload["status"]);
|
||||||
throw constants["ERRORS"]["UNKNOWN_ERROR"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return parse(responsePayload["responseText"])["count"];
|
return parse(responsePayload["responseText"])["count"];
|
||||||
},
|
},
|
||||||
@ -272,7 +279,9 @@ deviceModule = function () {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -300,7 +309,9 @@ deviceModule = function () {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -369,7 +380,9 @@ deviceModule = function () {
|
|||||||
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
||||||
if (!carbonUser) {
|
if (!carbonUser) {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
var userName = carbonUser.username + "@" + carbonUser.domain;
|
var userName = carbonUser.username + "@" + carbonUser.domain;
|
||||||
var config = {};
|
var config = {};
|
||||||
|
|||||||
@ -41,7 +41,9 @@ var groupModule = {};
|
|||||||
} else {
|
} else {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
log.error("Access denied for user: " + user.username);
|
log.error("Access denied for user: " + user.username);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@ -127,7 +127,9 @@ policyModule = function () {
|
|||||||
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
||||||
if (!carbonUser) {
|
if (!carbonUser) {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var url = devicemgtProps["httpsURL"] + devicemgtProps["backendRestEndpoints"]["deviceMgt"] +
|
var url = devicemgtProps["httpsURL"] + devicemgtProps["backendRestEndpoints"]["deviceMgt"] +
|
||||||
@ -145,7 +147,9 @@ policyModule = function () {
|
|||||||
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
var carbonUser = session.get(constants["USER_SESSION_KEY"]);
|
||||||
if (!carbonUser) {
|
if (!carbonUser) {
|
||||||
log.error("User object was not found in the session");
|
log.error("User object was not found in the session");
|
||||||
throw constants["ERRORS"]["USER_NOT_FOUND"];
|
userModule.logout(function () {
|
||||||
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var url = devicemgtProps["httpsURL"] + devicemgtProps["backendRestEndpoints"]["deviceMgt"] +
|
var url = devicemgtProps["httpsURL"] + devicemgtProps["backendRestEndpoints"]["deviceMgt"] +
|
||||||
|
|||||||
@ -313,7 +313,7 @@ function loadDevices(searchType, searchParam) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
targets: 4,
|
targets: 4,
|
||||||
data: 'deviceType',
|
data: 'type',
|
||||||
class: 'remove-padding-top viewEnabledIcon',
|
class: 'remove-padding-top viewEnabledIcon',
|
||||||
render: function (status, type, row, meta) {
|
render: function (status, type, row, meta) {
|
||||||
return getDeviceTypeLabel(row.deviceType);
|
return getDeviceTypeLabel(row.deviceType);
|
||||||
@ -333,7 +333,7 @@ function loadDevices(searchType, searchParam) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
targets: 6,
|
targets: 6,
|
||||||
data: 'status',
|
data: 'action-buttons',
|
||||||
class: 'text-right content-fill text-left-on-grid-view no-wrap tooltip-overflow-fix',
|
class: 'text-right content-fill text-left-on-grid-view no-wrap tooltip-overflow-fix',
|
||||||
render: function (status, type, row, meta) {
|
render: function (status, type, row, meta) {
|
||||||
var deviceType = row.deviceType;
|
var deviceType = row.deviceType;
|
||||||
|
|||||||
@ -174,10 +174,11 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
|
|||||||
var titles = [];
|
var titles = [];
|
||||||
column.nodes().unique().sort().each(function (d, j) {
|
column.nodes().unique().sort().each(function (d, j) {
|
||||||
var title = $(d).attr('data-display');
|
var title = $(d).attr('data-display');
|
||||||
|
var searchVal = $(d).attr('data-search');
|
||||||
if ($.inArray(title, titles) < 0) {
|
if ($.inArray(title, titles) < 0) {
|
||||||
titles.push(title);
|
titles.push(title);
|
||||||
if (title !== undefined) {
|
if (title !== undefined) {
|
||||||
select.append('<option value="' + title + '">' + title + '</option>')
|
select.append('<option value="' + searchVal + '">' + title + '</option>')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>device-mgt</artifactId>
|
<artifactId>device-mgt</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>email-sender</artifactId>
|
<artifactId>email-sender</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,13 +22,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>identity-extensions</artifactId>
|
<artifactId>identity-extensions</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.oauth.extensions</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.oauth.extensions</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - OAuth Extensions</name>
|
<name>WSO2 Carbon - OAuth Extensions</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>identity-extensions</artifactId>
|
<artifactId>identity-extensions</artifactId>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>identity-extensions</artifactId>
|
<artifactId>identity-extensions</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt</artifactId>
|
<artifactId>policy-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>org.wso2.carbon.complex.policy.decision.point</artifactId>
|
<artifactId>org.wso2.carbon.complex.policy.decision.point</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Policy Decision Point</name>
|
<name>WSO2 Carbon - Policy Decision Point</name>
|
||||||
<description>WSO2 Carbon - Policy Decision Point</description>
|
<description>WSO2 Carbon - Policy Decision Point</description>
|
||||||
|
|||||||
@ -3,14 +3,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt</artifactId>
|
<artifactId>policy-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>org.wso2.carbon.policy.decision.point</artifactId>
|
<artifactId>org.wso2.carbon.policy.decision.point</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Policy Decision Point</name>
|
<name>WSO2 Carbon - Policy Decision Point</name>
|
||||||
<description>WSO2 Carbon - Policy Decision Point</description>
|
<description>WSO2 Carbon - Policy Decision Point</description>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt</artifactId>
|
<artifactId>policy-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@ -11,7 +11,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>org.wso2.carbon.policy.information.point</artifactId>
|
<artifactId>org.wso2.carbon.policy.information.point</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Policy Information Point</name>
|
<name>WSO2 Carbon - Policy Information Point</name>
|
||||||
<description>WSO2 Carbon - Policy Information Point</description>
|
<description>WSO2 Carbon - Policy Information Point</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt</artifactId>
|
<artifactId>policy-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>org.wso2.carbon.policy.mgt.common</artifactId>
|
<artifactId>org.wso2.carbon.policy.mgt.common</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Policy Management Common</name>
|
<name>WSO2 Carbon - Policy Management Common</name>
|
||||||
<description>WSO2 Carbon - Policy Management Common</description>
|
<description>WSO2 Carbon - Policy Management Common</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt</artifactId>
|
<artifactId>policy-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>org.wso2.carbon.policy.mgt.core</artifactId>
|
<artifactId>org.wso2.carbon.policy.mgt.core</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Policy Management Core</name>
|
<name>WSO2 Carbon - Policy Management Core</name>
|
||||||
<description>WSO2 Carbon - Policy Management Core</description>
|
<description>WSO2 Carbon - Policy Management Core</description>
|
||||||
|
|||||||
@ -23,13 +23,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>policy-mgt</artifactId>
|
<artifactId>policy-mgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Policy Management Component</name>
|
<name>WSO2 Carbon - Policy Management Component</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -21,14 +21,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>webapp-authenticator-framework</artifactId>
|
<artifactId>webapp-authenticator-framework</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>org.wso2.carbon.webapp.authenticator.framework</artifactId>
|
<artifactId>org.wso2.carbon.webapp.authenticator.framework</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<name>WSO2 Carbon - Web Application Authenticator Framework Bundle</name>
|
<name>WSO2 Carbon - Web Application Authenticator Framework Bundle</name>
|
||||||
<description>WSO2 Carbon - Web Application Authenticator Framework Bundle</description>
|
<description>WSO2 Carbon - Web Application Authenticator Framework Bundle</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>webapp-authenticator-framework</artifactId>
|
<artifactId>webapp-authenticator-framework</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Webapp Authenticator Framework</name>
|
<name>WSO2 Carbon - Webapp Authenticator Framework</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -21,14 +21,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>apimgt-extensions-feature</artifactId>
|
<artifactId>apimgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.application.extension.feature</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.application.extension.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - API Management Application Extension Feature</name>
|
<name>WSO2 Carbon - API Management Application Extension Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains an implementation of a api application registration, which takes care of subscription
|
<description>This feature contains an implementation of a api application registration, which takes care of subscription
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>apimgt-extensions-feature</artifactId>
|
<artifactId>apimgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.handler.server.feature</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.handler.server.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Management - APIM handler Server Feature</name>
|
<name>WSO2 Carbon - Device Management - APIM handler Server Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains the handler for the api authentications
|
<description>This feature contains the handler for the api authentications
|
||||||
|
|||||||
@ -21,13 +21,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>apimgt-extensions-feature</artifactId>
|
<artifactId>apimgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.integration.client.feature</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.integration.client.feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - APIM Integration Client Feature</name>
|
<name>WSO2 Carbon - APIM Integration Client Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -21,14 +21,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>apimgt-extensions-feature</artifactId>
|
<artifactId>apimgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.apimgt.webapp.publisher.feature</artifactId>
|
<artifactId>org.wso2.carbon.apimgt.webapp.publisher.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - API Management Webapp Publisher Feature</name>
|
<name>WSO2 Carbon - API Management Webapp Publisher Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains an implementation of a Tomcat lifecycle listener, which takes care of publishing
|
<description>This feature contains an implementation of a Tomcat lifecycle listener, which takes care of publishing
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>apimgt-extensions-feature</artifactId>
|
<artifactId>apimgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - API Management Extensions Feature</name>
|
<name>WSO2 Carbon - API Management Extensions Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>certificate-mgt-feature</artifactId>
|
<artifactId>certificate-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>certificate-mgt-feature</artifactId>
|
<artifactId>certificate-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>certificate-mgt-feature</artifactId>
|
<artifactId>certificate-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.certificate.mgt.server.feature</artifactId>
|
<artifactId>org.wso2.carbon.certificate.mgt.server.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Certificate Management Server Feature</name>
|
<name>WSO2 Carbon - Certificate Management Server Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains the core bundles required for back-end Certificate Management functionality
|
<description>This feature contains the core bundles required for back-end Certificate Management functionality
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>certificate-mgt-feature</artifactId>
|
<artifactId>certificate-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Certificate Management Feature</name>
|
<name>WSO2 Carbon - Certificate Management Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-extensions-feature</artifactId>
|
<artifactId>device-mgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.extensions.device.type.deployer.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.extensions.device.type.deployer.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Type Deployer Feature</name>
|
<name>WSO2 Carbon - Device Type Deployer Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>WSO2 Carbon - Device Type Deployer Feature</description>
|
<description>WSO2 Carbon - Device Type Deployer Feature</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-extensions-feature</artifactId>
|
<artifactId>device-mgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - FCM Based Push Notification Provider Feature</name>
|
<name>WSO2 Carbon - FCM Based Push Notification Provider Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>WSO2 Carbon - MQTT Based Push Notification Provider Feature</description>
|
<description>WSO2 Carbon - MQTT Based Push Notification Provider Feature</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-extensions-feature</artifactId>
|
<artifactId>device-mgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.http.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.http.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - MQTT Based Push Notification Provider Feature</name>
|
<name>WSO2 Carbon - MQTT Based Push Notification Provider Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>WSO2 Carbon - MQTT Based Push Notification Provider Feature</description>
|
<description>WSO2 Carbon - MQTT Based Push Notification Provider Feature</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-extensions-feature</artifactId>
|
<artifactId>device-mgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - MQTT Based Push Notification Provider Feature</name>
|
<name>WSO2 Carbon - MQTT Based Push Notification Provider Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>WSO2 Carbon - MQTT Based Push Notification Provider Feature</description>
|
<description>WSO2 Carbon - MQTT Based Push Notification Provider Feature</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-extensions-feature</artifactId>
|
<artifactId>device-mgt-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - XMPP Based Push Notification Provider Feature</name>
|
<name>WSO2 Carbon - XMPP Based Push Notification Provider Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>WSO2 Carbon - XMPP Based Push Notification Provider Feature</description>
|
<description>WSO2 Carbon - XMPP Based Push Notification Provider Feature</description>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -3,13 +3,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>org.wso2.carbon.device.mgt.analytics.dashboard.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.analytics.dashboard.feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Device Management Dashboard Analytics Feature</name>
|
<name>WSO2 Carbon - Device Management Dashboard Analytics Feature</name>
|
||||||
<description>WSO2 Carbon - Device Management Dashboard Analytics Feature</description>
|
<description>WSO2 Carbon - Device Management Dashboard Analytics Feature</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.analytics.data.publisher.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.analytics.data.publisher.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Management Server Feature</name>
|
<name>WSO2 Carbon - Device Management Server Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains bundles related to device analytics data publisher</description>
|
<description>This feature contains bundles related to device analytics data publisher</description>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -4,14 +4,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.extensions.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.extensions.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Management Extensions Feature</name>
|
<name>WSO2 Carbon - Device Management Extensions Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains common extensions used by key device management functionalities
|
<description>This feature contains common extensions used by key device management functionalities
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.server.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.server.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Management Server Feature</name>
|
<name>WSO2 Carbon - Device Management Server Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains the core bundles required for Back-end Device Management functionality
|
<description>This feature contains the core bundles required for Back-end Device Management functionality
|
||||||
|
|||||||
@ -140,13 +140,16 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_OPERATION_RESPONSE (
|
|||||||
ID INTEGER AUTO_INCREMENT NOT NULL,
|
ID INTEGER AUTO_INCREMENT NOT NULL,
|
||||||
ENROLMENT_ID INTEGER NOT NULL,
|
ENROLMENT_ID INTEGER NOT NULL,
|
||||||
OPERATION_ID INTEGER NOT NULL,
|
OPERATION_ID INTEGER NOT NULL,
|
||||||
|
EN_OP_MAP_ID INTEGER NOT NULL,
|
||||||
OPERATION_RESPONSE LONGBLOB DEFAULT NULL,
|
OPERATION_RESPONSE LONGBLOB DEFAULT NULL,
|
||||||
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
||||||
PRIMARY KEY (ID),
|
PRIMARY KEY (ID),
|
||||||
CONSTRAINT fk_dm_device_operation_response_enrollment FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
CONSTRAINT fk_dm_device_operation_response_enrollment FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
||||||
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
CONSTRAINT fk_dm_device_operation_response_operation FOREIGN KEY (OPERATION_ID) REFERENCES
|
CONSTRAINT fk_dm_device_operation_response_operation FOREIGN KEY (OPERATION_ID) REFERENCES
|
||||||
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_dm_en_op_map_response FOREIGN KEY (EN_OP_MAP_ID) REFERENCES
|
||||||
|
DM_ENROLMENT_OP_MAPPING (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
||||||
);
|
);
|
||||||
|
|
||||||
-- POLICY RELATED TABLES --
|
-- POLICY RELATED TABLES --
|
||||||
|
|||||||
@ -183,18 +183,24 @@ CREATE TABLE DM_DEVICE_OPERATION_RESPONSE (
|
|||||||
ID INTEGER IDENTITY(1,1) NOT NULL,
|
ID INTEGER IDENTITY(1,1) NOT NULL,
|
||||||
ENROLMENT_ID INTEGER NOT NULL,
|
ENROLMENT_ID INTEGER NOT NULL,
|
||||||
OPERATION_ID INTEGER NOT NULL,
|
OPERATION_ID INTEGER NOT NULL,
|
||||||
|
EN_OP_MAP_ID INTEGER NOT NULL,
|
||||||
OPERATION_RESPONSE VARBINARY(MAX) DEFAULT NULL,
|
OPERATION_RESPONSE VARBINARY(MAX) DEFAULT NULL,
|
||||||
RECEIVED_TIMESTAMP DATETIME2 DEFAULT NULL
|
RECEIVED_TIMESTAMP DATETIME2 DEFAULT NULL
|
||||||
PRIMARY KEY (ID),
|
PRIMARY KEY (ID),
|
||||||
CONSTRAINT FK_DM_DEVICE_OPERATION_RESP_ENROLMENT FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
CONSTRAINT FK_DM_DEVICE_OPERATION_RESP_ENROLMENT FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
||||||
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
CONSTRAINT FK_DM_DEVICE_OPERATION_RESP_OPERATION FOREIGN KEY (OPERATION_ID) REFERENCES
|
CONSTRAINT FK_DM_DEVICE_OPERATION_RESP_OPERATION FOREIGN KEY (OPERATION_ID) REFERENCES
|
||||||
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT FK_DM_EN_OP_MAP_RESPONSE FOREIGN KEY (EN_OP_MAP_ID) REFERENCES
|
||||||
|
DM_ENROLMENT_OP_MAPPING (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
||||||
);
|
);
|
||||||
|
|
||||||
IF NOT EXISTS (SELECT * FROM SYS.INDEXES WHERE NAME = 'IDX_ENID_OPID' AND OBJECT_ID = OBJECT_ID('DM_DEVICE_OPERATION_RESPONSE'))
|
IF NOT EXISTS (SELECT * FROM SYS.INDEXES WHERE NAME = 'IDX_ENID_OPID' AND OBJECT_ID = OBJECT_ID('DM_DEVICE_OPERATION_RESPONSE'))
|
||||||
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
||||||
|
|
||||||
|
IF NOT EXISTS (SELECT * FROM SYS.INDEXES WHERE NAME = 'IDX_DM_EN_OP_MAP_RES' AND OBJECT_ID = OBJECT_ID('DM_DEVICE_OPERATION_RESPONSE'))
|
||||||
|
CREATE INDEX IDX_DM_EN_OP_MAP_RES ON DM_DEVICE_OPERATION_RESPONSE(EN_OP_MAP_ID);
|
||||||
|
|
||||||
-- POLICY RELATED TABLES --
|
-- POLICY RELATED TABLES --
|
||||||
|
|
||||||
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[DM_PROFILE]') AND TYPE IN (N'U'))
|
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[DM_PROFILE]') AND TYPE IN (N'U'))
|
||||||
|
|||||||
@ -157,20 +157,25 @@ CREATE INDEX IDX_ENROLMENT_OP_MAPPING ON DM_ENROLMENT_OP_MAPPING (UPDATED_TIMEST
|
|||||||
CREATE INDEX IDX_EN_OP_MAPPING_EN_ID ON DM_ENROLMENT_OP_MAPPING(ENROLMENT_ID);
|
CREATE INDEX IDX_EN_OP_MAPPING_EN_ID ON DM_ENROLMENT_OP_MAPPING(ENROLMENT_ID);
|
||||||
CREATE INDEX IDX_EN_OP_MAPPING_OP_ID ON DM_ENROLMENT_OP_MAPPING(OPERATION_ID);
|
CREATE INDEX IDX_EN_OP_MAPPING_OP_ID ON DM_ENROLMENT_OP_MAPPING(OPERATION_ID);
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS DM_DEVICE_OPERATION_RESPONSE (
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_OPERATION_RESPONSE (
|
||||||
ID INTEGER AUTO_INCREMENT NOT NULL,
|
ID INT(11) NOT NULL AUTO_INCREMENT,
|
||||||
ENROLMENT_ID INTEGER NOT NULL,
|
ENROLMENT_ID INTEGER NOT NULL,
|
||||||
OPERATION_ID INTEGER NOT NULL,
|
OPERATION_ID INTEGER NOT NULL,
|
||||||
|
EN_OP_MAP_ID INTEGER NOT NULL,
|
||||||
OPERATION_RESPONSE LONGBLOB DEFAULT NULL,
|
OPERATION_RESPONSE LONGBLOB DEFAULT NULL,
|
||||||
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
||||||
PRIMARY KEY (ID),
|
PRIMARY KEY (ID),
|
||||||
CONSTRAINT fk_dm_device_operation_response_enrollment FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
CONSTRAINT fk_dm_device_operation_response_enrollment FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
||||||
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
CONSTRAINT fk_dm_device_operation_response_operation FOREIGN KEY (OPERATION_ID) REFERENCES
|
CONSTRAINT fk_dm_device_operation_response_operation FOREIGN KEY (OPERATION_ID) REFERENCES
|
||||||
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_dm_en_op_map_response FOREIGN KEY (EN_OP_MAP_ID) REFERENCES
|
||||||
|
DM_ENROLMENT_OP_MAPPING (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
||||||
)ENGINE = InnoDB;
|
)ENGINE = InnoDB;
|
||||||
|
|
||||||
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
||||||
|
CREATE INDEX IDX_DM_EN_OP_MAP_RES ON DM_DEVICE_OPERATION_RESPONSE(EN_OP_MAP_ID);
|
||||||
|
|
||||||
-- POLICY RELATED TABLES ---
|
-- POLICY RELATED TABLES ---
|
||||||
|
|
||||||
|
|||||||
@ -258,13 +258,16 @@ CREATE TABLE DM_DEVICE_OPERATION_RESPONSE (
|
|||||||
ID NUMBER(10) NOT NULL,
|
ID NUMBER(10) NOT NULL,
|
||||||
ENROLMENT_ID NUMBER(10) NOT NULL,
|
ENROLMENT_ID NUMBER(10) NOT NULL,
|
||||||
OPERATION_ID NUMBER(10) NOT NULL,
|
OPERATION_ID NUMBER(10) NOT NULL,
|
||||||
|
EN_OP_MAP_ID NUMBER(10) NOT NULL,
|
||||||
OPERATION_RESPONSE BLOB DEFAULT NULL,
|
OPERATION_RESPONSE BLOB DEFAULT NULL,
|
||||||
RECEIVED_TIMESTAMP TIMESTAMP(0) NULL,
|
RECEIVED_TIMESTAMP TIMESTAMP(0) NULL,
|
||||||
CONSTRAINT PK_DM_DEVICE_OP_RESPONSE PRIMARY KEY (ID),
|
CONSTRAINT PK_DM_DEVICE_OP_RESPONSE PRIMARY KEY (ID),
|
||||||
CONSTRAINT FK_DM_DEVICE_OP_RES_DEVICE FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
CONSTRAINT FK_DM_DEVICE_OP_RES_DEVICE FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
||||||
DM_ENROLMENT (ID),
|
DM_ENROLMENT (ID),
|
||||||
CONSTRAINT FK_DM_DEVICE_OP_RES_OPERATION FOREIGN KEY (OPERATION_ID) REFERENCES
|
CONSTRAINT FK_DM_DEVICE_OP_RES_OPERATION FOREIGN KEY (OPERATION_ID) REFERENCES
|
||||||
DM_OPERATION (ID)
|
DM_OPERATION (ID),
|
||||||
|
CONSTRAINT FK_DM_EN_OP_MAP_RESPONSE FOREIGN KEY (EN_OP_MAP_ID) REFERENCES
|
||||||
|
DM_ENROLMENT_OP_MAPPING (ID)
|
||||||
)
|
)
|
||||||
/
|
/
|
||||||
-- Generate ID using sequence and trigger
|
-- Generate ID using sequence and trigger
|
||||||
@ -281,6 +284,10 @@ WHEN (NEW.ID IS NULL)
|
|||||||
END;
|
END;
|
||||||
/
|
/
|
||||||
|
|
||||||
|
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
||||||
|
CREATE INDEX IDX_DM_EN_OP_MAP_RES ON DM_DEVICE_OPERATION_RESPONSE(EN_OP_MAP_ID);
|
||||||
|
|
||||||
|
|
||||||
-- POLICY RELATED TABLES ---
|
-- POLICY RELATED TABLES ---
|
||||||
CREATE TABLE DM_PROFILE (
|
CREATE TABLE DM_PROFILE (
|
||||||
ID NUMBER(10) NOT NULL ,
|
ID NUMBER(10) NOT NULL ,
|
||||||
|
|||||||
@ -142,15 +142,19 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_OPERATION_RESPONSE (
|
|||||||
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
||||||
ENROLMENT_ID INTEGER NOT NULL,
|
ENROLMENT_ID INTEGER NOT NULL,
|
||||||
OPERATION_ID INTEGER NOT NULL,
|
OPERATION_ID INTEGER NOT NULL,
|
||||||
|
EN_OP_MAP_ID INTEGER NOT NULL,
|
||||||
OPERATION_RESPONSE BYTEA DEFAULT NULL,
|
OPERATION_RESPONSE BYTEA DEFAULT NULL,
|
||||||
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
||||||
CONSTRAINT fk_dm_device_operation_response_enrollment FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
CONSTRAINT fk_dm_device_operation_response_enrollment FOREIGN KEY (ENROLMENT_ID) REFERENCES
|
||||||
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
DM_ENROLMENT (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
CONSTRAINT fk_dm_device_operation_response_operation FOREIGN KEY (OPERATION_ID) REFERENCES
|
CONSTRAINT fk_dm_device_operation_response_operation FOREIGN KEY (OPERATION_ID) REFERENCES
|
||||||
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_dm_en_op_map_response FOREIGN KEY (EN_OP_MAP_ID) REFERENCES
|
||||||
|
DM_ENROLMENT_OP_MAPPING (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID);
|
||||||
|
CREATE INDEX IDX_DM_EN_OP_MAP_RES ON DM_DEVICE_OPERATION_RESPONSE(EN_OP_MAP_ID);
|
||||||
-- POLICY RELATED TABLES ---
|
-- POLICY RELATED TABLES ---
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS DM_PROFILE (
|
CREATE TABLE IF NOT EXISTS DM_PROFILE (
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>device-mgt-feature</artifactId>
|
<artifactId>device-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>email-sender-feature</artifactId>
|
<artifactId>email-sender-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.email.sender.feature</artifactId>
|
<artifactId>org.wso2.carbon.email.sender.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Email Sender Feature</name>
|
<name>WSO2 Carbon - Email Sender Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains the core bundles required for email sender related functionality
|
<description>This feature contains the core bundles required for email sender related functionality
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>email-sender-feature</artifactId>
|
<artifactId>email-sender-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Email Sender Feature</name>
|
<name>WSO2 Carbon - Email Sender Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -23,14 +23,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>jwt-client-feature</artifactId>
|
<artifactId>jwt-client-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.identity.jwt.client.extension.feature</artifactId>
|
<artifactId>org.wso2.carbon.identity.jwt.client.extension.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - JWT Client Feature</name>
|
<name>WSO2 Carbon - JWT Client Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains jwt client implementation from which we can get a access token using the jwt
|
<description>This feature contains jwt client implementation from which we can get a access token using the jwt
|
||||||
|
|||||||
@ -23,13 +23,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>jwt-client-feature</artifactId>
|
<artifactId>jwt-client-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - JWT Client Extension Feature</name>
|
<name>WSO2 Carbon - JWT Client Extension Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -23,14 +23,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>oauth-extensions-feature</artifactId>
|
<artifactId>oauth-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.device.mgt.oauth.extensions.feature</artifactId>
|
<artifactId>org.wso2.carbon.device.mgt.oauth.extensions.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Mgt OAuth Extensions Feature</name>
|
<name>WSO2 Carbon - Device Mgt OAuth Extensions Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains devicemgt related OAuth extensions</description>
|
<description>This feature contains devicemgt related OAuth extensions</description>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>oauth-extensions-feature</artifactId>
|
<artifactId>oauth-extensions-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Device Management OAuth Extensions Feature</name>
|
<name>WSO2 Carbon - Device Management OAuth Extensions Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -23,14 +23,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt-feature</artifactId>
|
<artifactId>policy-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.policy.mgt.server.feature</artifactId>
|
<artifactId>org.wso2.carbon.policy.mgt.server.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Policy Management Server Feature</name>
|
<name>WSO2 Carbon - Policy Management Server Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains the core bundles required for Back-end Device Management functionality
|
<description>This feature contains the core bundles required for Back-end Device Management functionality
|
||||||
|
|||||||
@ -23,14 +23,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>policy-mgt-feature</artifactId>
|
<artifactId>policy-mgt-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Policy Management Feature</name>
|
<name>WSO2 Carbon - Policy Management Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>webapp-authenticator-framework-feature</artifactId>
|
<artifactId>webapp-authenticator-framework-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>org.wso2.carbon.webapp.authenticator.framework.server.feature</artifactId>
|
<artifactId>org.wso2.carbon.webapp.authenticator.framework.server.feature</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Webapp Authenticator Framework Server Feature</name>
|
<name>WSO2 Carbon - Webapp Authenticator Framework Server Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>This feature contains the core bundles required for Back-end Device Management functionality
|
<description>This feature contains the core bundles required for Back-end Device Management functionality
|
||||||
|
|||||||
@ -22,14 +22,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>webapp-authenticator-framework-feature</artifactId>
|
<artifactId>webapp-authenticator-framework-feature</artifactId>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>WSO2 Carbon - Webapp Authenticator Framework Feature</name>
|
<name>WSO2 Carbon - Webapp Authenticator Framework Feature</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
|
|||||||
10
pom.xml
10
pom.xml
@ -23,7 +23,7 @@
|
|||||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||||
<artifactId>carbon-devicemgt</artifactId>
|
<artifactId>carbon-devicemgt</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.0.40-SNAPSHOT</version>
|
<version>3.0.46-SNAPSHOT</version>
|
||||||
<name>WSO2 Carbon - Device Management - Parent</name>
|
<name>WSO2 Carbon - Device Management - Parent</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://wso2.org</url>
|
||||||
<description>WSO2 Connected Device Manager Components</description>
|
<description>WSO2 Connected Device Manager Components</description>
|
||||||
@ -1832,7 +1832,7 @@
|
|||||||
<carbon.multitenancy.version>4.6.1</carbon.multitenancy.version>
|
<carbon.multitenancy.version>4.6.1</carbon.multitenancy.version>
|
||||||
|
|
||||||
<!-- Carbon Governance -->
|
<!-- Carbon Governance -->
|
||||||
<carbon.governance.version>4.7.0</carbon.governance.version>
|
<carbon.governance.version>4.7.8</carbon.governance.version>
|
||||||
|
|
||||||
<!-- Axiom -->
|
<!-- Axiom -->
|
||||||
<axiom.version>1.2.11-wso2v10</axiom.version>
|
<axiom.version>1.2.11-wso2v10</axiom.version>
|
||||||
@ -1840,7 +1840,7 @@
|
|||||||
<axiom.wso2.version>1.2.11.wso2v10</axiom.wso2.version>
|
<axiom.wso2.version>1.2.11.wso2v10</axiom.wso2.version>
|
||||||
|
|
||||||
<!-- Carbon Device Management -->
|
<!-- Carbon Device Management -->
|
||||||
<carbon.device.mgt.version>3.0.40-SNAPSHOT</carbon.device.mgt.version>
|
<carbon.device.mgt.version>3.0.46-SNAPSHOT</carbon.device.mgt.version>
|
||||||
|
|
||||||
<!-- Carbon Commons -->
|
<!-- Carbon Commons -->
|
||||||
<carbon.commons.version>4.4.8</carbon.commons.version>
|
<carbon.commons.version>4.4.8</carbon.commons.version>
|
||||||
@ -1862,8 +1862,8 @@
|
|||||||
<carbon.event-processing.version>2.1.10</carbon.event-processing.version>
|
<carbon.event-processing.version>2.1.10</carbon.event-processing.version>
|
||||||
|
|
||||||
<!-- Carbon Registry -->
|
<!-- Carbon Registry -->
|
||||||
<carbon.registry.version>4.6.0</carbon.registry.version>
|
<carbon.registry.version>4.6.8</carbon.registry.version>
|
||||||
<carbon.registry.resource.version>4.6.5</carbon.registry.resource.version>
|
<carbon.registry.resource.version>4.6.8</carbon.registry.resource.version>
|
||||||
<carbon.registry.imp.pkg.version.range>[4.4.8, 5.0.0)</carbon.registry.imp.pkg.version.range>
|
<carbon.registry.imp.pkg.version.range>[4.4.8, 5.0.0)</carbon.registry.imp.pkg.version.range>
|
||||||
|
|
||||||
<!--CXF properties-->
|
<!--CXF properties-->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user