@Controller @RequestMapping(value="/app/rest/fs") public class FileSystemAccessResource extends Object
| Constructor and Description |
|---|
FileSystemAccessResource() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<FileProps> |
create(String baseUrl,
String path)
CRUD Operation File
|
org.springframework.http.ResponseEntity<FileProps> |
createFolder(String baseUrl,
String path) |
void |
delete(String path) |
void |
delete(String baseUrl,
String path) |
void |
deleteDirectory(String baseUrl,
String path) |
FileContent |
getFileContent(String baseUrl,
String path) |
FileProps |
getFileProps(String baseUrl,
String path) |
String |
handleException(Throwable exception) |
Set<FileProps> |
list(String baseUrl,
String path) |
Set<FileProps> |
listAll(String baseUrl,
String path) |
org.springframework.http.ResponseEntity<FileProps> |
rename(String baseUrl,
FileDTO fileDTO) |
FileContent |
save(String baseUrl,
FileContent fileContent) |
Set<FileProps> |
search(String baseUrl,
String path,
String query) |
Set<FileProps> |
searchContent(String baseUrl,
String path,
String query) |
@RequestMapping(value="/**",
params="action=props",
method=GET)
@ResponseBody
public FileProps getFileProps(String baseUrl,
String path)
throws IOException
IOException@RequestMapping(value="/**",
params="action=list",
method=GET)
@ResponseBody
public Set<FileProps> list(String baseUrl,
String path)
throws IOException
IOException@RequestMapping(value="/**",
params="action=listAll",
method=GET)
@ResponseBody
public Set<FileProps> listAll(String baseUrl,
String path)
throws IOException
IOException@RequestMapping(value="/**",
method=GET)
@ResponseBody
public FileContent getFileContent(String baseUrl,
String path)
throws IOException,
URISyntaxException
IOExceptionURISyntaxException@RequestMapping(value="/**",
method=DELETE)
@ResponseBody
public void delete(String path)
throws IOException
IOException@RequestMapping(value="/**",
method=POST)
@ResponseBody
public FileContent save(String baseUrl,
@RequestBody
FileContent fileContent)
throws IOException
IOException@RequestMapping(value="/**",
params={"action=search","q"},
method=GET)
@ResponseBody
public Set<FileProps> search(String baseUrl,
String path,
@RequestParam(value="q")
String query)
throws IOException
IOException@RequestMapping(value="/**",
params={"action=searchContent","q"},
method=GET)
@ResponseBody
public Set<FileProps> searchContent(String baseUrl,
String path,
@RequestParam(value="q")
String query)
throws IOException
IOException@SendToUser(value="/queue/errors") public String handleException(Throwable exception)
@RequestMapping(value="/new",
method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<FileProps> create(String baseUrl,
@RequestBody
String path)
throws IOException,
URISyntaxException
IOExceptionURISyntaxException@RequestMapping(value="/new/folder",
method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<FileProps> createFolder(String baseUrl,
@RequestBody
String path)
throws IOException,
URISyntaxException
IOExceptionURISyntaxException@RequestMapping(value="/rename",
method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<FileProps> rename(String baseUrl,
@RequestBody
FileDTO fileDTO)
throws IOException,
URISyntaxException
IOExceptionURISyntaxException@RequestMapping(value="/delete",
method=PUT)
@ResponseBody
public void delete(String baseUrl,
@RequestBody
String path)
Copyright © 2019 VILT Group. All rights reserved.