From d0a2c5521c1b48b8d7b0a3b36654fd5cc85abb31 Mon Sep 17 00:00:00 2001 From: geethkokila Date: Thu, 24 Dec 2015 11:09:32 +0530 Subject: [PATCH] Commenting this due to policy compliance warn will block the device --- .../impl/ComplianceDecisionPointImpl.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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 d78e6b16e2..45f92146b2 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 @@ -174,18 +174,18 @@ public class ComplianceDecisionPointImpl implements ComplianceDecisionPoint { @Override public void markDeviceAsNoneCompliance(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException { - try { - DeviceManagementProviderService service = this.getDeviceManagementProviderService(); - Device device = service.getDevice(deviceIdentifier); - service.setStatus(deviceIdentifier, device.getEnrolmentInfo().getOwner(), - EnrolmentInfo.Status.BLOCKED); - - } catch (DeviceManagementException e) { - String msg = "Error occurred while marking device as none compliance " + deviceIdentifier.getId() + " - " + - deviceIdentifier.getType(); - log.error(msg, e); - throw new PolicyComplianceException(msg, e); - } +// try { +// DeviceManagementProviderService service = this.getDeviceManagementProviderService(); +// Device device = service.getDevice(deviceIdentifier); +// service.setStatus(deviceIdentifier, device.getEnrolmentInfo().getOwner(), +// EnrolmentInfo.Status.BLOCKED); +// +// } catch (DeviceManagementException e) { +// String msg = "Error occurred while marking device as none compliance " + deviceIdentifier.getId() + " - " + +// deviceIdentifier.getType(); +// log.error(msg, e); +// throw new PolicyComplianceException(msg, e); +// } } @Override