Fixing the policy monitoring service adding

4.x.x
geethkokila 9 years ago
parent 9ca5815ec3
commit c4739efd0e

@ -34,4 +34,6 @@ public interface PolicyMonitoringService {
ComplianceData checkPolicyCompliance(DeviceIdentifier deviceIdentifier, Policy policy, Object response) ComplianceData checkPolicyCompliance(DeviceIdentifier deviceIdentifier, Policy policy, Object response)
throws PolicyComplianceException; throws PolicyComplianceException;
String getType();
} }

@ -163,7 +163,8 @@ public class PolicyManagementServiceComponent {
log.debug("Setting Policy Monitoring Service"); log.debug("Setting Policy Monitoring Service");
} }
// TODO: FIX THE device type by taking from properties // TODO: FIX THE device type by taking from properties
PolicyManagementDataHolder.getInstance().setPolicyMonitoringService("", policyMonitoringService); PolicyManagementDataHolder.getInstance().setPolicyMonitoringService(policyMonitoringService.getType(),
policyMonitoringService);
} }
protected void unsetPolicyMonitoringService(PolicyMonitoringService policyMonitoringService) { protected void unsetPolicyMonitoringService(PolicyMonitoringService policyMonitoringService) {
@ -171,7 +172,7 @@ public class PolicyManagementServiceComponent {
log.debug("Removing the Policy Monitoring Service"); log.debug("Removing the Policy Monitoring Service");
} }
// TODO: FIX THE device type by taking from properties // TODO: FIX THE device type by taking from properties
PolicyManagementDataHolder.getInstance().unsetPolicyMonitoringService(""); PolicyManagementDataHolder.getInstance().unsetPolicyMonitoringService(policyMonitoringService.getType());
} }
protected void setTaskService(TaskService taskService) { protected void setTaskService(TaskService taskService) {

Loading…
Cancel
Save