mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactored PolcyMgt component
This commit is contained in:
parent
17127c3846
commit
1b6c7ea502
@ -76,7 +76,7 @@ public class MonitoringManagerImpl implements MonitoringManager {
|
||||
List<ComplianceFeature> complianceFeatures = new ArrayList<>();
|
||||
try {
|
||||
DeviceManagementProviderService service = PolicyManagementDataHolder.getInstance().getDeviceManagementService();
|
||||
PolicyManager manager = new PolicyManagerImpl();
|
||||
PolicyManager manager = PolicyManagementDataHolder.getInstance().getPolicyManager();
|
||||
Device device = service.getDevice(deviceIdentifier);
|
||||
Policy policy = manager.getAppliedPolicyToDevice(deviceIdentifier);
|
||||
if (policy != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user