@RestController @RequestMapping(value="/node/manage/file/") @Feature(cls=PROJECT_FILE) @NodeDataPermission(cls=ProjectInfoCacheService.class) public class ProjectFileBackupController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
ProjectFileBackupController() |
| Modifier and Type | Method and Description |
|---|---|
String |
backupItemFiles(String id,
String path,
String backupId)
获取指定备份的文件列表
|
String |
deleteFile(String id,
String backupId,
String filename,
String levelName)
删除文件
|
void |
download(String id,
String backupId,
String filename,
String levelName)
将执行文件下载到客户端 本地
|
String |
listBackup(String id)
查询备份列表
|
String |
recoverFile(String id,
String backupId,
String type,
String filename,
String levelName)
还原项目文件
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes@RequestMapping(value="list-backup",
method=POST,
produces="application/json")
public String listBackup(String id)
id - 项目ID@RequestMapping(value="backup-item-files",
method=POST,
produces="application/json")
public String backupItemFiles(String id,
String path,
@ValidatorItem
String backupId)
id - 项目path - 读取的二级目录backupId - 备份id@GetMapping(value="backup-download",
produces="application/json")
public void download(String id,
@ValidatorItem
String backupId,
@ValidatorItem
String filename,
String levelName)
id - 项目idfilename - 文件名levelName - 文件夹名backupId - 备份id@RequestMapping(value="backup-delete",
method=POST,
produces="application/json")
public String deleteFile(String id,
@ValidatorItem
String backupId,
@ValidatorItem
String filename,
String levelName)
id - 项目IDbackupId - 备份IDfilename - 文件名levelName - 层级目录@RequestMapping(value="backup-recover",
method=POST,
produces="application/json")
public String recoverFile(String id,
@ValidatorItem
String backupId,
String type,
String filename,
String levelName)
id - 项目IDbackupId - 备份IDtype - 类型 clear 清空还原filename - 文件名levelName - 目录Copyright © 2017–2022. All rights reserved.