if (application == null || !application.isActive()) {
log.warn(ResourceNotFoundException.getLogMessage("Application", appId));
throw new ResourceNotFoundException();
}
TableSortBean falsePositiveBean = new TableSortBean();
falsePositiveBean.setFalsePositive(true);
long numVulns = applicationService.getVulnCount(appId, true);
long numClosedVulns = applicationService.getVulnCount(appId, false);
long falsePositiveCount = applicationService.getCount(appId, falsePositiveBean);
TableSortBean hiddenBean = new TableSortBean();
hiddenBean.setHidden(true);
PermissionUtils.addPermissions(model, orgId, appId, Permission.CAN_MANAGE_APPLICATIONS,
Permission.CAN_UPLOAD_SCANS,
Permission.CAN_MODIFY_VULNERABILITIES,
Permission.CAN_MANAGE_VULN_FILTERS,