@Service public class FileSystemService extends Object
| Constructor and Description |
|---|
FileSystemService() |
FileSystemService(File baseDir) |
FileSystemService(String projectName,
File baseDir) |
public FileSystemService()
public FileSystemService(File baseDir)
@PreAuthorize(value="@fileSystemPermissionService.canRead(@fileSystemService.projectName)") public FileProps getFileProps(String baseUrl, String path) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canRead(@fileSystemService.projectName)") public Set<FileProps> list(String baseUrl, String path) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canRead(@fileSystemService.projectName)") public Set<FileProps> listAll(String baseUrl, String path) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canRead(@fileSystemService.projectName)") public FileContent getFileContent(String baseUrl, String path) throws IOException, URISyntaxException
IOExceptionURISyntaxException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public FileProps create(String baseUrl, @RequestBody String path) throws IOException, URISyntaxException
IOExceptionURISyntaxException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public FileProps createFolder(String baseUrl, @RequestBody String path) throws IOException, URISyntaxException
IOExceptionURISyntaxException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public void delete(String path) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public void deleteDirectory(String path) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public FileProps renameFile(String baseUrl, FileDTO fileDTO) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public FileContent save(String baseUrl, @RequestBody FileContent fileContent) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canRead(@fileSystemService.projectName)") public Set<FileProps> search(String baseUrl, String path, @RequestParam(value="q") String query) throws IOException
IOExceptionpublic boolean dirExists(String path)
protected void maybeAutoFormat(FileContent fileContent)
public org.springframework.core.io.FileSystemResource get(String path) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionprotected FileContent extractFileContent(String baseUrl, File file) throws IOException
IOExceptionprotected File getFile(String path) throws IOException
IOExceptionprotected FileProps extractFileProps(String baseUrl, File file) throws IOException
IOExceptionprotected FileProps extractFileProps2(String baseUrl, File file) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canWrite(@fileSystemService.projectName)") public void recursiveDelete(File file) throws IOException
IOException@PreAuthorize(value="@fileSystemPermissionService.canRead(@fileSystemService.projectName)") public Set<FileProps> searchContent(String baseUrl, String query) throws IOException
IOExceptionpublic File getBaseDir()
public void setBaseDir(File baseDir)
public String getProjectName()
public void setProjectName(String projectName)
Copyright © 2021 VILT Group. All rights reserved.