Package com.denimgroup.threadfix.data.entities

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


    accessControlModel.setUserId(userId);
    Option<AccessControlTeamMap> mapOption =
        accessControlMapService.parseAccessControlTeamMap(accessControlModel);

        if (mapOption.isValid()) {
            AccessControlTeamMap map = mapOption.getValue();
            map.setUser(user);

            String error = accessControlMapService.validateMap(map, null);
            if (error != null) {
                return RestResponse.failure(error);
            } else {
View Full Code Here


    accessControlModel.setUserId(userId);
    Option<AccessControlTeamMap> mapOption =
        accessControlMapService.parseAccessControlTeamMap(accessControlModel);

        if (mapOption.isValid()) {
            AccessControlTeamMap map = mapOption.getValue();

            map.setUser(user);

            String error = accessControlMapService.validateMap(map, mapId);
            if (error != null) {
                return RestResponse.failure(error);
            } else {
View Full Code Here

        }
  }
 
  @RequestMapping(value="/access/team/{mapId}/delete", method = RequestMethod.POST)
  public @ResponseBody RestResponse<String> deleteTeamMapping(@PathVariable("mapId") int mapId) {
    AccessControlTeamMap map = accessControlMapService.loadAccessControlTeamMap(mapId);
    accessControlMapService.deactivate(map);
    return RestResponse.success("Successfully deleted mapping.");
  }
View Full Code Here

TOP

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

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.