|
|
@ -32,14 +32,9 @@ import java.util.List;
|
|
|
|
public class SimpleEvaluationImpl implements SimpleEvaluation {
|
|
|
|
public class SimpleEvaluationImpl implements SimpleEvaluation {
|
|
|
|
|
|
|
|
|
|
|
|
private static final Log log = LogFactory.getLog(SimpleEvaluationImpl.class);
|
|
|
|
private static final Log log = LogFactory.getLog(SimpleEvaluationImpl.class);
|
|
|
|
//TODO : to revove the stale reference
|
|
|
|
|
|
|
|
private PolicyManagerService policyManagerService;
|
|
|
|
private PolicyManagerService policyManagerService;
|
|
|
|
private List<Policy> policyList = new ArrayList<Policy>();
|
|
|
|
private List<Policy> policyList = new ArrayList<Policy>();
|
|
|
|
|
|
|
|
|
|
|
|
// public SimpleEvaluationImpl() {
|
|
|
|
|
|
|
|
// policyManagerService = PolicyDecisionPointDataHolder.getInstance().getPolicyManagerService();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Policy getEffectivePolicy(DeviceIdentifier deviceIdentifier) throws PolicyEvaluationException {
|
|
|
|
public Policy getEffectivePolicy(DeviceIdentifier deviceIdentifier) throws PolicyEvaluationException {
|
|
|
|
Policy policy = new Policy();
|
|
|
|
Policy policy = new Policy();
|
|
|
@ -74,7 +69,6 @@ public class SimpleEvaluationImpl implements SimpleEvaluation {
|
|
|
|
return policy;
|
|
|
|
return policy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void sortPolicies() throws PolicyEvaluationException {
|
|
|
|
public void sortPolicies() throws PolicyEvaluationException {
|
|
|
|
Collections.sort(policyList);
|
|
|
|
Collections.sort(policyList);
|
|
|
|