@RestController public class FileManagerController extends Object
| Constructor and Description |
|---|
FileManagerController(FileManagerService fileManagerService) |
| Modifier and Type | Method and Description |
|---|---|
UIResult |
getContent(org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType,
String filePath,
String fileName,
UUID projectUuid)
Get content from file.
|
Set<org.qubership.automation.itf.core.util.eds.model.UIFileInfo> |
getFilesByPath(String filePath,
org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType,
UUID projectUuid)
Get files by path.
|
TreeNode[] |
getPathTreeNode(UUID projectUuid)
Get paths to files.
|
UIResult |
remove(List<org.qubership.automation.itf.core.util.eds.model.UIFileInfo> filesInfo,
UUID projectUuid,
String tenantId)
Delete file's.
|
public FileManagerController(FileManagerService fileManagerService)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")") @GetMapping(value="/files/path") public TreeNode[] getPathTreeNode(@RequestParam UUID projectUuid)
projectUuid - project UUIDTreeNode@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")") @GetMapping(value="/files/byPath") public Set<org.qubership.automation.itf.core.util.eds.model.UIFileInfo> getFilesByPath(@RequestParam String filePath, @RequestParam org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType, @RequestParam UUID projectUuid)
filePath - path to filecontentType - EdsContentType type content for fileprojectUuid - project UUIDUIFileInfo@PreAuthorize(value="@entityAccess.isSupport() or @entityAccess.isAdmin()") @DeleteMapping(value="/files/remove") public UIResult remove(@RequestBody List<org.qubership.automation.itf.core.util.eds.model.UIFileInfo> filesInfo, @RequestParam UUID projectUuid, @RequestHeader(value="X-Project-Id") String tenantId) throws IOException
filesInfo - list with type UIFileInfo where contains file infoprojectUuid - project UUIDUIResultIOException - I/O exception has occurred@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\") and !T(org.qubership.automation.itf.core.util.eds.service.EdsContentType).KEYSTORE.equals(#contentType)") @GetMapping(value="/file/content") public UIResult getContent(@RequestParam org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType, @RequestParam String filePath, @RequestParam String fileName, @RequestParam UUID projectUuid)
contentType - EdsContentType type content for filefilePath - path to filefileName - file nameprojectUuid - project UUIDUIResultCopyright © 2025. All rights reserved.