mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Commenting this due to policy compliance warn will block the device
This commit is contained in:
parent
f28406553f
commit
d0a2c5521c
@ -174,18 +174,18 @@ public class ComplianceDecisionPointImpl implements ComplianceDecisionPoint {
|
|||||||
@Override
|
@Override
|
||||||
public void markDeviceAsNoneCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
|
public void markDeviceAsNoneCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
DeviceManagementProviderService service = this.getDeviceManagementProviderService();
|
// DeviceManagementProviderService service = this.getDeviceManagementProviderService();
|
||||||
Device device = service.getDevice(deviceIdentifier);
|
// Device device = service.getDevice(deviceIdentifier);
|
||||||
service.setStatus(deviceIdentifier, device.getEnrolmentInfo().getOwner(),
|
// service.setStatus(deviceIdentifier, device.getEnrolmentInfo().getOwner(),
|
||||||
EnrolmentInfo.Status.BLOCKED);
|
// EnrolmentInfo.Status.BLOCKED);
|
||||||
|
//
|
||||||
} catch (DeviceManagementException e) {
|
// } catch (DeviceManagementException e) {
|
||||||
String msg = "Error occurred while marking device as none compliance " + deviceIdentifier.getId() + " - " +
|
// String msg = "Error occurred while marking device as none compliance " + deviceIdentifier.getId() + " - " +
|
||||||
deviceIdentifier.getType();
|
// deviceIdentifier.getType();
|
||||||
log.error(msg, e);
|
// log.error(msg, e);
|
||||||
throw new PolicyComplianceException(msg, e);
|
// throw new PolicyComplianceException(msg, e);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user