/** * Modifies existing export * * @param id the URN of a ViPR file share * @param protocol protocol to be used for export * @param securityType security type for export * @param permissions export permissions * @param rootUserMapping user mapping for export * @param updateParam parameter indicating the information to be updated for this export, which * contains the list of endpoints * @return returns a task corresponding to this operation * @throws InternalException */ @PUT @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Path("/{id}/exports/{protocol},{secType},{perm},{root_mapping}") public TaskResourceRep modifyExportInternal( @PathParam("id") URI id, @PathParam("protocol") String protocol, @PathParam("secType") String securityType, @PathParam("perm") String permissions, @PathParam("root_mapping") String rootUserMapping, FileExportUpdateParam updateParam) throws InternalException { ArgValidator.checkFieldUriType(id, FileShare.class, "id"); FileShare fs = _fileService.queryResource(id); checkFileShareInternal(fs); return _fileService.updateExport( id, protocol, securityType, permissions, rootUserMapping, updateParam); }