-
Roles
-
-
-
{{else}}
- Permission denied
+
+ Permitted None
+
{{/if}}
-
-
-
-
-
- Scan QR code to start enrollment
-
-
- Please scan the QR code using your mobile device to retrieve enrollment URL.
-
-
-
-
-
-
{{/zone}}
\ No newline at end of file
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.dashboard/dashboard.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.dashboard/dashboard.js
index c5682c0c5b..c848b86f6e 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.dashboard/dashboard.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.dashboard/dashboard.js
@@ -32,16 +32,16 @@ function onRequest() {
return;
}
- var page = {};
- page.permissions = permissions;
- page.enrollmentURL = devicemgtProps.enrollmentURL;
- page.device_count = deviceModule.getDevicesCount();
+ var viewModel = {};
+ viewModel.permissions = permissions;
+ viewModel.enrollmentURL = devicemgtProps.enrollmentURL;
+ viewModel.deviceCount = deviceModule.getDevicesCount();
//TODO: Enable Group Management Service API on CDMF
//page.group_count = groupModule.getGroupCount();
- page.group_count = -1;
- page.user_count = userModule.getUsersCount();
- page.policy_count = policyModule.getPoliciesCount();
- page.role_count = userModule.getRolesCount();
+ viewModel.groupCount = -1;
+ viewModel.userCount = userModule.getUsersCount();
+ viewModel.policyCount = policyModule.getPoliciesCount();
+ viewModel.roleCount = userModule.getRolesCount();
- return page;
+ return viewModel;
}
\ No newline at end of file
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js
index d7a19da36b..ae506f4b07 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/devices.js
@@ -24,22 +24,22 @@ function onRequest(context) {
var groupName = request.getParameter("groupName");
var groupOwner = request.getParameter("groupOwner");
- var page = {};
+ var viewModel = {};
var title = "Devices";
if (groupName) {
title = groupName + " " + title;
- page.groupName = groupName;
+ viewModel.groupName = groupName;
}
- page.title = title;
+ viewModel.title = title;
var currentUser = session.get(constants.USER_SESSION_KEY);
if (currentUser) {
- page.permissions = {};
+ viewModel.permissions = {};
var uiPermissions = userModule.getUIPermissions();
- page.permissions.list = stringify(uiPermissions);
+ viewModel.permissions.list = stringify(uiPermissions);
if (uiPermissions.ADD_DEVICE) {
- page.permissions.enroll = true;
+ viewModel.permissions.enroll = true;
}
- page.currentUser = currentUser;
+ viewModel.currentUser = currentUser;
var deviceCount = 0;
if (groupName && groupOwner) {
var groupModule = require("/app/modules/business-controllers/group.js")["groupModule"];
@@ -48,30 +48,30 @@ function onRequest(context) {
deviceCount = deviceModule.getDevicesCount();
}
if (deviceCount > 0) {
- page.deviceCount = deviceCount;
+ viewModel.deviceCount = deviceCount;
var utility = require("/app/modules/utility.js").utility;
var typesListResponse = deviceModule.getDeviceTypes();
var deviceTypes = [];
if (typesListResponse["status"] == "success") {
- var data = typesListResponse["content"];
+ var data = typesListResponse.content.deviceTypes;
if (data) {
for (var i = 0; i < data.length; i++) {
- var config = utility.getDeviceTypeConfig(data[i].name);
+ var config = utility.getDeviceTypeConfig(data[i]);
if (!config) {
continue;
}
var deviceType = config.deviceType;
deviceTypes.push({
- "type": data[i].name,
- "category": deviceType.category,
- "label": deviceType.label,
- "thumb": utility.getDeviceThumb(data[i].name)
- });
+ "type": data[i],
+ "category": deviceType.category,
+ "label": deviceType.label,
+ "thumb": utility.getDeviceThumb(data[i])
+ });
}
}
}
- page.deviceTypes = stringify(deviceTypes);
+ viewModel.deviceTypes = stringify(deviceTypes);
}
}
- return page;
+ return viewModel;
}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js
index 3b2fddb195..9ca860900b 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js
@@ -37,6 +37,10 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
if (InitiateViewOption) {
$(".viewEnabledIcon").bind("click", InitiateViewOption);
}
+
+ var deviceType;
+ var ownership;
+
//--- End of EMM related codes
$(elem).DataTable(
@@ -108,14 +112,32 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
.draw();
if (filterColumn.eq(column.index()).hasClass('data-platform')) {
- if (!val) {
+ deviceType = val;
+ if (!deviceType || !ownership) {
$("#operation-bar").addClass("hidden");
$("#operation-guide").removeClass("hidden");
} else {
$("#operation-guide").addClass("hidden");
$("#operation-bar").removeClass("hidden");
//noinspection JSUnresolvedFunction
- loadOperationBar(val);
+ if (deviceType && ownership) {
+ loadOperationBar(deviceType, ownership);
+ }
+ }
+ }
+
+ if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
+ ownership = val;
+ if (!deviceType || !ownership) {
+ $("#operation-bar").addClass("hidden");
+ $("#operation-guide").removeClass("hidden");
+ } else {
+ $("#operation-guide").addClass("hidden");
+ $("#operation-bar").removeClass("hidden");
+ //noinspection JSUnresolvedFunction
+ if (deviceType && ownership) {
+ loadOperationBar(deviceType, ownership);
+ }
}
}
});
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.operation-mod/public/js/operation-mod.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.operation-mod/public/js/operation-mod.js
index 98b3e2ad9f..0ea06a2ab0 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.operation-mod/public/js/operation-mod.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.operation-mod/public/js/operation-mod.js
@@ -107,7 +107,6 @@ var operationModule = function () {
"NOTIFICATION_OPERATION_CODE": "NOTIFICATION",
"CALENDAR_SUBSCRIPTION_OPERATION_CODE": "CALENDAR_SUBSCRIPTION",
"APN_OPERATION_CODE": "APN",
- "DOMAIN_CODE": "DOMAIN",
"CELLULAR_OPERATION_CODE": "CELLULAR",
"PER_APP_VPN_OPERATION_CODE": "PER_APP_VPN",
"APP_TO_PER_APP_VPN_MAPPING_OPERATION_CODE": "APP_TO_PER_APP_VPN_MAPPING"
@@ -116,20 +115,10 @@ var operationModule = function () {
publicMethods.getIOSServiceEndpoint = function (operationCode) {
var featureMap = {
"DEVICE_LOCK": "lock",
- "VPN": "vpn",
- "PER_APP_VPN": "per-app-vpn",
- "APP_TO_PER_APP_VPN_MAPPING": "app-to-per-app-vpn-mapping",
- "RING": "ring",
"LOCATION": "location",
+ "ENTERPRISE_WIPE": "enterprise-wipe",
"NOTIFICATION": "notification",
- "AIR_PLAY": "airplay",
- "RESTRICTION": "restriction",
- "CELLULAR": "cellular",
- "WIFI": "wifi",
- "INSTALL_STORE_APPLICATION": "store-application",
- "INSTALL_ENTERPRISE_APPLICATION": "enterprise-application",
- "REMOVE_APPLICATION": "remove-application",
- "ENTERPRISE_WIPE": "enterprise-wipe"
+ "RING": "ring"
};
return "/api/device-mgt/ios/v1.0/admin/devices/" + featureMap[operationCode];
};
@@ -851,6 +840,24 @@ var operationModule = function () {
"restrictedApplications": operationPayload["restricted-applications"]
};
break;
+ case androidOperationConstants["SYSTEM_UPDATE_POLICY_CODE"]:
+ if (operationPayload["type"] != "window") {
+ payload = {
+ "cosuSystemUpdatePolicyType": operationPayload["type"]
+ };
+ } else {
+ payload = {
+ "cosuSystemUpdatePolicyType": operationPayload["type"],
+ "cosuSystemUpdatePolicyWindowStartTime": operationPayload["startTime"],
+ "cosuSystemUpdatePolicyWindowEndTime": operationPayload["endTime"]
+ };
+ }
+ break;
+ case androidOperationConstants["KIOSK_APPS_CODE"]:
+ payload = {
+ "cosuWhitelistedApplications": operationPayload["whitelistedApplications"]
+ };
+ break;
}
return payload;
};
@@ -1187,12 +1194,13 @@ var operationModule = function () {
publicMethods.getWindowsServiceEndpoint = function (operationCode) {
var featureMap = {
"DEVICE_LOCK": "lock-devices",
+ "DISENROLL": "disenroll",
"DEVICE_RING": "ring-devices",
"LOCK_RESET": "lock-reset-devices",
"WIPE_DATA": "wipe-devices"
};
//return "/mdm-windows-agent/services/windows/operation/" + featureMap[operationCode];
- return "/api/device-mgt/windows/v1.0/admin/devices/" + featureMap[operationCode];
+ return "/api/device-mgt/windows/v1.0/services/windows/admin/devices/" + featureMap[operationCode];
};
/**
* Get the icon for the featureCode
@@ -1203,16 +1211,16 @@ var operationModule = function () {
var featureMap = {
"DEVICE_LOCK": "fw-lock",
"DEVICE_LOCATION": "fw-map-location",
- "CLEAR_PASSWORD": "fw-key",
- "ENTERPRISE_WIPE": "fw-clear",
- "WIPE_DATA": "fw-database",
+ "CLEAR_PASSWORD": "fw-clear",
+ "ENTERPRISE_WIPE": "fw-block",
+ "WIPE_DATA": "fw-delete",
"DEVICE_RING": "fw-dial-up",
"DEVICE_REBOOT": "fw-refresh",
- "UPGRADE_FIRMWARE": "fw-up-arrow",
+ "UPGRADE_FIRMWARE": "fw-hardware",
"DEVICE_MUTE": "fw-mute",
"NOTIFICATION": "fw-message",
"CHANGE_LOCK_CODE": "fw-security",
- "DEVICE_UNLOCK": "fw-lock"
+ "DEVICE_UNLOCK": "fw-key"
};
return featureMap[operationCode];
};
@@ -1226,8 +1234,9 @@ var operationModule = function () {
var featureMap = {
"DEVICE_LOCK": "fw-lock",
"DEVICE_RING": "fw-dial-up",
+ "DISENROLL": "fw-export",
"LOCK_RESET": "fw-key",
- "WIPE_DATA": "fw-clear"
+ "WIPE_DATA": "fw-delete"
};
return featureMap[operationCode];
};
@@ -1241,7 +1250,7 @@ var operationModule = function () {
var featureMap = {
"DEVICE_LOCK": "fw-lock",
"LOCATION": "fw-map-location",
- "ENTERPRISE_WIPE": "fw-clear",
+ "ENTERPRISE_WIPE": "fw-block",
"NOTIFICATION": "fw-message",
"RING": "fw-dial-up"
};
@@ -1576,7 +1585,7 @@ var operationModule = function () {
var operationCode = operationCodes[i];
var payload = publicMethods.generatePayload(platformType, operationCode, null);
- if(platformType == platformTypeConstants["ANDROID"] &&
+ if (platformType == platformTypeConstants["ANDROID"] &&
operationCodes[i] == androidOperationConstants["CAMERA_OPERATION_CODE"]){
var operations = payload["operation"];
for (var key in operations){
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.js
index e9c68c6452..62ca011b0b 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.js
@@ -27,12 +27,12 @@ function onRequest(context) {
var utility = require("/app/modules/utility.js").utility;
var typesListResponse = deviceModule.getDeviceTypes();
if (typesListResponse["status"] == "success") {
- var deviceTypes = typesListResponse["content"];
+ var deviceTypes = typesListResponse.content.deviceTypes;
if (deviceTypes) {
var deviceTypesList = [], virtualDeviceTypesList = [];
for (var i = 0; i < deviceTypes.length; i++) {
-
- var deviceTypeLabel = deviceTypes[i].name;
+ var deviceType = deviceTypes[i];
+ var deviceTypeLabel = deviceType;
var configs = utility.getDeviceTypeConfig(deviceTypeLabel);
var deviceCategory = "device";
if (configs) {
@@ -45,22 +45,20 @@ function onRequest(context) {
}
if (deviceCategory == 'virtual') {
virtualDeviceTypesList.push({
- "hasCustTemplate": false,
- "deviceTypeLabel": deviceTypeLabel,
- "deviceTypeName": deviceTypes[i].name,
- "deviceCategory": deviceCategory,
- "deviceTypeId": deviceTypes[i].id,
- "thumb": utility.getDeviceThumb(deviceTypes[i].name)
- });
+ "hasCustTemplate": false,
+ "deviceTypeLabel": deviceTypeLabel,
+ "deviceTypeName": deviceType,
+ "deviceCategory": deviceCategory,
+ "thumb": utility.getDeviceThumb(deviceType)
+ });
} else {
deviceTypesList.push({
- "hasCustTemplate": false,
- "deviceTypeLabel": deviceTypeLabel,
- "deviceTypeName": deviceTypes[i].name,
- "deviceCategory": deviceCategory,
- "deviceTypeId": deviceTypes[i].id,
- "thumb": utility.getDeviceThumb(deviceTypes[i].name)
- });
+ "hasCustTemplate": false,
+ "deviceTypeLabel": deviceTypeLabel,
+ "deviceTypeName": deviceType,
+ "deviceCategory": deviceCategory,
+ "thumb": utility.getDeviceThumb(deviceType)
+ });
}
}
if (virtualDeviceTypesList.length > 0) {
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js
index 34bb5c1ddd..a622f40543 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+ *
+ * WSO2 Inc. licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
/**
* Checks if provided input is valid against RegEx input.
*
@@ -21,34 +39,33 @@ $(document).ready(function () {
showPopup();
$("a#change-password-yes-link").click(function () {
- var oldPassword = $("#old-password").val();
+ var currentPassword = $("#current-password").val();
var newPassword = $("#new-password").val();
- var confirmedPassword = $("#confirmed-password").val();
+ var retypedNewPassword = $("#retyped-new-password").val();
var user = $("#user").val();
- var errorMsgWrapper = "#notification-error-msg";
- var errorMsg = "#notification-error-msg span";
- if (!oldPassword) {
- $(errorMsg).text("Old password is a required field. It cannot be empty.");
+ var errorMsgWrapper = "#change-password-error-msg";
+ var errorMsg = "#change-password-error-msg span";
+ if (!currentPassword) {
+ $(errorMsg).text("Typing your current password is required. It cannot be empty.");
$(errorMsgWrapper).removeClass("hidden");
} else if (!newPassword) {
- $(errorMsg).text("New password is a required field. It cannot be empty.");
+ $(errorMsg).text("Typing your new password is required. It cannot be empty.");
$(errorMsgWrapper).removeClass("hidden");
- } else if (!confirmedPassword) {
- $(errorMsg).text("Retyping the new password is required.");
+ } else if (!retypedNewPassword) {
+ $(errorMsg).text("Confirming your new password is required. It cannot be empty.");
$(errorMsgWrapper).removeClass("hidden");
- } else if (confirmedPassword != newPassword) {
- $(errorMsg).text("New password doesn't match the confirmation.");
+ } else if (retypedNewPassword != newPassword) {
+ $(errorMsg).text("Password confirmation failed. Please check.");
$(errorMsgWrapper).removeClass("hidden");
- } else if (!inputIsValid(/^[\S]{5,30}$/, confirmedPassword)) {
- $(errorMsg).text("Password should be minimum 5 characters long, should not include any whitespaces.");
+ } else if (!inputIsValid(/^[\S]{5,30}$/, newPassword)) {
+ $(errorMsg).text("Password should be minimum 5 characters long and " +
+ "should not include any whitespaces. Please check.");
$(errorMsgWrapper).removeClass("hidden");
} else {
var changePasswordFormData = {};
- //changePasswordFormData.username = user;
- changePasswordFormData.newPassword = unescape((confirmedPassword));
- changePasswordFormData.oldPassword = unescape((oldPassword));
-
+ changePasswordFormData["oldPassword"] = unescape((currentPassword));
+ changePasswordFormData["newPassword"] = unescape((newPassword));
var changePasswordAPI = "/api/device-mgt/v1.0/users/" + user + "/credentials";
@@ -64,7 +81,7 @@ $(document).ready(function () {
}
}, function (jqXHR) {
if (jqXHR.status == 400) {
- $(errorMsg).text("Old password does not match with the provided value.");
+ $(errorMsg).text("Your current password does not match with the provided value.");
$(errorMsgWrapper).removeClass("hidden");
} else {
$(errorMsg).text("An unexpected error occurred. Please try again later.");
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.hbs
index c4fd938ae5..1ff652c8c8 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.hbs
@@ -15,73 +15,91 @@
specific language governing permissions and limitations
under the License.
}}
+
{{#zone "userMenu-items"}}
Change password
+
Sign out
+
-
-
-
-
Password change is successful.
-
-
+
+
+
+
+ You can now try to login using your new password.
+
+
+
{{/zone}}
{{#zone "bottomJs"}}
-
+ {{js "/js/user-menu.js"}}
{{/zone}}
\ No newline at end of file
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.js
index e0ebe26b0a..39819deacf 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/user-menu.js
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+ *
+ * WSO2 Inc. licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
function onRequest() {
var constants = require("/app/modules/constants.js");
return session.get(constants["USER_SESSION_KEY"]);
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs
index 2c36f248d4..34b21301ed 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs
@@ -105,7 +105,7 @@
data-offset-top="80">
-
+
{{/zone}}
{{#zone "bottomJs"}}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/jquery.qrcode.min.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/jquery.qrcode.min.js
old mode 100755
new mode 100644
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js
index 5f3605da38..e94a5500a6 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js
@@ -102,23 +102,28 @@ function loadNewNotifications() {
if (responsePayload.count > 0) {
$(messageSideBar).html(template(viewModel));
} else {
- $(messageSideBar).html("
No new notifications found... ");
+ $(messageSideBar).html(
+ "
No New Notifications " +
+ "
" +
+ "Check this section for error notifications related to device operations" +
+ " "
+ );
}
} else {
- $(messageSideBar).html("
Unexpected error occurred while loading new notifications. ");
+ $(messageSideBar).html("
Unexpected error occurred while loading new notifications ");
}
}
};
var errorCallback = function (jqXHR) {
if (jqXHR.status = 500) {
- $(messageSideBar).html("
Unexpected error occurred while trying " +
- "to retrieve any new notifications. ");
+ $(messageSideBar).html("
Unexpected error occurred while trying " +
+ "to retrieve any new notifications ");
}
};
invokerUtil.get(serviceURL, successCallback, errorCallback);
});
} else {
- $(messageSideBar).html("
You are not authorized to view notifications ");
+ $(messageSideBar).html("
You are not authorized to view notifications ");
}
}
diff --git a/components/device-mgt/pom.xml b/components/device-mgt/pom.xml
index d38abdc798..32912e63bd 100644
--- a/components/device-mgt/pom.xml
+++ b/components/device-mgt/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
diff --git a/components/email-sender/org.wso2.carbon.email.sender.core/pom.xml b/components/email-sender/org.wso2.carbon.email.sender.core/pom.xml
index 2361096d7c..5ec87547a3 100644
--- a/components/email-sender/org.wso2.carbon.email.sender.core/pom.xml
+++ b/components/email-sender/org.wso2.carbon.email.sender.core/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
email-sender
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
@@ -57,16 +57,17 @@
org.osgi.service.component,
org.apache.commons.logging,
javax.xml.*,
+ javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional,
org.wso2.carbon.context,
org.wso2.carbon.utils.*,
org.wso2.carbon.registry.api,
org.w3c.dom,
- org.apache.velocity,
- org.apache.velocity.app,
- org.apache.velocity.context,
- org.apache.velocity.exception,
- org.apache.velocity.runtime.resource,
- org.apache.velocity.runtime.resource.loader,
+ org.apache.velocity;version="${velocity.version}",
+ org.apache.velocity.app;version="${velocity.version}",
+ org.apache.velocity.context;version="${velocity.version}",
+ org.apache.velocity.exception;version="${velocity.version}",
+ org.apache.velocity.runtime.resource;version="${velocity.version}",
+ org.apache.velocity.runtime.resource.loader;version="${velocity.version}",
org.apache.commons.io,
org.apache.axis2.transport.mail,
org.wso2.carbon.registry.core.service,
@@ -129,7 +130,7 @@
axis2
- org.apache.velocity
+ org.wso2.orbit.org.apache.velocity
velocity
diff --git a/components/email-sender/pom.xml b/components/email-sender/pom.xml
index ce1d33689b..92debe0b62 100644
--- a/components/email-sender/pom.xml
+++ b/components/email-sender/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
diff --git a/components/identity-extensions/dynamic-client-registration/dynamic-client-web-proxy/pom.xml b/components/identity-extensions/dynamic-client-registration/dynamic-client-web-proxy/pom.xml
index 399bf76a12..e9893f43d9 100644
--- a/components/identity-extensions/dynamic-client-registration/dynamic-client-web-proxy/pom.xml
+++ b/components/identity-extensions/dynamic-client-registration/dynamic-client-web-proxy/pom.xml
@@ -21,14 +21,14 @@
dynamic-client-registration
org.wso2.carbon.devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.mdm
dynamic-client-web-proxy
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Proxy endpoint of Dynamic Client Registration Web Service
WSO2 Carbon - Dynamic Client Registration Web Proxy
war
@@ -55,16 +55,16 @@
org.wso2.carbon.utils
provided
-
- org.apache.ws.commons.axiom
+
org.apache.ws.commons.axiom.wso2
axiom
diff --git a/components/identity-extensions/dynamic-client-registration/dynamic-client-web/pom.xml b/components/identity-extensions/dynamic-client-registration/dynamic-client-web/pom.xml
index 7e1ad16a0a..3fe8b932d3 100644
--- a/components/identity-extensions/dynamic-client-registration/dynamic-client-web/pom.xml
+++ b/components/identity-extensions/dynamic-client-registration/dynamic-client-web/pom.xml
@@ -21,14 +21,14 @@
dynamic-client-registration
org.wso2.carbon.devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.mdm
dynamic-client-web
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Dynamic Client Registration Web Service
WSO2 Carbon - Dynamic Client Registration Web
war
@@ -60,16 +60,16 @@
-
- org.apache.ws.commons.axiom
+
org.apache.ws.commons.axiom.wso2
axiom
diff --git a/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration/pom.xml b/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration/pom.xml
index 50d2943494..e266284599 100644
--- a/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration/pom.xml
+++ b/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration/pom.xml
@@ -21,13 +21,13 @@
dynamic-client-registration
org.wso2.carbon.devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.dynamic.client.registration
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Dynamic client registration service
WSO2 Carbon - Dynamic Client Registration Service
diff --git a/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.web.app.registration/pom.xml b/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.web.app.registration/pom.xml
index 354b0b5657..fb8e15f245 100644
--- a/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.web.app.registration/pom.xml
+++ b/components/identity-extensions/dynamic-client-registration/org.wso2.carbon.dynamic.client.web.app.registration/pom.xml
@@ -21,13 +21,13 @@
dynamic-client-registration
org.wso2.carbon.devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.dynamic.client.web.app.registration
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Dynamic client web app registration
WSO2 Carbon - Dynamic Client Web-app Registration Service
diff --git a/components/identity-extensions/dynamic-client-registration/pom.xml b/components/identity-extensions/dynamic-client-registration/pom.xml
index 82d566085e..46cbab6435 100644
--- a/components/identity-extensions/dynamic-client-registration/pom.xml
+++ b/components/identity-extensions/dynamic-client-registration/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
identity-extensions
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.devicemgt
dynamic-client-registration
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Dynamic client registration
http://wso2.org
diff --git a/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/pom.xml b/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/pom.xml
index 2b71d95288..bb35e62d8c 100644
--- a/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/pom.xml
+++ b/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/pom.xml
@@ -22,13 +22,13 @@
org.wso2.carbon.devicemgt
identity-extensions
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.oauth.extensions
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - OAuth Extensions
http://wso2.org
@@ -125,7 +125,7 @@
org.wso2.carbon.device.mgt.core.*,
javax.xml.bind,
javax.xml.bind.annotation,
- javax.xml.parsers,
+ javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional,
org.w3c.dom,
org.wso2.carbon.apimgt.keymgt,
org.wso2.carbon.apimgt.keymgt.handlers,
@@ -133,7 +133,7 @@
org.apache.commons.codec.binary,
org.wso2.carbon.identity.application.authentication.framework.model,
org.apache.oltu.oauth2.common,
- org.wso2.carbon.base
+ org.wso2.carbon.base,
diff --git a/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/internal/OAuthExtensionServiceComponent.java b/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/internal/OAuthExtensionServiceComponent.java
index 8e483bd1a4..d43c86297f 100644
--- a/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/internal/OAuthExtensionServiceComponent.java
+++ b/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/internal/OAuthExtensionServiceComponent.java
@@ -96,7 +96,7 @@ public class OAuthExtensionServiceComponent {
List whiteList;
// Read scope whitelist from Configuration.
- whiteList = configuration.getProperty(APIConstants.API_KEY_MANGER_SCOPE_WHITELIST);
+ whiteList = configuration.getProperty(APIConstants.WHITELISTED_SCOPES);
// If whitelist is null, default scopes will be put.
if (whiteList == null) {
diff --git a/components/identity-extensions/org.wso2.carbon.identity.authenticator.backend.oauth/pom.xml b/components/identity-extensions/org.wso2.carbon.identity.authenticator.backend.oauth/pom.xml
index b1d453d58c..ca1ee59e59 100644
--- a/components/identity-extensions/org.wso2.carbon.identity.authenticator.backend.oauth/pom.xml
+++ b/components/identity-extensions/org.wso2.carbon.identity.authenticator.backend.oauth/pom.xml
@@ -21,7 +21,7 @@
identity-extensions
org.wso2.carbon.devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
4.0.0
diff --git a/components/identity-extensions/org.wso2.carbon.identity.jwt.client.extension/pom.xml b/components/identity-extensions/org.wso2.carbon.identity.jwt.client.extension/pom.xml
index 82054f0415..160a1cc3c5 100644
--- a/components/identity-extensions/org.wso2.carbon.identity.jwt.client.extension/pom.xml
+++ b/components/identity-extensions/org.wso2.carbon.identity.jwt.client.extension/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
identity-extensions
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
@@ -51,8 +51,8 @@
org.wso2.carbon.device.mgt.common
- org.apache.ws.commons.axiom
- axiom-api
+ org.apache.ws.commons.axiom.wso2
+ axiom
org.wso2.carbon
@@ -175,4 +175,4 @@
-
\ No newline at end of file
+
diff --git a/components/identity-extensions/pom.xml b/components/identity-extensions/pom.xml
index 4088a8f482..32f7aa98f1 100644
--- a/components/identity-extensions/pom.xml
+++ b/components/identity-extensions/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
diff --git a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml
index f68d825c81..2565af8bc9 100644
--- a/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml
+++ b/components/policy-mgt/org.wso2.carbon.complex.policy.decision.point/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
policy-mgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.devicemgt
org.wso2.carbon.complex.policy.decision.point
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Policy Decision Point
WSO2 Carbon - Policy Decision Point
diff --git a/components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml b/components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml
index 56f18bbd1a..439f0ca977 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml
+++ b/components/policy-mgt/org.wso2.carbon.policy.information.point/pom.xml
@@ -3,7 +3,7 @@
org.wso2.carbon.devicemgt
policy-mgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
@@ -11,7 +11,7 @@
4.0.0
org.wso2.carbon.devicemgt
org.wso2.carbon.policy.information.point
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Policy Information Point
WSO2 Carbon - Policy Information Point
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml b/components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml
index ed5b2f7482..0ff506d3a8 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.common/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
policy-mgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.devicemgt
org.wso2.carbon.policy.mgt.common
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Policy Management Common
WSO2 Carbon - Policy Management Common
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java
index 8799653fe3..57f52e8fc0 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.common/src/main/java/org/wso2/carbon/policy/mgt/common/monitor/ComplianceDecisionPoint.java
@@ -32,6 +32,8 @@ public interface ComplianceDecisionPoint {
void setDevicesAsUnreachable(List deviceIdentifiers) throws PolicyComplianceException;
+ void setDevicesAsInactive(List deviceIdentifiers) throws PolicyComplianceException;
+
void setDevicesAsUnreachableWith(List devices) throws PolicyComplianceException;
void setDeviceAsReachable(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException;
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml
index 83a66b3c6a..9808791120 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
policy-mgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.devicemgt
org.wso2.carbon.policy.mgt.core
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Policy Management Core
WSO2 Carbon - Policy Management Core
@@ -61,6 +61,7 @@
javax.cache,
javax.naming,
javax.xml.*,
+ javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional,
org.w3c.dom,
org.wso2.carbon.policy.mgt.common.*,
org.wso2.carbon.user.core.*,
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java
index 26d896886a..a3079fcb4c 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImpl.java
@@ -54,6 +54,8 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
policyAdministratorPoint = new PolicyAdministratorPointImpl();
monitoringManager = new MonitoringManagerImpl();
policyManager = new PolicyManagerImpl();
+ PolicyManagementDataHolder.getInstance().setMonitoringManager(monitoringManager);
+ PolicyManagementDataHolder.getInstance().setPolicyManager(policyManager);
}
@Override
@@ -202,4 +204,4 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
public boolean isCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
return monitoringManager.isCompliance(deviceIdentifier);
}
-}
+}
\ No newline at end of file
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java
index a7f42df06c..c097494d2a 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/MonitoringDAO.java
@@ -60,9 +60,8 @@ public interface MonitoringDAO {
void deleteNoneComplianceData(int policyComplianceStatusId) throws MonitoringDAOException;
- void updateAttempts(int deviceId, boolean reset) throws MonitoringDAOException;
+ boolean updateAttempts(int deviceId, boolean reset) throws MonitoringDAOException;
void updateAttempts(List deviceId, boolean reset) throws MonitoringDAOException;
-
-}
+}
\ No newline at end of file
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java
index 20dac46f78..4a5d0e0bb9 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/dao/impl/MonitoringDAOImpl.java
@@ -400,7 +400,8 @@ public class MonitoringDAOImpl implements MonitoringDAO {
}
@Override
- public void updateAttempts(int deviceId, boolean reset) throws MonitoringDAOException {
+ public boolean updateAttempts(int deviceId, boolean reset) throws MonitoringDAOException {
+ boolean status = false;
Connection conn;
PreparedStatement stmt = null;
Timestamp currentTimestamp = new Timestamp(Calendar.getInstance().getTime().getTime());
@@ -420,11 +421,13 @@ public class MonitoringDAOImpl implements MonitoringDAO {
stmt.setInt(2, deviceId);
stmt.setInt(3, tenantId);
stmt.executeUpdate();
+ status = true;
} catch (SQLException e) {
throw new MonitoringDAOException("Unable to update the attempts data in database.", e);
} finally {
PolicyManagementDAOUtil.cleanupResources(stmt, null);
}
+ return status;
}
@Override
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java
index 77c00033d4..7baf29bf79 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/impl/ComplianceDecisionPointImpl.java
@@ -66,6 +66,22 @@ public class ComplianceDecisionPointImpl implements ComplianceDecisionPoint {
}
+ @Override
+ public void setDevicesAsInactive(List deviceIdentifiers) throws PolicyComplianceException {
+ try {
+ DeviceManagementProviderService service = this.getDeviceManagementProviderService();
+ for (DeviceIdentifier deviceIdentifier : deviceIdentifiers) {
+ Device device = service.getDevice(deviceIdentifier);
+ service.setStatus(deviceIdentifier, device.getEnrolmentInfo().getOwner(),
+ EnrolmentInfo.Status.INACTIVE);
+ }
+ } catch (DeviceManagementException e) {
+ String msg = "Error occurred while setting the device as inactive";
+ log.error(msg, e);
+ throw new PolicyComplianceException(msg, e);
+ }
+ }
+
@Override
public void setDevicesAsUnreachableWith(List devices) throws PolicyComplianceException {
try {
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java
index dd4519eb5b..584bd2ec08 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementDataHolder.java
@@ -23,6 +23,8 @@ import org.wso2.carbon.ntask.core.service.TaskService;
import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint;
import org.wso2.carbon.policy.mgt.common.PolicyInformationPoint;
import org.wso2.carbon.policy.mgt.common.spi.PolicyMonitoringService;
+import org.wso2.carbon.policy.mgt.core.mgt.MonitoringManager;
+import org.wso2.carbon.policy.mgt.core.mgt.PolicyManager;
import org.wso2.carbon.user.core.service.RealmService;
import org.wso2.carbon.user.core.tenant.TenantManager;
@@ -36,6 +38,8 @@ public class PolicyManagementDataHolder {
private PolicyEvaluationPoint policyEvaluationPoint;
private PolicyInformationPoint policyInformationPoint;
private DeviceManagementProviderService deviceManagementService;
+ private MonitoringManager monitoringManager;
+ private PolicyManager policyManager;
private Map policyMonitoringServiceMap = new HashMap<>();
private TaskService taskService;
@@ -47,6 +51,22 @@ public class PolicyManagementDataHolder {
return thisInstance;
}
+ public PolicyManager getPolicyManager() {
+ return policyManager;
+ }
+
+ public void setPolicyManager(PolicyManager policyManager) {
+ this.policyManager = policyManager;
+ }
+
+ public MonitoringManager getMonitoringManager() {
+ return monitoringManager;
+ }
+
+ public void setMonitoringManager(MonitoringManager monitoringManager) {
+ this.monitoringManager = monitoringManager;
+ }
+
public RealmService getRealmService() {
return realmService;
}
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java
index 883d49237d..2b6e7d5eae 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/MonitoringManager.java
@@ -21,7 +21,6 @@ package org.wso2.carbon.policy.mgt.core.mgt;
import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
-import org.wso2.carbon.device.mgt.core.dto.DeviceType;
import org.wso2.carbon.policy.mgt.common.monitor.ComplianceData;
import org.wso2.carbon.policy.mgt.common.monitor.ComplianceFeature;
import org.wso2.carbon.policy.mgt.common.monitor.PolicyComplianceException;
@@ -40,6 +39,6 @@ public interface MonitoringManager {
void addMonitoringOperation(List devices) throws PolicyComplianceException;
- List getDeviceTypes() throws PolicyComplianceException;
+ List getDeviceTypes() throws PolicyComplianceException;
}
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java
index a80bd46219..91d16cb01a 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/MonitoringManagerImpl.java
@@ -16,12 +16,10 @@
* under the License.
*/
-
package org.wso2.carbon.policy.mgt.core.mgt.impl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
@@ -30,12 +28,8 @@ import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
import org.wso2.carbon.device.mgt.core.config.DeviceConfigurationManager;
import org.wso2.carbon.device.mgt.core.config.policy.PolicyConfiguration;
-import org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOFactory;
-import org.wso2.carbon.device.mgt.core.dao.DeviceTypeDAO;
-import org.wso2.carbon.device.mgt.core.dto.DeviceType;
import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
-import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl;
import org.wso2.carbon.policy.mgt.common.Policy;
import org.wso2.carbon.policy.mgt.common.PolicyManagementException;
import org.wso2.carbon.policy.mgt.common.ProfileFeature;
@@ -56,8 +50,6 @@ import java.util.Map;
public class MonitoringManagerImpl implements MonitoringManager {
private PolicyDAO policyDAO;
- // private DeviceDAO deviceDAO;
- private DeviceTypeDAO deviceTypeDAO;
private MonitoringDAO monitoringDAO;
private ComplianceDecisionPoint complianceDecisionPoint;
private PolicyConfiguration policyConfiguration;
@@ -69,8 +61,6 @@ public class MonitoringManagerImpl implements MonitoringManager {
public MonitoringManagerImpl() {
this.policyDAO = PolicyManagementDAOFactory.getPolicyDAO();
-// this.deviceDAO = DeviceManagementDAOFactory.getDeviceDAO();
- this.deviceTypeDAO = DeviceManagementDAOFactory.getDeviceTypeDAO();
this.monitoringDAO = PolicyManagementDAOFactory.getMonitoringDAO();
this.complianceDecisionPoint = new ComplianceDecisionPointImpl();
this.policyConfiguration =
@@ -84,8 +74,9 @@ public class MonitoringManagerImpl implements MonitoringManager {
List complianceFeatures = new ArrayList<>();
try {
- DeviceManagementProviderService service = new DeviceManagementProviderServiceImpl();
- PolicyManager manager = new PolicyManagerImpl();
+ DeviceManagementProviderService service =
+ PolicyManagementDataHolder.getInstance().getDeviceManagementService();
+ PolicyManager manager = PolicyManagementDataHolder.getInstance().getPolicyManager();
Device device = service.getDevice(deviceIdentifier);
Policy policy = manager.getAppliedPolicyToDevice(deviceIdentifier);
if (policy != null) {
@@ -99,7 +90,7 @@ public class MonitoringManagerImpl implements MonitoringManager {
PolicyManagementDAOFactory.openConnection();
ComplianceData cmd = monitoringDAO.getCompliance(device.getId(), device.getEnrolmentInfo().getId());
complianceData = monitoringService.checkPolicyCompliance(deviceIdentifier,
- policy, deviceResponse);
+ policy, deviceResponse);
complianceData.setId(cmd.getId());
complianceData.setPolicy(policy);
@@ -109,8 +100,9 @@ public class MonitoringManagerImpl implements MonitoringManager {
} catch (SQLException e) {
throw new PolicyComplianceException("Error occurred while opening a data source connection", e);
} catch (MonitoringDAOException e) {
- throw new PolicyComplianceException("Unable to add the none compliance features to database for device " +
- deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
+ throw new PolicyComplianceException(
+ "Unable to add the none compliance features to database for device " +
+ deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
} finally {
PolicyManagementDAOFactory.closeConnection();
}
@@ -121,19 +113,20 @@ public class MonitoringManagerImpl implements MonitoringManager {
try {
PolicyManagementDAOFactory.beginTransaction();
monitoringDAO.setDeviceAsNoneCompliance(device.getId(), device.getEnrolmentInfo().getId(),
- policy.getId());
+ policy.getId());
if (log.isDebugEnabled()) {
log.debug("Compliance status primary key " + complianceData.getId());
}
monitoringDAO.deleteNoneComplianceData(complianceData.getId());
monitoringDAO.addNonComplianceFeatures(complianceData.getId(), device.getId(),
- complianceFeatures);
+ complianceFeatures);
PolicyManagementDAOFactory.commitTransaction();
} catch (MonitoringDAOException e) {
PolicyManagementDAOFactory.rollbackTransaction();
- throw new PolicyComplianceException("Unable to add the none compliance features to database for device " +
- deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
+ throw new PolicyComplianceException(
+ "Unable to add the none compliance features to database for device " +
+ deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
} finally {
PolicyManagementDAOFactory.closeConnection();
}
@@ -155,8 +148,9 @@ public class MonitoringManagerImpl implements MonitoringManager {
PolicyManagementDAOFactory.commitTransaction();
} catch (MonitoringDAOException e) {
PolicyManagementDAOFactory.rollbackTransaction();
- throw new PolicyComplianceException("Unable to remove the none compliance features from database for device " +
- deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
+ throw new PolicyComplianceException(
+ "Unable to remove the none compliance features from database for device " +
+ deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
} finally {
PolicyManagementDAOFactory.closeConnection();
}
@@ -168,10 +162,10 @@ public class MonitoringManagerImpl implements MonitoringManager {
}
} catch (DeviceManagementException e) {
throw new PolicyComplianceException("Unable tor retrieve device data from DB for " +
- deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
+ deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
} catch (PolicyManagerDAOException | PolicyManagementException e) {
throw new PolicyComplianceException("Unable tor retrieve policy data from DB for device " +
- deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
+ deviceIdentifier.getId() + " - " + deviceIdentifier.getType(), e);
}
return complianceFeatures;
}
@@ -179,21 +173,22 @@ public class MonitoringManagerImpl implements MonitoringManager {
@Override
public boolean isCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
try {
- DeviceManagementProviderService service = new DeviceManagementProviderServiceImpl();
+ DeviceManagementProviderService service =
+ PolicyManagementDataHolder.getInstance().getDeviceManagementService();
Device device = service.getDevice(deviceIdentifier);
PolicyManagementDAOFactory.openConnection();
ComplianceData complianceData = monitoringDAO.getCompliance(device.getId(), device.getEnrolmentInfo()
- .getId());
+ .getId());
if (complianceData == null || !complianceData.isStatus()) {
return false;
}
} catch (DeviceManagementException e) {
throw new PolicyComplianceException("Unable to retrieve device data for " + deviceIdentifier.getId() +
- " - " + deviceIdentifier.getType(), e);
+ " - " + deviceIdentifier.getType(), e);
} catch (MonitoringDAOException e) {
throw new PolicyComplianceException("Unable to retrieve compliance status for " + deviceIdentifier.getId() +
- " - " + deviceIdentifier.getType(), e);
+ " - " + deviceIdentifier.getType(), e);
} catch (SQLException e) {
throw new PolicyComplianceException("Error occurred while opening a connection to the data source", e);
} finally {
@@ -204,12 +199,12 @@ public class MonitoringManagerImpl implements MonitoringManager {
@Override
public ComplianceData getDevicePolicyCompliance(DeviceIdentifier deviceIdentifier) throws
- PolicyComplianceException {
-
+ PolicyComplianceException {
ComplianceData complianceData;
try {
PolicyManagementDAOFactory.openConnection();
- DeviceManagementProviderService service = new DeviceManagementProviderServiceImpl();
+ DeviceManagementProviderService service =
+ PolicyManagementDataHolder.getInstance().getDeviceManagementService();
Device device = service.getDevice(deviceIdentifier);
complianceData = monitoringDAO.getCompliance(device.getId(), device.getEnrolmentInfo().getId());
List complianceFeatures =
@@ -218,11 +213,11 @@ public class MonitoringManagerImpl implements MonitoringManager {
} catch (DeviceManagementException e) {
throw new PolicyComplianceException("Unable to retrieve device data for " + deviceIdentifier.getId() +
- " - " + deviceIdentifier.getType(), e);
+ " - " + deviceIdentifier.getType(), e);
} catch (MonitoringDAOException e) {
throw new PolicyComplianceException("Unable to retrieve compliance data for " + deviceIdentifier.getId() +
- " - " + deviceIdentifier.getType(), e);
+ " - " + deviceIdentifier.getType(), e);
} catch (SQLException e) {
throw new PolicyComplianceException("Error occurred while opening a connection to the data source", e);
} finally {
@@ -241,6 +236,7 @@ public class MonitoringManagerImpl implements MonitoringManager {
try {
PolicyManagementDAOFactory.openConnection();
+ //TODO: Return a map from getCompliance to reduce O(n^2) -> O(n)
List cd = monitoringDAO.getCompliance();
for (Device device : devices) {
@@ -275,7 +271,7 @@ public class MonitoringManagerImpl implements MonitoringManager {
Map deviceIdsToAddOperation = new HashMap<>();
Map deviceIdsWithExistingOperation = new HashMap<>();
Map inactiveDeviceIds = new HashMap<>();
- Map deviceToMarkUnreachable = new HashMap<>();
+ Map devicesToMarkUnreachable = new HashMap<>();
//Map firstTimeDeviceIdsWithPolicyIds = new HashMap<>();
List firstTimeDevices = new ArrayList<>();
@@ -290,18 +286,18 @@ public class MonitoringManagerImpl implements MonitoringManager {
if (complianceData.getAttempts() == 0) {
deviceIdsToAddOperation.put(complianceData.getDeviceId(),
- deviceIds.get(complianceData.getDeviceId()));
+ deviceIds.get(complianceData.getDeviceId()));
} else {
deviceIdsWithExistingOperation.put(complianceData.getDeviceId(),
- deviceIds.get(complianceData.getDeviceId()));
+ deviceIds.get(complianceData.getDeviceId()));
if (complianceData.getAttempts() >= policyConfiguration.getMinRetriesToMarkUnreachable()) {
- deviceToMarkUnreachable.put(complianceData.getDeviceId(),
- deviceIds.get(complianceData.getDeviceId()));
+ devicesToMarkUnreachable.put(complianceData.getDeviceId(),
+ deviceIds.get(complianceData.getDeviceId()));
}
}
if (complianceData.getAttempts() >= policyConfiguration.getMinRetriesToMarkInactive()) {
inactiveDeviceIds.put(complianceData.getDeviceId(),
- deviceIds.get(complianceData.getDeviceId()));
+ deviceIds.get(complianceData.getDeviceId()));
}
}
}
@@ -325,14 +321,14 @@ public class MonitoringManagerImpl implements MonitoringManager {
log.debug("These devices are in the system for the first time");
for (PolicyDeviceWrapper wrapper : firstTimeDevices) {
log.debug("First time device primary key : " + wrapper.getDeviceId() + " & policy id " +
- wrapper.getPolicyId());
+ wrapper.getPolicyId());
}
}
PolicyManagementDAOFactory.beginTransaction();
if (!deviceIdsToAddOperation.isEmpty()) {
-// monitoringDAO.addComplianceDetails(firstTimeDeviceIdsWithPolicyIds);
+ // monitoringDAO.addComplianceDetails(firstTimeDeviceIdsWithPolicyIds);
monitoringDAO.addComplianceDetails(firstTimeDevices);
monitoringDAO.updateAttempts(new ArrayList<>(deviceIdsToAddOperation.keySet()), false);
}
@@ -365,26 +361,29 @@ public class MonitoringManagerImpl implements MonitoringManager {
// TODO : This should be uncommented, this is to mark the device as unreachable, But given the current
// implementation we are not able to do so.
-// if(!deviceToMarkUnreachable.isEmpty()) {
-// ComplianceDecisionPoint decisionPoint = new ComplianceDecisionPointImpl();
-// decisionPoint.setDevicesAsUnreachable(this.getDeviceIdentifiersFromDevices(
-// new ArrayList<>(deviceToMarkUnreachable.values())));
-// }
+ if (!devicesToMarkUnreachable.isEmpty()) {
+ ComplianceDecisionPoint decisionPoint = new ComplianceDecisionPointImpl();
+ decisionPoint.setDevicesAsUnreachable(this.getDeviceIdentifiersFromDevices(
+ new ArrayList<>(devicesToMarkUnreachable.values())));
+ }
+
+ if (!inactiveDeviceIds.isEmpty()) {
+ ComplianceDecisionPoint decisionPoint = new ComplianceDecisionPointImpl();
+ decisionPoint.setDevicesAsInactive(this.getDeviceIdentifiersFromDevices(
+ new ArrayList<>(inactiveDeviceIds.values())));
+ }
}
@Override
- public List getDeviceTypes() throws PolicyComplianceException {
+ public List getDeviceTypes() throws PolicyComplianceException {
- List deviceTypes = new ArrayList<>();
+ List deviceTypes = new ArrayList<>();
try {
- DeviceManagementDAOFactory.openConnection();
- int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
- deviceTypes = deviceTypeDAO.getDeviceTypes(tenantId);
- } catch (Exception e) {
- log.error("Error occurred while getting the device types.", e);
- } finally {
- DeviceManagementDAOFactory.closeConnection();
+ deviceTypes =
+ PolicyManagementDataHolder.getInstance().getDeviceManagementService().getAvailableDeviceTypes();
+ } catch (DeviceManagementException e) {
+ throw new PolicyComplianceException("Error occurred while getting the device types.", e);
}
return deviceTypes;
}
@@ -397,24 +396,24 @@ public class MonitoringManagerImpl implements MonitoringManager {
monitoringOperation.setEnabled(true);
monitoringOperation.setType(Operation.Type.COMMAND);
monitoringOperation.setCode(OPERATION_MONITOR);
-// CommandOperation infoOperation = new CommandOperation();
-// infoOperation.setEnabled(true);
-// infoOperation.setType(Operation.Type.COMMAND);
-// infoOperation.setCode(OPERATION_INFO);
-// CommandOperation appListOperation = new CommandOperation();
-// appListOperation.setEnabled(true);
-// appListOperation.setType(Operation.Type.COMMAND);
-// appListOperation.setCode(OPERATION_APP_LIST);
+ // CommandOperation infoOperation = new CommandOperation();
+ // infoOperation.setEnabled(true);
+ // infoOperation.setType(Operation.Type.COMMAND);\\
+ // infoOperation.setCode(OPERATION_INFO);
+ // CommandOperation appListOperation = new CommandOperation();
+ // appListOperation.setEnabled(true);
+ // appListOperation.setType(Operation.Type.COMMAND);
+ // appListOperation.setCode(OPERATION_APP_LIST);
//TODO: Fix this properly later adding device type to be passed in when the task manage executes "addOperations()"
String type = null;
if (deviceIdentifiers.size() > 0) {
type = deviceIdentifiers.get(0).getType();
}
- DeviceManagementProviderService service = new DeviceManagementProviderServiceImpl();
+ DeviceManagementProviderService service = PolicyManagementDataHolder.getInstance().getDeviceManagementService();
service.addOperation(type, monitoringOperation, deviceIdentifiers);
-// service.addOperation(infoOperation, deviceIdentifiers);
-// service.addOperation(appListOperation, deviceIdentifiers);
+ // service.addOperation(infoOperation, deviceIdentifiers);
+ // service.addOperation(appListOperation, deviceIdentifiers);
}
private List getDeviceIdentifiersFromDevices(List devices) {
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java
index a8e8250c56..3c390780e6 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java
@@ -26,9 +26,6 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup;
import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException;
-import org.wso2.carbon.device.mgt.core.dao.DeviceDAO;
-import org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOFactory;
-import org.wso2.carbon.device.mgt.core.dto.DeviceType;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl;
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
@@ -50,14 +47,12 @@ public class PolicyManagerImpl implements PolicyManager {
private ProfileDAO profileDAO;
private FeatureDAO featureDAO;
private ProfileManager profileManager;
- private DeviceDAO deviceDAO;
private static Log log = LogFactory.getLog(PolicyManagerImpl.class);
public PolicyManagerImpl() {
this.policyDAO = PolicyManagementDAOFactory.getPolicyDAO();
this.profileDAO = PolicyManagementDAOFactory.getProfileDAO();
this.featureDAO = PolicyManagementDAOFactory.getFeatureDAO();
- this.deviceDAO = DeviceManagementDAOFactory.getDeviceDAO();
this.profileManager = new ProfileManagerImpl();
}
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/service/PolicyManagementService.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/service/PolicyManagementService.java
deleted file mode 100644
index 5ed2bf0f65..0000000000
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/service/PolicyManagementService.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
-* Copyright (c) 2015 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
-*
-* WSO2 Inc. licenses this file to you under the Apache License,
-* Version 2.0 (the "License"); you may not use this file except
-* in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied. See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
-
-package org.wso2.carbon.policy.mgt.core.service;
-
-import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
-import org.wso2.carbon.device.mgt.common.Feature;
-import org.wso2.carbon.policy.mgt.common.*;
-import org.wso2.carbon.policy.mgt.common.monitor.ComplianceData;
-import org.wso2.carbon.policy.mgt.common.monitor.ComplianceFeature;
-import org.wso2.carbon.policy.mgt.common.monitor.PolicyComplianceException;
-import org.wso2.carbon.policy.mgt.core.PolicyManagerService;
-import org.wso2.carbon.policy.mgt.core.PolicyManagerServiceImpl;
-import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService;
-
-import java.util.List;
-
-public class PolicyManagementService implements PolicyManagerService {
-
-
- PolicyManagerService policyManagerService;
-
- public PolicyManagementService() {
- policyManagerService = new PolicyManagerServiceImpl();
- }
-
-
- @Override
- public Profile addProfile(Profile profile) throws PolicyManagementException {
- return policyManagerService.addProfile(profile);
- }
-
- @Override
- public Profile updateProfile(Profile profile) throws PolicyManagementException {
- return policyManagerService.updateProfile(profile);
- }
-
- @Override
- public Policy addPolicy(Policy policy) throws PolicyManagementException {
- return policyManagerService.addPolicy(policy);
- }
-
- @Override
- public Policy updatePolicy(Policy policy) throws PolicyManagementException {
- return policyManagerService.updatePolicy(policy);
- }
-
- @Override
- public boolean deletePolicy(Policy policy) throws PolicyManagementException {
- return policyManagerService.deletePolicy(policy);
- }
-
- @Override
- public boolean deletePolicy(int policyId) throws PolicyManagementException {
- return policyManagerService.deletePolicy(policyId);
- }
-
- @Override
- public Policy getEffectivePolicy(DeviceIdentifier deviceIdentifier) throws PolicyManagementException {
- return policyManagerService.getEffectivePolicy(deviceIdentifier);
- }
-
- @Override
- public List getEffectiveFeatures(DeviceIdentifier deviceIdentifier) throws
- FeatureManagementException {
- return policyManagerService.getEffectiveFeatures(deviceIdentifier);
- }
-
- @Override
- public List getPolicies(String deviceType) throws PolicyManagementException {
- return policyManagerService.getPolicies(deviceType);
- }
-
- @Override
- public List getFeatures() throws FeatureManagementException {
- return policyManagerService.getFeatures();
- }
-
- @Override
- public PolicyAdministratorPoint getPAP() throws PolicyManagementException {
- return policyManagerService.getPAP();
- }
-
- @Override
- public PolicyInformationPoint getPIP() throws PolicyManagementException {
- return policyManagerService.getPIP();
- }
-
- @Override
- public PolicyEvaluationPoint getPEP() throws PolicyManagementException {
- return policyManagerService.getPEP();
- }
-
- @Override
- public TaskScheduleService getTaskScheduleService() throws PolicyMonitoringTaskException {
- return policyManagerService.getTaskScheduleService();
- }
-
- @Override
- public int getPolicyCount() throws PolicyManagementException {
- return policyManagerService.getPolicyCount();
- }
-
- @Override
- public Policy getAppliedPolicyToDevice(
- DeviceIdentifier deviceIdentifier) throws PolicyManagementException {
- return policyManagerService.getAppliedPolicyToDevice(deviceIdentifier);
- }
-
- @Override
- public List checkPolicyCompliance(DeviceIdentifier deviceIdentifier, Object
- deviceResponse) throws PolicyComplianceException {
- return policyManagerService.checkPolicyCompliance(deviceIdentifier, deviceResponse);
- }
-
- @Override
- public boolean checkCompliance(DeviceIdentifier deviceIdentifier, Object response) throws
- PolicyComplianceException {
- return policyManagerService.checkCompliance(deviceIdentifier, response);
- }
-
- @Override
- public ComplianceData getDeviceCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
- return policyManagerService.getDeviceCompliance(deviceIdentifier);
- }
-
- @Override
- public boolean isCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
- return policyManagerService.isCompliance(deviceIdentifier);
- }
-}
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java
index cf803dec28..492e771acd 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/MonitoringTask.java
@@ -40,7 +40,6 @@ import java.util.Map;
public class MonitoringTask implements Task {
- private DeviceTypeDAO deviceTypeDAO;
private static Log log = LogFactory.getLog(MonitoringTask.class);
Map properties;
@@ -53,7 +52,6 @@ public class MonitoringTask implements Task {
@Override
public void init() {
- deviceTypeDAO = DeviceManagementDAOFactory.getDeviceTypeDAO();
}
@Override
@@ -63,9 +61,9 @@ public class MonitoringTask implements Task {
log.debug("Monitoring task started to run.");
}
- MonitoringManager monitoringManager = new MonitoringManagerImpl();
+ MonitoringManager monitoringManager = PolicyManagementDataHolder.getInstance().getMonitoringManager();
- List deviceTypes = new ArrayList<>();
+ List deviceTypes = new ArrayList<>();
try {
deviceTypes = monitoringManager.getDeviceTypes();
} catch (PolicyComplianceException e) {
@@ -79,15 +77,15 @@ public class MonitoringTask implements Task {
DeviceManagementProviderService deviceManagementProviderService =
PolicyManagementDataHolder.getInstance().getDeviceManagementService();
- for (DeviceType deviceType : deviceTypes) {
+ for (String deviceType : deviceTypes) {
if (log.isDebugEnabled()) {
- log.debug("Running task for device type : " + deviceType.getName());
+ log.debug("Running task for device type : " + deviceType);
}
PolicyMonitoringService monitoringService =
- PolicyManagementDataHolder.getInstance().getPolicyMonitoringService(deviceType.getName());
- List devices = deviceManagementProviderService.getAllDevices(deviceType.getName());
+ PolicyManagementDataHolder.getInstance().getPolicyMonitoringService(deviceType);
+ List devices = deviceManagementProviderService.getAllDevices(deviceType);
if (monitoringService != null && !devices.isEmpty()) {
@@ -95,12 +93,11 @@ public class MonitoringTask implements Task {
if (log.isDebugEnabled()) {
log.debug("Removing inactive and blocked devices from the list for the device type : " +
- deviceType.getName());
+ deviceType);
}
for (Device device : devices) {
EnrolmentInfo.Status status = device.getEnrolmentInfo().getStatus();
- if (status.equals(EnrolmentInfo.Status.INACTIVE) ||
- status.equals(EnrolmentInfo.Status.BLOCKED) ||
+ if (status.equals(EnrolmentInfo.Status.BLOCKED) ||
status.equals(EnrolmentInfo.Status.REMOVED) ||
status.equals(EnrolmentInfo.Status.UNCLAIMED) ||
status.equals(EnrolmentInfo.Status.DISENROLLMENT_REQUESTED) ||
@@ -111,14 +108,15 @@ public class MonitoringTask implements Task {
}
}
if (log.isDebugEnabled()) {
- log.debug("Following devices selected to send the notification for " +
- deviceType.getName());
+ log.debug("Following devices selected to send the notification for " + deviceType);
for (Device device : notifiableDevices) {
log.debug(device.getDeviceIdentifier());
}
}
- monitoringManager.addMonitoringOperation(notifiableDevices);
- monitoringService.notifyDevices(notifiableDevices);
+ if (!notifiableDevices.isEmpty()) {
+ monitoringManager.addMonitoringOperation(notifiableDevices);
+ monitoringService.notifyDevices(notifiableDevices);
+ }
}
}
if (log.isDebugEnabled()) {
diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java
index d0d9fce352..e5c983ed6f 100644
--- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java
+++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/util/PolicyManagerUtil.java
@@ -22,6 +22,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Document;
import org.wso2.carbon.device.mgt.common.Device;
+import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationEntry;
import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationManagementException;
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration;
diff --git a/components/policy-mgt/org.wso2.carbon.simple.policy.decision.point/pom.xml b/components/policy-mgt/org.wso2.carbon.simple.policy.decision.point/pom.xml
index 18cf8b67cb..a04072a41e 100644
--- a/components/policy-mgt/org.wso2.carbon.simple.policy.decision.point/pom.xml
+++ b/components/policy-mgt/org.wso2.carbon.simple.policy.decision.point/pom.xml
@@ -3,14 +3,14 @@
org.wso2.carbon.devicemgt
policy-mgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.devicemgt
org.wso2.carbon.simple.policy.decision.point
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Simple Policy Decision Point
WSO2 Carbon - Simple Policy Decision Point
diff --git a/components/policy-mgt/pom.xml b/components/policy-mgt/pom.xml
index da76a91c00..ead1e954c2 100644
--- a/components/policy-mgt/pom.xml
+++ b/components/policy-mgt/pom.xml
@@ -23,13 +23,13 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
policy-mgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Policy Management Component
http://wso2.org
diff --git a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml
index bdbbab96a6..a277d16e17 100644
--- a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml
+++ b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml
@@ -21,14 +21,14 @@
org.wso2.carbon.devicemgt
webapp-authenticator-framework
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.devicemgt
org.wso2.carbon.webapp.authenticator.framework
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
bundle
WSO2 Carbon - Web Application Authenticator Framework Bundle
WSO2 Carbon - Web Application Authenticator Framework Bundle
@@ -61,9 +61,8 @@
com.nimbusds.jwt,
javax.xml.bind,
javax.xml.bind.annotation,
- javax.xml.parsers,
+ javax.xml.parsers;version="${javax.xml.parsers.import.pkg.version}";resolution:=optional,
javax.xml.validation,
- org.apache.axiom.util.base64,
org.apache.catalina,
org.apache.catalina.connector,
org.apache.catalina.util,
@@ -110,13 +109,9 @@
org.apache.commons.pool.impl,
org.apache.http.conn,
org.apache.http.impl.conn,
- javax.xml.soap,
+ javax.xml.soap; version="${javax.xml.soap.imp.pkg.version}",
javax.xml.stream,
- org.apache.axiom.soap,
- org.apache.axiom.soap.impl.builder,
- org.apache.axiom.om,
- org.apache.axiom.om.impl.builder,
- org.apache.axiom.om.util,
+ org.apache.axiom.*; version="${axiom.osgi.version.range}",
org.wso2.carbon.registry.core.*,
org.wso2.carbon.registry.common.*;version="${carbon.registry.imp.pkg.version.range}",
org.wso2.carbon.registry.indexing.*; version="${carbon.registry.imp.pkg.version.range}",
@@ -166,10 +161,10 @@
org.wso2.carbon
org.wso2.carbon.tomcat.ext
-
+
org.wso2.carbon.identity
org.wso2.carbon.identity.base
diff --git a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/AuthenticationFrameworkUtil.java b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/AuthenticationFrameworkUtil.java
index 81629eedb5..8a44108ee8 100644
--- a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/AuthenticationFrameworkUtil.java
+++ b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/AuthenticationFrameworkUtil.java
@@ -57,7 +57,7 @@ public class AuthenticationFrameworkUtil {
}
APITokenValidator tokenValidator = new APITokenValidator();
APIKeyValidationInfoDTO apiKeyValidationDTO = tokenValidator.validateKey(context, version, accessToken,
- requiredAuthenticationLevel, clientDomain);
+ requiredAuthenticationLevel);
if (apiKeyValidationDTO.isAuthorized()) {
String username = apiKeyValidationDTO.getEndUserName();
PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(username);
diff --git a/components/webapp-authenticator-framework/pom.xml b/components/webapp-authenticator-framework/pom.xml
index fe467c4e10..d8a9d1d554 100644
--- a/components/webapp-authenticator-framework/pom.xml
+++ b/components/webapp-authenticator-framework/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
webapp-authenticator-framework
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Webapp Authenticator Framework
http://wso2.org
diff --git a/features/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.feature/pom.xml b/features/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.feature/pom.xml
index c04f351523..f5b75220e7 100644
--- a/features/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.feature/pom.xml
+++ b/features/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.feature/pom.xml
@@ -21,14 +21,14 @@
org.wso2.carbon.devicemgt
apimgt-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.apimgt.application.extension.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - API Management Application Extension Feature
http://wso2.org
This feature contains an implementation of a api application registration, which takes care of subscription
diff --git a/features/apimgt-extensions/org.wso2.carbon.apimgt.webapp.publisher.feature/pom.xml b/features/apimgt-extensions/org.wso2.carbon.apimgt.webapp.publisher.feature/pom.xml
index 5f0820469a..54bf525e4a 100644
--- a/features/apimgt-extensions/org.wso2.carbon.apimgt.webapp.publisher.feature/pom.xml
+++ b/features/apimgt-extensions/org.wso2.carbon.apimgt.webapp.publisher.feature/pom.xml
@@ -21,14 +21,14 @@
org.wso2.carbon.devicemgt
apimgt-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.apimgt.webapp.publisher.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - API Management Webapp Publisher Feature
http://wso2.org
This feature contains an implementation of a Tomcat lifecycle listener, which takes care of publishing
diff --git a/features/apimgt-extensions/pom.xml b/features/apimgt-extensions/pom.xml
index f95803db0c..2775c2532b 100644
--- a/features/apimgt-extensions/pom.xml
+++ b/features/apimgt-extensions/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
apimgt-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - API Management Extensions Feature
http://wso2.org
diff --git a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.api.feature/pom.xml b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.api.feature/pom.xml
index e2e8e17282..07e50272b6 100644
--- a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.api.feature/pom.xml
+++ b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.api.feature/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
certificate-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
diff --git a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api.feature/pom.xml b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api.feature/pom.xml
index 70671c3e30..786c1140e0 100644
--- a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api.feature/pom.xml
+++ b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api.feature/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
certificate-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
diff --git a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml
index ee713b7dcf..f1a604364d 100644
--- a/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml
+++ b/features/certificate-mgt/org.wso2.carbon.certificate.mgt.server.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
certificate-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.certificate.mgt.server.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Certificate Management Server Feature
http://wso2.org
This feature contains the core bundles required for back-end Certificate Management functionality
@@ -41,19 +41,15 @@
org.wso2.carbon.certificate.mgt.core
- org.bouncycastle.wso2
+ org.wso2.orbit.org.bouncycastle
bcprov-jdk15on
- org.bouncycastle.wso2
+ org.wso2.orbit.org.bouncycastle
bcpkix-jdk15on
- org.bouncycastle.wso2
- bcmail-jdk15on
-
-
- com.google.code.jscep.wso2
+ org.wso2.orbit.com.google.code.jscep
jscep
@@ -68,6 +64,10 @@
commons-codec.wso2
commons-codec
+
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.indexing
+
@@ -122,16 +122,10 @@
org.wso2.carbon.devicemgt:org.wso2.carbon.certificate.mgt.core:${carbon.device.mgt.version}
- org.bouncycastle.wso2:bcprov-jdk15on:${bcprov.wso2.version}
-
-
- org.bouncycastle.wso2:bcpkix-jdk15on:${bcpkix.wso2.version}
-
-
- org.bouncycastle.wso2:bcmail-jdk15on:${bcmail.wso2.version}
+ org.wso2.orbit.org.bouncycastle:bcpkix-jdk15on:${bcpkix.wso2.version}
- com.google.code.jscep.wso2:jscep:${jscep.version}
+ org.wso2.orbit.com.google.code.jscep:jscep:${jscep.version}
commons-io.wso2:commons-io:${version.commons.io}
@@ -146,6 +140,9 @@
org.wso2.carbon.core.server:${carbon.kernel.version}
+
+ org.wso2.carbon.registry:org.wso2.carbon.registry.indexing:${carbon.registry.version}
+
diff --git a/features/certificate-mgt/pom.xml b/features/certificate-mgt/pom.xml
index 3783d656e6..c0968aa754 100644
--- a/features/certificate-mgt/pom.xml
+++ b/features/certificate-mgt/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
certificate-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Certificate Management Feature
http://wso2.org
diff --git a/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature/pom.xml b/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature/pom.xml
index 74a4e4e5b3..ca4b374047 100644
--- a/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature/pom.xml
+++ b/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
device-mgt-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - GCM Based Push Notification Provider Feature
http://wso2.org
WSO2 Carbon - MQTT Based Push Notification Provider Feature
diff --git a/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature/pom.xml b/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature/pom.xml
index d919d3ada7..1959350727 100644
--- a/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature/pom.xml
+++ b/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
device-mgt-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - MQTT Based Push Notification Provider Feature
http://wso2.org
WSO2 Carbon - MQTT Based Push Notification Provider Feature
diff --git a/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature/pom.xml b/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature/pom.xml
index 3d4c6b58ac..7321e5d89f 100644
--- a/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature/pom.xml
+++ b/features/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
device-mgt-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - XMPP Based Push Notification Provider Feature
http://wso2.org
WSO2 Carbon - XMPP Based Push Notification Provider Feature
diff --git a/features/device-mgt-extensions/pom.xml b/features/device-mgt-extensions/pom.xml
index c9bf2969a1..1c65ebb2a5 100644
--- a/features/device-mgt-extensions/pom.xml
+++ b/features/device-mgt-extensions/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard.feature/pom.xml
index dbfe22ee3e..5d6ff90a06 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard.feature/pom.xml
@@ -3,13 +3,13 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.analytics.dashboard.feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Device Management Dashboard Analytics Feature
WSO2 Carbon - Device Management Dashboard Analytics Feature
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.analytics.data.publisher.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.analytics.data.publisher.feature/pom.xml
index a359f514e2..ab337ae592 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.analytics.data.publisher.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.analytics.data.publisher.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.analytics.data.publisher.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Device Management Server Feature
http://wso2.org
This feature contains bundles related to device analytics data publisher
@@ -39,6 +39,14 @@
org.wso2.carbon.devicemgt
org.wso2.carbon.device.mgt.analytics.data.publisher
+
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.indexing
+
+
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.common
+
@@ -96,6 +104,10 @@
org.wso2.carbon.core.server:${carbon.kernel.version}
+
+ org.wso2.carbon.registry:org.wso2.carbon.registry.indexing:${carbon.registry.version}
+ org.wso2.carbon.registry:org.wso2.carbon.registry.common:${carbon.registry.version}
+
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.api.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.api.feature/pom.xml
index 0cedb9fb10..699e39e0e5 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.api.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.api.feature/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.extensions.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.extensions.feature/pom.xml
index 8c32be8769..e3185c2811 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.extensions.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.extensions.feature/pom.xml
@@ -4,14 +4,14 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.extensions.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Device Management Extensions Feature
http://wso2.org
This feature contains common extensions used by key device management functionalities
@@ -86,7 +86,7 @@
org.wso2.carbon.core.server:${carbon.kernel.version}
- org.wso2.carbon.governance.metadata:${carbon.governance.version}
+ org.wso2.carbon.governance.metadata.server:${carbon.governance.version}
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.feature/pom.xml
index f82f7973b7..67c4c8d917 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.feature/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
@@ -44,6 +44,10 @@
org.wso2.carbon.device.mgt.ui.feature
zip
+
+ javax.servlet.jsp
+ javax.servlet.jsp-api
+
@@ -70,6 +74,9 @@
org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.server.feature:${carbon.device.mgt.version}
org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.ui.feature:${carbon.device.mgt.version}
+
+ javax.servlet.jsp:javax.servlet.jsp-api
+
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml
index b4f61a2392..fbcb139624 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.server.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Device Management Server Feature
http://wso2.org
This feature contains the core bundles required for Back-end Device Management functionality
@@ -53,10 +53,10 @@
org.wso2.orbit.org.apache.pdfbox
pdfbox
-
-
-
-
+
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.indexing
+
@@ -122,20 +122,22 @@
- org.wso2.carbon.identity:org.wso2.carbon.identity.oauth.stub:${carbon.identity.version}
+ org.wso2.carbon.identity:org.wso2.carbon.identity.oauth.stub:${identity.inbound.auth.oauth.version}
com.fasterxml.jackson.core:jackson-annotations:${jackson-annotations.version}
-
+ org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt:${carbon.api.mgt.version}
org.wso2.orbit.org.apache.pdfbox:pdfbox:${orbit.version.pdfbox}
+ org.wso2.carbon.registry:org.wso2.carbon.registry.indexing:${carbon.registry.version}
org.wso2.carbon.core.server:${carbon.kernel.version}
org.wso2.carbon.apimgt.core:${carbon.api.mgt.version}
+
org.wso2.carbon.device.mgt.extensions:${carbon.device.mgt.version}
org.wso2.carbon.email.sender:${carbon.device.mgt.version}
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/h2.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/h2.sql
index 4684ec127c..d561d89e88 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/h2.sql
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/h2.sql
@@ -370,7 +370,7 @@ CREATE TABLE IF NOT EXISTS DM_NOTIFICATION (
OPERATION_ID INTEGER NOT NULL,
TENANT_ID INTEGER NOT NULL,
STATUS VARCHAR(10) NULL,
- DESCRIPTION VARCHAR(100) NULL,
+ DESCRIPTION VARCHAR(1000) NULL,
PRIMARY KEY (NOTIFICATION_ID),
CONSTRAINT fk_dm_device_notification FOREIGN KEY (DEVICE_ID) REFERENCES
DM_DEVICE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mssql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mssql.sql
index 1f62c3fccf..e54e5705ca 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mssql.sql
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mssql.sql
@@ -367,7 +367,7 @@ CREATE TABLE DM_NOTIFICATION (
OPERATION_ID INTEGER NOT NULL,
TENANT_ID INTEGER NOT NULL,
STATUS VARCHAR(10) NULL,
- DESCRIPTION VARCHAR(100) NULL,
+ DESCRIPTION VARCHAR(1000) NULL,
PRIMARY KEY (NOTIFICATION_ID),
CONSTRAINT FL_DM_NOTIFICATION FOREIGN KEY (DEVICE_ID) REFERENCES
DM_DEVICE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
@@ -435,3 +435,68 @@ CREATE TABLE DM_DEVICE_DETAIL (
ON DELETE NO ACTION
ON UPDATE NO ACTION
);
+GO
+
+-- DASHBOARD RELATED VIEWS --
+
+CREATE VIEW POLICY_COMPLIANCE_INFO AS
+SELECT TOP 100 PERCENT
+DEVICE_INFO.DEVICE_ID,
+DEVICE_INFO.DEVICE_IDENTIFICATION,
+DEVICE_INFO.PLATFORM,
+DEVICE_INFO.OWNERSHIP,
+DEVICE_INFO.CONNECTIVITY_STATUS,
+ISNULL(DEVICE_WITH_POLICY_INFO.POLICY_ID, -1) AS POLICY_ID,
+ISNULL(DEVICE_WITH_POLICY_INFO.IS_COMPLIANT, -1) AS
+IS_COMPLIANT,
+DEVICE_INFO.TENANT_ID
+FROM
+(SELECT
+DM_DEVICE.ID AS DEVICE_ID,
+DM_DEVICE.DEVICE_IDENTIFICATION,
+DM_DEVICE_TYPE.NAME AS PLATFORM,
+DM_ENROLMENT.OWNERSHIP,
+DM_ENROLMENT.STATUS AS CONNECTIVITY_STATUS,
+DM_DEVICE.TENANT_ID
+FROM DM_DEVICE, DM_DEVICE_TYPE, DM_ENROLMENT
+WHERE DM_DEVICE.DEVICE_TYPE_ID = DM_DEVICE_TYPE.ID AND DM_DEVICE.ID = DM_ENROLMENT.DEVICE_ID) DEVICE_INFO
+LEFT JOIN
+(SELECT
+DEVICE_ID,
+POLICY_ID,
+STATUS AS IS_COMPLIANT
+FROM
+DM_POLICY_COMPLIANCE_STATUS) DEVICE_WITH_POLICY_INFO
+ON DEVICE_INFO.DEVICE_ID = DEVICE_WITH_POLICY_INFO.DEVICE_ID
+ORDER BY DEVICE_INFO.DEVICE_ID;
+GO
+
+CREATE VIEW FEATURE_NON_COMPLIANCE_INFO AS
+SELECT TOP 100 PERCENT
+DM_DEVICE.ID AS DEVICE_ID,
+DM_DEVICE.DEVICE_IDENTIFICATION,
+DM_DEVICE_DETAIL.DEVICE_MODEL,
+DM_DEVICE_DETAIL.VENDOR,
+DM_DEVICE_DETAIL.OS_VERSION,
+DM_ENROLMENT.OWNERSHIP,
+DM_ENROLMENT.OWNER,
+DM_ENROLMENT.STATUS AS CONNECTIVITY_STATUS,
+DM_POLICY_COMPLIANCE_STATUS.POLICY_ID,
+DM_DEVICE_TYPE.NAME
+AS PLATFORM,
+DM_POLICY_COMPLIANCE_FEATURES.FEATURE_CODE,
+DM_POLICY_COMPLIANCE_FEATURES.STATUS AS IS_COMPLAINT,
+DM_DEVICE.TENANT_ID
+FROM
+DM_POLICY_COMPLIANCE_FEATURES, DM_POLICY_COMPLIANCE_STATUS, DM_ENROLMENT, DM_DEVICE, DM_DEVICE_TYPE, DM_DEVICE_DETAIL
+WHERE
+DM_POLICY_COMPLIANCE_FEATURES.COMPLIANCE_STATUS_ID = DM_POLICY_COMPLIANCE_STATUS.ID AND
+DM_POLICY_COMPLIANCE_STATUS.ENROLMENT_ID =
+DM_ENROLMENT.ID AND
+DM_POLICY_COMPLIANCE_STATUS.DEVICE_ID = DM_DEVICE.ID AND
+DM_DEVICE.DEVICE_TYPE_ID = DM_DEVICE_TYPE.ID AND
+DM_DEVICE.ID = DM_DEVICE_DETAIL.DEVICE_ID
+ORDER BY TENANT_ID, DEVICE_ID;
+GO
+
+-- END OF DASHBOARD RELATED VIEWS --
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql
index e8cb6f4f27..0bb2700f76 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql
@@ -428,7 +428,7 @@ CREATE TABLE IF NOT EXISTS DM_NOTIFICATION (
OPERATION_ID INTEGER NOT NULL,
TENANT_ID INTEGER NOT NULL,
STATUS VARCHAR(10) NULL,
- DESCRIPTION VARCHAR(100) NULL,
+ DESCRIPTION VARCHAR(1000) NULL,
PRIMARY KEY (NOTIFICATION_ID),
CONSTRAINT fk_dm_device_notification FOREIGN KEY (DEVICE_ID) REFERENCES
DM_DEVICE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql
index c49d530140..39785fc532 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql
@@ -436,7 +436,7 @@ CREATE TABLE DM_DEVICE_POLICY_APPLIED (
POLICY_ID NUMBER(10) NOT NULL ,
POLICY_CONTENT BLOB NULL ,
TENANT_ID NUMBER(10) NOT NULL,
- APPLIED NUMBER(3) NULL ,
+ APPLIED BOOLEAN NULL ,
CREATED_TIME TIMESTAMP(0) NULL ,
UPDATED_TIME TIMESTAMP(0) NULL ,
APPLIED_TIME TIMESTAMP(0) NULL ,
@@ -706,7 +706,7 @@ CREATE TABLE DM_NOTIFICATION (
OPERATION_ID NUMBER(10) NOT NULL,
TENANT_ID NUMBER(10) NOT NULL,
STATUS VARCHAR2(10) NULL,
- DESCRIPTION VARCHAR2(100) NULL,
+ DESCRIPTION VARCHAR2(1000) NULL,
CONSTRAINT PK_DM_NOTIFICATION PRIMARY KEY (NOTIFICATION_ID),
CONSTRAINT FK_DM_DEVICE_NOTIFICATION FOREIGN KEY (DEVICE_ID) REFERENCES
DM_DEVICE (ID),
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/postgresql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/postgresql.sql
index 828eca58cb..54489b8157 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/postgresql.sql
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/postgresql.sql
@@ -222,11 +222,11 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_POLICY_APPLIED (
POLICY_ID INTEGER NOT NULL ,
POLICY_CONTENT BYTEA NULL ,
TENANT_ID INTEGER NOT NULL,
- APPLIED INTEGER[1] NULL ,
+ APPLIED BOOLEAN NULL ,
CREATED_TIME TIMESTAMP NULL ,
UPDATED_TIME TIMESTAMP NULL ,
APPLIED_TIME TIMESTAMP NULL ,
- CONSTRAINT FK_DM_POLICY_DEVCIE_APPLIED
+ CONSTRAINT FK_DM_POLICY_DEVICE_APPLIED
FOREIGN KEY (DEVICE_ID )
REFERENCES DM_DEVICE (ID )
ON DELETE NO ACTION
@@ -409,7 +409,7 @@ CREATE TABLE IF NOT EXISTS DM_NOTIFICATION (
OPERATION_ID INTEGER NOT NULL,
TENANT_ID INTEGER NOT NULL,
STATUS VARCHAR(10) NULL,
- DESCRIPTION VARCHAR(100) NULL,
+ DESCRIPTION VARCHAR(1000) NULL,
CONSTRAINT fk_dm_device_notification FOREIGN KEY (DEVICE_ID) REFERENCES
DM_DEVICE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT fk_dm_operation_notification FOREIGN KEY (OPERATION_ID) REFERENCES
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.ui.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.ui.feature/pom.xml
index 608352c394..681d2beef7 100644
--- a/features/device-mgt/org.wso2.carbon.device.mgt.ui.feature/pom.xml
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.ui.feature/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
device-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
diff --git a/features/device-mgt/pom.xml b/features/device-mgt/pom.xml
index 111a9a6d63..885bcac179 100644
--- a/features/device-mgt/pom.xml
+++ b/features/device-mgt/pom.xml
@@ -22,7 +22,7 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
diff --git a/features/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration.server.feature/pom.xml b/features/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration.server.feature/pom.xml
index 866f784033..af8834114b 100644
--- a/features/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration.server.feature/pom.xml
+++ b/features/dynamic-client-registration/org.wso2.carbon.dynamic.client.registration.server.feature/pom.xml
@@ -23,14 +23,14 @@
org.wso2.carbon.devicemgt
dynamic-client-registration-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.dynamic.client.registration.server.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Dynamic Client Registration Server Feature
http://wso2.org
This feature contains dynamic client registration features
diff --git a/features/dynamic-client-registration/pom.xml b/features/dynamic-client-registration/pom.xml
index b4e6c30e5a..04a79e1884 100644
--- a/features/dynamic-client-registration/pom.xml
+++ b/features/dynamic-client-registration/pom.xml
@@ -23,14 +23,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
dynamic-client-registration-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Dynamic Client Registration Feature
http://wso2.org
diff --git a/features/email-sender/org.wso2.carbon.email.sender.feature/pom.xml b/features/email-sender/org.wso2.carbon.email.sender.feature/pom.xml
index 896c5ac634..3a32347d67 100644
--- a/features/email-sender/org.wso2.carbon.email.sender.feature/pom.xml
+++ b/features/email-sender/org.wso2.carbon.email.sender.feature/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
email-sender-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.email.sender.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Email Sender Feature
http://wso2.org
This feature contains the core bundles required for email sender related functionality
@@ -40,6 +40,10 @@
org.wso2.carbon.devicemgt
org.wso2.carbon.email.sender.core
+
+ org.wso2.orbit.org.apache.velocity
+ velocity
+
@@ -94,6 +98,9 @@
org.wso2.carbon.devicemgt:org.wso2.carbon.email.sender.core:${carbon.device.mgt.version}
+
+ org.wso2.orbit.org.apache.velocity:velocity:${velocity.version}
+
org.wso2.carbon.core.server:${carbon.kernel.version}
diff --git a/features/email-sender/pom.xml b/features/email-sender/pom.xml
index 9d2a22b1dd..39ce868c8a 100644
--- a/features/email-sender/pom.xml
+++ b/features/email-sender/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
email-sender-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Email Sender Feature
http://wso2.org
diff --git a/features/jwt-client/org.wso2.carbon.identity.jwt.client.extension.feature/pom.xml b/features/jwt-client/org.wso2.carbon.identity.jwt.client.extension.feature/pom.xml
index 326d7ff698..ca9323fbd7 100644
--- a/features/jwt-client/org.wso2.carbon.identity.jwt.client.extension.feature/pom.xml
+++ b/features/jwt-client/org.wso2.carbon.identity.jwt.client.extension.feature/pom.xml
@@ -23,14 +23,14 @@
org.wso2.carbon.devicemgt
jwt-client-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.identity.jwt.client.extension.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - JWT Client Feature
http://wso2.org
This feature contains jwt client implementation from which we can get a access token using the jwt
diff --git a/features/jwt-client/pom.xml b/features/jwt-client/pom.xml
index be8510ff9d..b8d3335e68 100644
--- a/features/jwt-client/pom.xml
+++ b/features/jwt-client/pom.xml
@@ -23,13 +23,13 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
jwt-client-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Dynamic Client Registration Feature
http://wso2.org
diff --git a/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml b/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml
index fd1ee01d69..2cb774b71a 100644
--- a/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml
+++ b/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml
@@ -23,14 +23,14 @@
org.wso2.carbon.devicemgt
oauth-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.device.mgt.oauth.extensions.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Device Mgt OAuth Extensions Feature
http://wso2.org
This feature contains devicemgt related OAuth extensions
@@ -49,8 +49,8 @@
org.wso2.carbon.identity.authenticator.backend.oauth
- org.wso2.carbon.apimgt
- org.wso2.carbon.apimgt.keymgt.client
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.indexing
@@ -84,13 +84,13 @@
org.wso2.carbon.devicemgt:org.wso2.carbon.identity.authenticator.backend.oauth:${carbon.device.mgt.version}
-
- org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.client:${carbon.api.mgt.version}
-
org.wso2.carbon.core.server:${carbon.kernel.version}
+
+ org.wso2.carbon.registry:org.wso2.carbon.registry.indexing:${carbon.registry.version}
+
diff --git a/features/oauth-extensions/pom.xml b/features/oauth-extensions/pom.xml
index 659f47d466..3e6d24c644 100644
--- a/features/oauth-extensions/pom.xml
+++ b/features/oauth-extensions/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
oauth-extensions-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Device Management OAuth Extensions Feature
http://wso2.org
diff --git a/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml b/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml
index 0d4149c556..1a1b8db6db 100644
--- a/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml
+++ b/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml
@@ -23,14 +23,14 @@
org.wso2.carbon.devicemgt
policy-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.policy.mgt.server.feature
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Policy Management Server Feature
http://wso2.org
This feature contains the core bundles required for Back-end Device Management functionality
@@ -55,7 +55,11 @@
org.wso2.carbon.apimgt
- org.wso2.carbon.apimgt.keymgt
+ org.wso2.carbon.apimgt.keymgt.client
+
+
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.indexing
@@ -121,7 +125,8 @@
- org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt:${carbon.api.mgt.version}
+ org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.client:${carbon.api.mgt.version}
+ org.wso2.carbon.registry:org.wso2.carbon.registry.indexing:${carbon.registry.version}
org.wso2.carbon.core.server:${carbon.kernel.version}
diff --git a/features/policy-mgt/pom.xml b/features/policy-mgt/pom.xml
index 484be503fb..fe10b8077a 100644
--- a/features/policy-mgt/pom.xml
+++ b/features/policy-mgt/pom.xml
@@ -23,14 +23,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
policy-mgt-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Policy Management Feature
http://wso2.org
diff --git a/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml b/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml
index 7644e9ec90..cb72892b1e 100644
--- a/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml
+++ b/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml
@@ -22,15 +22,15 @@
org.wso2.carbon.devicemgt
webapp-authenticator-framework-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../pom.xml
4.0.0
org.wso2.carbon.webapp.authenticator.framework.server.feature
pom
- 1.2.1-SNAPSHOT
- WSO2 Carbon - Device Management Server Feature
+ 1.2.2-SNAPSHOT
+ WSO2 Carbon - Webapp Authenticator Framework Server Feature
http://wso2.org
This feature contains the core bundles required for Back-end Device Management functionality
@@ -43,11 +43,7 @@
org.wso2.carbon.apimgt
org.wso2.carbon.apimgt.core
-
-
- org.wso2.carbon
- org.wso2.carbon.throttle.core
-
+
@@ -103,12 +99,7 @@
org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.core:${carbon.api.mgt.version}
- org.wso2.carbon:org.wso2.carbon.throttle.core:${carbon.throttle.module.version}
-
- org.wso2.carbon.core.server:${carbon.kernel.version}
- org.wso2.carbon.apimgt.core:${carbon.api.mgt.version}
-
diff --git a/features/webapp-authenticator-framework/pom.xml b/features/webapp-authenticator-framework/pom.xml
index f6c2300337..caaeb3936c 100644
--- a/features/webapp-authenticator-framework/pom.xml
+++ b/features/webapp-authenticator-framework/pom.xml
@@ -22,14 +22,14 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
../../pom.xml
4.0.0
org.wso2.carbon.devicemgt
webapp-authenticator-framework-feature
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
pom
WSO2 Carbon - Webapp Authenticator Framework Feature
http://wso2.org
diff --git a/pom.xml b/pom.xml
index 1709158bda..ba1fec5a24 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
org.wso2.carbon.devicemgt
carbon-devicemgt
pom
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
WSO2 Carbon - Device Management - Parent
http://wso2.org
WSO2 Connected Device Manager Components
@@ -708,11 +708,7 @@
h2-database-engine
${orbit.version.h2.engine}
-
- org.wso2.orbit.org.owasp.encoder
- encoder
- ${owasp.encoder.version}
-
+
org.apache.axis2.transport
axis2-transport-mail
@@ -751,12 +747,12 @@
- org.apache.ws.commons.axiom
+ org.apache.ws.commons.axiom.wso2
axiom-api
${axiom.version}
- org.apache.ws.commons.axiom
+ org.apache.ws.commons.axiom.wso2
axiom-impl
${axiom.version}
@@ -926,6 +922,14 @@
org.wso2.carbon.apimgt.core
${carbon.api.mgt.version}
+
+ org.wso2.carbon
+ org.wso2.carbon.core
+
+
+ org.wso2.carbon.apimgt
+ org.wso2.carbon.apimgt.keymgt.stub
+
org.wso2.carbon.apimgt
org.wso2.carbon.apimgt.usage.publisher
@@ -946,6 +950,10 @@
org.wso2.carbon.apimgt
org.wso2.carbon.ganalytics.publisher
+
+ org.wso2.carbon.apimgt
+ org.wso2.carbon.throttle.core
+
@@ -1029,32 +1037,32 @@
org.wso2.carbon.identity
org.wso2.carbon.identity.base
- ${carbon.identity.version}
+ ${carbon.identity.framework.version}
org.wso2.carbon.identity
org.wso2.carbon.identity.core
- ${carbon.identity.version}
+ ${carbon.identity.framework.version}
org.wso2.carbon.identity
org.wso2.carbon.identity.oauth.stub
- ${carbon.identity.version}
+ ${identity.inbound.auth.oauth.version}
org.wso2.carbon.identity
org.wso2.carbon.identity.application.authentication.framework
- ${carbon.identity.version}
+ ${carbon.identity.framework.version}
org.wso2.carbon.identity
org.wso2.carbon.identity.oauth
- ${carbon.identity.version}
+ ${identity.inbound.auth.oauth.version}
org.wso2.carbon.identity
org.wso2.carbon.identity.application.common
- ${carbon.identity.version}
+ ${carbon.identity.framework.version}
org.wso2.carbon.identity
@@ -1181,7 +1189,7 @@
org.wso2.carbon.identity
org.wso2.carbon.identity.application.mgt
- ${carbon.identity.version}
+ ${carbon.identity.framework.version}
org.wso2.carbon.identity
@@ -1240,7 +1248,7 @@
org.wso2.carbon.identity
org.wso2.carbon.identity.sso.saml
- ${carbon.identity.version}
+ ${identity.inbound.auth.saml.version}
com.googlecode.json-simple.wso2
@@ -1271,22 +1279,17 @@
- org.bouncycastle.wso2
+ org.wso2.orbit.org.bouncycastle
bcprov-jdk15on
${bcprov.wso2.version}
- org.bouncycastle.wso2
+ org.wso2.orbit.org.bouncycastle
bcpkix-jdk15on
${bcpkix.wso2.version}
- org.bouncycastle.wso2
- bcmail-jdk15on
- ${bcmail.wso2.version}
-
-
- com.google.code.jscep.wso2
+ org.wso2.orbit.com.google.code.jscep
jscep
${jscep.version}
@@ -1340,7 +1343,7 @@
${commons.httpclient.version}
- org.apache.velocity
+ org.wso2.orbit.org.apache.velocity
velocity
${velocity.version}
@@ -1403,6 +1406,12 @@
${carbon.registry.version}
+
+ org.wso2.carbon.registry
+ org.wso2.carbon.registry.common
+ ${carbon.registry.version}
+
+
org.wso2.orbit.org.scannotation
scannotation
@@ -1447,7 +1456,7 @@
org.wso2.carbon.identity
org.wso2.carbon.user.mgt
- ${carbon.identity.version}
+ ${carbon.identity.framework.version}
provided
@@ -1466,19 +1475,16 @@
swagger-jaxrs
${swagger.version}
-
javax.servlet
servlet-api
${servlet-api.version}
-
org.wso2.carbon.analytics-common
org.wso2.carbon.event.output.adapter.core
${carbon.analytics.common.version}
-
org.wso2.carbon.devicemgt
org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm
@@ -1499,20 +1505,25 @@
jackson-annotations
${jackson-annotations.version}
+
+ org.wso2.orbit.org.owasp.encoder
+ encoder
+ ${owasp.encoder.version}
+
org.hibernate
hibernate-validator
${hibernate-validator.version}
- org.wso2.carbon.apimgt
- org.wso2.carbon.apimgt.keymgt.client
- ${carbon.api.mgt.version}
+ javax.servlet.jsp
+ javax.servlet.jsp-api
+ ${servelet.jsp.version}
- org.wso2.carbon
- org.wso2.carbon.throttle.core
- ${carbon.throttle.module.version}
+ org.slf4j
+ slf4j-simple
+ ${slf4j.simple.version}
@@ -1700,7 +1711,7 @@
by default) and nothing else. We had troubles with other repositories in
the past. Therefore configuring additional repositories here should be
considered very carefully. -->
-
+
wso2-nexus
WSO2 internal Repository
http://maven.wso2.org/nexus/content/groups/wso2-public/
@@ -1735,8 +1746,9 @@
+ 2.2.1
6.1.1
- 4.4.3
+ 4.4.9
[4.4.0, 5.0.0)
1.5.4
1.3
@@ -1776,24 +1788,26 @@
7.0.34.wso2v2
- 4.6.0
+ 4.7.0
- 5.0.7
+ 5.2.0
+ 5.1.2
+ 5.1.1
- 4.5.0
+ 4.6.0
- 4.5.8
+ 4.6.4
- 1.2.11-wso2v11
+ 1.2.11-wso2v10
[1.2.11, 1.3.0)
- 1.2.11.wso2v5
+ 1.2.11.wso2v10
- 1.2.1-SNAPSHOT
+ 1.2.2-SNAPSHOT
4.4.8
@@ -1802,15 +1816,15 @@
2.6.0.wso2v1
- 5.0.5
- (5.0.0,6.0.0]
+ 6.0.5
+ (5.0.0,7.0.0]
5.0.11
[5.0.11,6.0.0)
- 4.4.8
+ 4.5.6
[4.4.8, 5.0.0)
@@ -1820,14 +1834,12 @@
1.9.0
- 1.49.wso2v1
- 1.49.wso2v1
- 1.49.wso2v1
- [1.40.wso2v1, 1.50.0)
- 1.49.wso2v1
+ 1.52.0.wso2v1
+ 1.52.0.wso2v2
+ [1.52.0,1.60.0)
- 2.0.2.wso2v2
+ 2.3.0.wso2v2
2.26.1.wso2v3
@@ -1856,7 +1868,7 @@
4.3.3.wso2v1
3.1.0.wso2v2
- 1.7
+ 1.7.0.wso2v1
2.4.0.wso2v1
3.2.0.wso2v1
@@ -1885,10 +1897,15 @@
1.2.0.wso2v1
5.0.2.Final
+ [0.0.0,1.0.0)
1.8.10.wso2v2
4.2.1
+ [1.0.0, 1.1.0)
+
+
+ 1.6.1