/** * After all of the chunks are added, start a Daemon that will copy all of the parts and complete * the request. The daemon status can be monitored by calling <a * href="${GET.completeUploadDaemonStatus.daemonId}">GET * /completeUploadDaemonStatus/{daemonId}</a>. * * @param userId * @param cacf * @return * @throws DatastoreException * @throws NotFoundException */ @ResponseStatus(HttpStatus.CREATED) @RequestMapping(value = "/startCompleteUploadDaemon", method = RequestMethod.POST) public @ResponseBody UploadDaemonStatus startCompleteUploadDaemon( @RequestParam(value = AuthorizationConstants.USER_ID_PARAM) String userId, @RequestBody CompleteAllChunksRequest cacf) throws DatastoreException, NotFoundException { return fileService.startUploadDeamon(userId, cacf); }