@RestController @RequestMapping(value="/node/manage/file/") @Feature(cls=PROJECT_FILE) @NodeDataPermission(cls=ProjectInfoCacheService.class) public class ProjectFileControl extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
ProjectFileControl() |
Modifier and Type | Method and Description |
---|---|
String |
deleteFile()
删除文件
|
void |
download()
下载文件
|
String |
getFileList()
列出目录下的文件
|
String |
newFileFolder()
创建文件
|
String |
readFile()
删除文件
|
String |
remoteDownload()
下载远程文件
|
String |
renameFileFolder()
修改文件名
|
String |
updateConfigFile()
更新配置文件
|
String |
upload()
上传文件
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
@RequestMapping(value="getFileList", method=POST, produces="application/json") @Feature(cls=PROJECT_FILE, method=LIST) public String getFileList()
@RequestMapping(value="upload", method=POST, produces="application/json") @Feature(cls=PROJECT_FILE, method=UPLOAD) public String upload()
@RequestMapping(value="download", method=GET) @Feature(cls=PROJECT_FILE, method=DOWNLOAD) public void download()
@RequestMapping(value="deleteFile", method=POST, produces="application/json") @Feature(cls=PROJECT_FILE, method=DEL) public String deleteFile()
@PostMapping(value="update_config_file", produces="application/json") @Feature(cls=PROJECT_FILE, method=EDIT) public String updateConfigFile()
@GetMapping(value="read_file", produces="application/json") @Feature(cls=PROJECT_FILE, method=LIST) public String readFile()
@GetMapping(value="remote_download", produces="application/json") @Feature(cls=PROJECT_FILE, method=REMOTE_DOWNLOAD) public String remoteDownload()
@GetMapping(value="new_file_folder", produces="application/json") @Feature(cls=PROJECT_FILE, method=EDIT) public String newFileFolder()
Copyright © 2017–2022. All rights reserved.