Package com.denimgroup.threadfix.data.entities

Examples of com.denimgroup.threadfix.data.entities.Organization


                            HttpServletRequest request) {
        if (!PermissionUtils.isAuthorized(Permission.CAN_MANAGE_TEAMS, orgId, null)) {
            return "403";
        }

        Organization organization = organizationService.loadById(orgId);
        if (organization == null || !organization.isActive()) {
            log.warn(ResourceNotFoundException.getLogMessage("Organization", orgId));
            throw new ResourceNotFoundException();

        } else {

            String teamName = organization.getName();
            organizationService.markInactive(organization);
            log.info("Organization soft deletion was successful on Organization " + organization.getName() + ".");
            ControllerUtils.addSuccessMessage(request,
                    "Team " + teamName + " has been deleted successfully.");
            return "redirect:/";
        }
    }
View Full Code Here


                        appId = application.getId();
                        appName = application.getName();
                        teamId = application.getOrganization().getId();
                        teamName = application.getOrganization().getName();
                    } else {
                        Organization organization = scan.getApplication().getOrganization();
                        teamId = organization.getId();
                        teamName = organization.getName();
                    }
                }
            }

      for (List<Scan> scanList : scanLists) {
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.entities.Organization

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.