@Test void MolgenisPermissionController() { assertThrows(NullPointerException.class, () -> new MolgenisPermissionController(null)); }
public MolgenisPermissionController(UserPermissionEvaluator permissionService) { this.permissionService = requireNonNull(permissionService); }
MolgenisPermissionController { public MolgenisPermissionController(UserPermissionEvaluator permissionService) { this.permissionService = requireNonNull(permissionService); } }
MolgenisPermissionController { public MolgenisPermissionController(UserPermissionEvaluator permissionService) { this.permissionService = requireNonNull(permissionService); } MolgenisPermissionController(UserPermissionEvaluator permissionService); }
MolgenisPermissionController { public MolgenisPermissionController(UserPermissionEvaluator permissionService) { this.permissionService = requireNonNull(permissionService); } MolgenisPermissionController(UserPermissionEvaluator permissionService); @GetMapping("/{entityTypeId}/read") @ResponseBody boolean hasReadPermission(@PathVariable("entityTypeId") String entityTypeId); @GetMapping("/{entityTypeId}/write") @ResponseBody boolean hasWritePermission(@PathVariable("entityTypeId") String entityTypeId); }
MolgenisPermissionController { public MolgenisPermissionController(UserPermissionEvaluator permissionService) { this.permissionService = requireNonNull(permissionService); } MolgenisPermissionController(UserPermissionEvaluator permissionService); @GetMapping("/{entityTypeId}/read") @ResponseBody boolean hasReadPermission(@PathVariable("entityTypeId") String entityTypeId); @GetMapping("/{entityTypeId}/write") @ResponseBody boolean hasWritePermission(@PathVariable("entityTypeId") String entityTypeId);  }