|
|
@ -86,6 +86,8 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
|
|
|
|
Policy policy = PolicyManagementDataHolder.getInstance().getPolicyEvaluationPoint().
|
|
|
|
Policy policy = PolicyManagementDataHolder.getInstance().getPolicyEvaluationPoint().
|
|
|
|
getEffectivePolicy(deviceIdentifier);
|
|
|
|
getEffectivePolicy(deviceIdentifier);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (policy != null) {
|
|
|
|
|
|
|
|
|
|
|
|
List<ProfileFeature> effectiveFeatures = policy.getProfile().getProfileFeaturesList();
|
|
|
|
List<ProfileFeature> effectiveFeatures = policy.getProfile().getProfileFeaturesList();
|
|
|
|
|
|
|
|
|
|
|
|
PolicyOperation policyOperation = new PolicyOperation();
|
|
|
|
PolicyOperation policyOperation = new PolicyOperation();
|
|
|
@ -106,8 +108,9 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
|
|
|
|
|
|
|
|
|
|
|
|
PolicyManagementDataHolder.getInstance().getDeviceManagementService().
|
|
|
|
PolicyManagementDataHolder.getInstance().getDeviceManagementService().
|
|
|
|
addOperation(policyOperation, deviceIdentifiers);
|
|
|
|
addOperation(policyOperation, deviceIdentifiers);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return policy;
|
|
|
|
return policy;
|
|
|
|
} catch (PolicyEvaluationException e) {
|
|
|
|
} catch (PolicyEvaluationException e) {
|
|
|
@ -131,6 +134,7 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
|
|
|
|
List<ProfileFeature> effectiveFeatures = PolicyManagementDataHolder.getInstance().getPolicyEvaluationPoint().
|
|
|
|
List<ProfileFeature> effectiveFeatures = PolicyManagementDataHolder.getInstance().getPolicyEvaluationPoint().
|
|
|
|
getEffectiveFeatures(deviceIdentifier);
|
|
|
|
getEffectiveFeatures(deviceIdentifier);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!effectiveFeatures.isEmpty()) {
|
|
|
|
PolicyOperation policyOperation = new PolicyOperation();
|
|
|
|
PolicyOperation policyOperation = new PolicyOperation();
|
|
|
|
|
|
|
|
|
|
|
|
List<ProfileOperation> profileOperationList = new ArrayList<ProfileOperation>();
|
|
|
|
List<ProfileOperation> profileOperationList = new ArrayList<ProfileOperation>();
|
|
|
@ -149,6 +153,9 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
|
|
|
|
|
|
|
|
|
|
|
|
PolicyManagementDataHolder.getInstance().getDeviceManagementService().
|
|
|
|
PolicyManagementDataHolder.getInstance().getDeviceManagementService().
|
|
|
|
addOperation(policyOperation, deviceIdentifiers);
|
|
|
|
addOperation(policyOperation, deviceIdentifiers);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return effectiveFeatures;
|
|
|
|
return effectiveFeatures;
|
|
|
|
} catch (PolicyEvaluationException e) {
|
|
|
|
} catch (PolicyEvaluationException e) {
|
|
|
|