Search in sources :

Example 1 with PrivacyChecker

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;
}
Also used : PrivacyChecker(org.iobserve.service.privacy.violation.transformation.privacycheck.PrivacyChecker) WarningModel(org.iobserve.service.privacy.violation.data.WarningModel) Edge(org.iobserve.service.privacy.violation.transformation.analysisgraph.Edge) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 WarningModel (org.iobserve.service.privacy.violation.data.WarningModel)1 Edge (org.iobserve.service.privacy.violation.transformation.analysisgraph.Edge)1 PrivacyChecker (org.iobserve.service.privacy.violation.transformation.privacycheck.PrivacyChecker)1