List of usage examples for org.springframework.http HttpStatus ACCEPTED
HttpStatus ACCEPTED
To view the source code for org.springframework.http HttpStatus ACCEPTED.
Click Source Link
From source file:info.raack.appliancedetection.evaluation.web.SimulationController.java
@RequestMapping(value = "/simulationgroups", method = RequestMethod.POST) @ResponseStatus(HttpStatus.ACCEPTED) public void createSimulationGroup(@RequestParam("numsimulations") int numberOfSimulations, @RequestParam("duration") int durationInSeconds, @RequestParam("onOffLabelsPerAppliance") int onOffLabelsPerAppliance, @RequestParam("onConcurrency") int onConcurrency, @RequestParam("numAppliances") int numAppliances) { simulationService.startNewSimulationGroup(numberOfSimulations, durationInSeconds, onOffLabelsPerAppliance, onConcurrency, numAppliances); }
From source file:technology.tikal.ventas.service.almacen.SalidaService.java
@RequestMapping(value = "/{registroId}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.ACCEPTED) public void borrar(@PathVariable final Long pedidoId, @PathVariable final Long registroId) { salidaController.borrar(pedidoId, registroId); }
From source file:technology.tikal.ventas.service.catalogo.ProductoDeLineaService.java
@RequestMapping(value = "/{productoId}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.ACCEPTED) public void delete(@PathVariable final Long idCatalogo, @PathVariable final Long lineaProductoId, @PathVariable final Long productoId) { productoDeLineaController.borrar(idCatalogo, lineaProductoId, productoId); }
From source file:org.createnet.raptor.auth.service.controller.DevicePermissionController.java
@RequestMapping(value = "/{deviceUuid}/permission", method = RequestMethod.GET) @ApiOperation(value = "List current user permissions on a device", notes = "", response = String.class, responseContainer = "List", nickname = "getPermissions") public ResponseEntity<?> listOwnPermissions(@PathVariable("deviceUuid") String deviceUuid, @AuthenticationPrincipal RaptorUserDetailsService.RaptorUserDetails currentUser) { Device device = deviceService.getByUuid(deviceUuid); if (device == null) { return ResponseEntity.status(HttpStatus.NOT_FOUND).body("Device not found"); }/*w w w . ja va2s.co m*/ User user = userService.getByUuid(currentUser.getUuid()); if (user == null) { return ResponseEntity.status(HttpStatus.NOT_FOUND).body("User not found"); } List<String> permissions = RaptorPermission.toLabel(aclDeviceService.list(device, user)); return ResponseEntity.status(HttpStatus.ACCEPTED).body(permissions); }
From source file:org.openbaton.nfvo.vnfm_reg.impl.receiver.VnfmReceiverRest.java
@RequestMapping(value = "vnfm-core-grant", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.ACCEPTED) public NFVMessage grantLifecycleOperation(@RequestBody VnfmOrGenericMessage message) throws VimException, PluginException, ExecutionException, InterruptedException { log.debug("CORE: Received: " + message); Gson gson = new GsonBuilder().create(); String executeReturned = vnfmManager.executeAction(message); return mapper.fromJson(executeReturned, OrVnfmGrantLifecycleOperationMessage.class); }
From source file:technology.tikal.ventas.service.almacen.SalidaDevolucionService.java
@RequestMapping(value = "/{registroId}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.ACCEPTED) public void borrar(@PathVariable final Long pedidoId, @PathVariable final Long registroId) { salidaDevolucionController.borrar(pedidoId, registroId); }
From source file:technology.tikal.ventas.service.almacen.EntradaDevolucionService.java
@RequestMapping(value = "/{registroId}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.ACCEPTED) public void borrar(@PathVariable final Long pedidoId, @PathVariable final Long registroId) { entradaDevolucionController.borrar(pedidoId, registroId); }
From source file:org.openbaton.nfvo.api.RestUsers.java
@RequestMapping(value = "changepwd", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.ACCEPTED) public void changePassword(@RequestBody /*@Valid*/ JsonObject newPwd) throws UnauthorizedUserException, PasswordWeakException { log.debug("Changing password"); JsonObject jsonObject = gson.fromJson(newPwd, JsonObject.class); userManagement.changePassword(jsonObject.get("old_pwd").getAsString(), jsonObject.get("new_pwd").getAsString()); }
From source file:com.phoenixnap.oss.sample.server.controllers.DrinkControllerImpl.java
@Override public ResponseEntity deleteDrinkById(String drinkName) { try {//from w w w . ja v a 2 s . com this.drinksService.deleteDrink(drinkName); LOG.info("Returning from deleteDrinkById"); return new ResponseEntity(HttpStatus.ACCEPTED); } catch (DrinkNotFoundException dex) { return new ResponseEntity<GetDrinkByIdResponse>(HttpStatus.NOT_FOUND); } }
From source file:org.bonitasoft.web.designer.controller.ResourceControllerAdvice.java
@ExceptionHandler(ImportException.class) public ResponseEntity<ErrorMessage> handleImportException(ImportException exception) { logger.error("Technical error when importing a component", exception); // BS-14113: HttpStatus.ACCEPTED internet explorer don't recognize response if sent with http error code ErrorMessage errorMessage = new ErrorMessage(exception.getType().toString(), exception.getMessage()); errorMessage.addInfos(exception.getInfos()); return new ResponseEntity<>(errorMessage, HttpStatus.ACCEPTED); }