mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing windows issues
This commit is contained in:
parent
7697c3ca39
commit
ece43f53bd
@ -1195,9 +1195,9 @@ var operationModule = function () {
|
|||||||
var featureMap = {
|
var featureMap = {
|
||||||
"DEVICE_LOCK": "lock-devices",
|
"DEVICE_LOCK": "lock-devices",
|
||||||
"DISENROLL": "disenroll",
|
"DISENROLL": "disenroll",
|
||||||
"DEVICE_RING": "ring-devices",
|
"DEVICE_RING": "ring-device",
|
||||||
"LOCK_RESET": "lock-reset-devices",
|
"LOCK_RESET": "lock-reset",
|
||||||
"WIPE_DATA": "wipe-devices"
|
"WIPE_DATA": "wipe-data"
|
||||||
};
|
};
|
||||||
//return "/mdm-windows-agent/services/windows/operation/" + featureMap[operationCode];
|
//return "/mdm-windows-agent/services/windows/operation/" + featureMap[operationCode];
|
||||||
return "/api/device-mgt/windows/v1.0/services/windows/admin/devices/" + featureMap[operationCode];
|
return "/api/device-mgt/windows/v1.0/services/windows/admin/devices/" + featureMap[operationCode];
|
||||||
|
|||||||
@ -236,7 +236,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-codec</groupId>
|
<groupId>commons-codec</groupId>
|
||||||
<artifactId>commons-codec</artifactId>
|
<artifactId>commons-codec</artifactId>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>joda-time</groupId>
|
<groupId>joda-time</groupId>
|
||||||
@ -254,12 +253,10 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.testng</groupId>
|
<groupId>org.testng</groupId>
|
||||||
<artifactId>testng</artifactId>
|
<artifactId>testng</artifactId>
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wso2.carbon</groupId>
|
<groupId>org.wso2.carbon</groupId>
|
||||||
<artifactId>org.wso2.carbon.logging</artifactId>
|
<artifactId>org.wso2.carbon.logging</artifactId>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--CDM dependancies-->
|
<!--CDM dependancies-->
|
||||||
@ -345,13 +342,11 @@
|
|||||||
<groupId>org.codehaus.jettison.wso2</groupId>
|
<groupId>org.codehaus.jettison.wso2</groupId>
|
||||||
<artifactId>jettison</artifactId>
|
<artifactId>jettison</artifactId>
|
||||||
<version>1.1.wso2v1</version>
|
<version>1.1.wso2v1</version>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.json.wso2</groupId>
|
<groupId>org.json.wso2</groupId>
|
||||||
<artifactId>json</artifactId>
|
<artifactId>json</artifactId>
|
||||||
<version>2.0.0.wso2v1</version>
|
<version>2.0.0.wso2v1</version>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
|
|||||||
@ -394,7 +394,6 @@ public class OperationHandler {
|
|||||||
Notification notification = new Notification();
|
Notification notification = new Notification();
|
||||||
notification.setDescription("Auto generated DevicePin : " + pinValue);
|
notification.setDescription("Auto generated DevicePin : " + pinValue);
|
||||||
notification.setOperationId(result.getCommandReference());
|
notification.setOperationId(result.getCommandReference());
|
||||||
// notification.setDeviceIdentifier(deviceIdentifier);
|
|
||||||
notification.setStatus(String.valueOf(Notification.Status.NEW));
|
notification.setStatus(String.valueOf(Notification.Status.NEW));
|
||||||
try {
|
try {
|
||||||
nmService.addNotification(deviceIdentifier, notification);
|
nmService.addNotification(deviceIdentifier, notification);
|
||||||
@ -486,6 +485,5 @@ public class OperationHandler {
|
|||||||
throw new WindowsOperationException("Error occurred while getting effective policy.", e);
|
throw new WindowsOperationException("Error occurred while getting effective policy.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user