|
|
@ -135,12 +135,12 @@ public class PolicyManagerServiceImpl implements PolicyManagerService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<ProfileFeature> getEffectiveFeatures(List<Policy> policyList,DeviceIdentifier deviceIdentifier) throws
|
|
|
|
public List<ProfileFeature> getEffectiveFeatures(DeviceIdentifier deviceIdentifier) throws
|
|
|
|
FeatureManagementException {
|
|
|
|
FeatureManagementException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
PolicyEvaluationPoint policyEvaluationPoint = PolicyManagementDataHolder.getInstance().getPolicyEvaluationPoint();
|
|
|
|
PolicyEvaluationPoint policyEvaluationPoint = PolicyManagementDataHolder.getInstance().getPolicyEvaluationPoint();
|
|
|
|
if (policyEvaluationPoint != null) {
|
|
|
|
if (policyEvaluationPoint != null) {
|
|
|
|
return policyEvaluationPoint.getEffectiveFeatures(policyList, deviceIdentifier);
|
|
|
|
return policyEvaluationPoint.getEffectiveFeatures(deviceIdentifier);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
throw new FeatureManagementException("Error occurred while getting the policy evaluation point " +
|
|
|
|
throw new FeatureManagementException("Error occurred while getting the policy evaluation point " +
|
|
|
|
deviceIdentifier.getId() + " - " + deviceIdentifier.getType());
|
|
|
|
deviceIdentifier.getId() + " - " + deviceIdentifier.getType());
|
|
|
|