public double evaluateDObfPreference(DObfPreferenceDetailsBean details) { DObfPreferenceTreeModel model = this.prefCache.getDObfPreference(details); if (model != null) { IPrivacyOutcome outcome = evaluatePreference(model.getRootPreference()); if (outcome instanceof DObfOutcome) { return ((DObfOutcome) outcome).getObfuscationLevel(); } else { return -1; } } else { return -1; } }
public boolean storeDObfPreference( DObfPreferenceDetailsBean details, DObfPreferenceTreeModel model) throws PrivacyException { if (model.getDetails().equals(details)) { return this.prefCache.addDObfPreference(details, model); } throw new PrivacyException( "DObfPreferenceDetailsBean parameter did not match DObfPrivacyPreferenceTreeModel.getDetails()"); }