@Controller
@RequestMapping(value="/file")
public class BaseFileController
extends com.diboot.framework.controller.BaseController
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.diboot.framework.service.BaseFileService |
baseFileService |
private static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
BaseFileController() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
download(String uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
下载文件
|
protected String |
getViewPrefix() |
protected boolean |
hasDownloadPermission(com.diboot.framework.model.BaseUser user,
com.diboot.framework.model.BaseFile fileModel)
用户有管理权限 或者 自己上传的文件
|
addAdditionalPromptMsg, addFailResultMsg, addIntoSession, addResultMsg, addSuccessResultMsg, appendAdditionalCriteria, bindCriteria, bindError, bindErrors, bindResultMsg, buildJsonError, buildPagination, buildQueryCriteria, criteria2paramString, dumpParams, getBindingError, getBoolean, getBoolean, getDouble, getDouble, getFromSession, getInteger, getInteger, getLong, getLong, getLongList, getParamsMap, getString, getString, getStringArray, getStringList, getUrlPrefix, isContinue, newCriteria, redirectTo, viewprivate static final org.slf4j.Logger logger
@Autowired protected com.diboot.framework.service.BaseFileService baseFileService
@GetMapping(value="/download/{uuid}")
public void download(@PathVariable(value="uuid")
String uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
request - Exceptionprotected boolean hasDownloadPermission(com.diboot.framework.model.BaseUser user,
com.diboot.framework.model.BaseFile fileModel)
user - fileModel - protected String getViewPrefix()
getViewPrefix 在类中 com.diboot.framework.controller.BaseControllerCopyright © 2018. All rights reserved.