@RestController public class VersionController extends Object
| Constructor and Description |
|---|
VersionController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteVersionedDocument(String user,
String password,
String storageId,
String path)
deletes latest version of file from user's private space.
|
List<String> |
listVersionedDocuments(String user,
String password,
String storageId,
String path)
lists latest versions of files in user's private space.
|
void |
readVersionedDocument(String user,
String password,
String storageId,
String path,
javax.servlet.http.HttpServletResponse response)
reads latest version of file from user's private space.
|
List<String> |
versionsOf(String user,
String password,
String storageId,
String path)
list of file versions.
|
void |
writeVersionedDocument(String user,
String password,
String storageId,
String path,
org.springframework.web.multipart.MultipartFile file)
writes latest version of file to user's private space.
|
@GetMapping(value="/versioned/{path:.*}",
produces="application/json")
public List<String> listVersionedDocuments(@RequestHeader
String user,
@RequestHeader
String password,
@RequestHeader(defaultValue="DEFAULT")
String storageId,
@PathVariable(required=false)
String path)
@GetMapping(value="/versioned/{path:.*}",
produces="application/octet-stream")
public void readVersionedDocument(@RequestHeader
String user,
@RequestHeader
String password,
@RequestHeader(defaultValue="DEFAULT")
String storageId,
@PathVariable
String path,
javax.servlet.http.HttpServletResponse response)
@PutMapping(value="/versioned/{path:.*}",
consumes="multipart/form-data")
public void writeVersionedDocument(@RequestHeader
String user,
@RequestHeader
String password,
@RequestHeader(defaultValue="DEFAULT")
String storageId,
@PathVariable
String path,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file)
@DeleteMapping(value="/versioned/{path:.*}")
public void deleteVersionedDocument(@RequestHeader
String user,
@RequestHeader
String password,
@RequestHeader(defaultValue="DEFAULT")
String storageId,
@PathVariable
String path)
Copyright © 2020. All rights reserved.