class AggregatingToolScanManager implements ToolScanManager {

    @Override
    public ToolScanPolicy getPolicy() {
        return new ToolScanPolicy(
                preferenceManager.getPreference(
                        SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_DENY_NOT_SCANNED),
                preferenceManager.getPreference(
                        SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_MAX_CRITICAL_VULNERABILITIES),
                preferenceManager.getPreference(
                        SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_MAX_HIGH_VULNERABILITIES),
                preferenceManager.getPreference(
                        SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_MAX_MEDIUM_VULNERABILITIES));
    }

}