@Controller public class ImportController extends Object
| Constructor and Description |
|---|
ImportController(PathImporter pathImporter,
ImporterResolver importerResolver,
ImportStore importStore,
Unzipper unzip) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelPageImport(String uuid) |
ImportReport |
importArtifact(org.springframework.web.multipart.MultipartFile file,
boolean force,
String artifactType) |
ImportReport |
importPage(String uuid) |
@Inject public ImportController(PathImporter pathImporter, ImporterResolver importerResolver, ImportStore importStore, Unzipper unzip)
@RequestMapping(value="/import/{artifactType}",
method=POST,
produces="text/plain")
@ResponseStatus(value=CREATED)
@ResponseBody
public ImportReport importArtifact(@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@RequestParam(value="force",defaultValue="false",required=false)
boolean force,
@PathVariable(value="artifactType")
String artifactType)
@RequestMapping(value="/import/{uuid}/force",
method=POST,
produces="text/plain")
@ResponseStatus(value=CREATED)
@ResponseBody
public ImportReport importPage(@PathVariable(value="uuid")
String uuid)
@RequestMapping(value="/import/{uuid}/cancel",
method=POST)
public void cancelPageImport(@PathVariable(value="uuid")
String uuid)
Copyright © 2020. All rights reserved.