use of org.iobserve.service.privacy.violation.transformation.privacycheck.PrivacyChecker in project iobserve-analysis by research-iobserve.
the class DataProtectionWarner method checkGraph.
private WarningModel checkGraph(final PrivacyGraph graph) throws FileNotFoundException, InstantiationException, IllegalAccessException, ClassNotFoundException, IOException {
final WarningModel warnings = new WarningModel();
final PrivacyChecker privacyChecker = new PrivacyChecker(this.policyList, this.policyPackage);
final List<Edge> edges = privacyChecker.check(graph);
for (final Edge edge : edges) {
warnings.addMessage(edge.getPrint() + "");
warnings.addWarningEdge(edge);
}
warnings.setDate(new Date());
return warnings;
}
Aggregations