public abstract class CommonFileStoreServer<ID,INPUT_FILE,RESULT_FILE,TEMPLATE> extends plus.easydo.core.result.DataResult<java.lang.Object> implements FileStoreService<ID,INPUT_FILE,RESULT_FILE,TEMPLATE>
| 限定符和类型 | 字段和说明 |
|---|---|
protected INPUT_FILE |
file |
protected java.math.BigDecimal |
fileKbSize |
protected java.lang.String |
fileName |
protected java.lang.String |
filePath |
protected FileStoreObject<ID,INPUT_FILE> |
fileStoreObject |
protected java.lang.String |
groupName |
protected TEMPLATE |
template |
| 构造器和说明 |
|---|
CommonFileStoreServer() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
buildFilePath(java.lang.String filePath)
构建文件路径
|
FileResult |
buildResult()
构建文件返回对象
|
TEMPLATE |
getTemplate()
获得工具类
|
plus.easydo.core.result.R<java.lang.Object> |
save(FileStoreObject<ID,INPUT_FILE> fileStoreObject)
功能描述
|
void |
validationFile(INPUT_FILE inputFile)
校验文件
|
fail, fail, fail, fail, fail, getRows, getTotal, initResult, ok, ok, ok, ok, result, result, setRows, setTotalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildFileName, buildGroupName, copy, getFile, getFileKbSize, move, removeprotected FileStoreObject<ID,INPUT_FILE> fileStoreObject
protected INPUT_FILE file
protected java.lang.String filePath
protected java.lang.String fileName
protected java.lang.String groupName
protected java.math.BigDecimal fileKbSize
@Autowired protected TEMPLATE template
public TEMPLATE getTemplate()
FileStoreServicegetTemplate 在接口中 FileStoreService<ID,INPUT_FILE,RESULT_FILE,TEMPLATE>public plus.easydo.core.result.R<java.lang.Object> save(FileStoreObject<ID,INPUT_FILE> fileStoreObject)
FileStoreServicesave 在接口中 FileStoreService<ID,INPUT_FILE,RESULT_FILE,TEMPLATE>fileStoreObject - 文件包装类public void validationFile(INPUT_FILE inputFile)
FileStoreServicevalidationFile 在接口中 FileStoreService<ID,INPUT_FILE,RESULT_FILE,TEMPLATE>inputFile - inputFilepublic java.lang.String buildFilePath(java.lang.String filePath)
FileStoreServicebuildFilePath 在接口中 FileStoreService<ID,INPUT_FILE,RESULT_FILE,TEMPLATE>filePath - filePathpublic FileResult buildResult()
FileStoreServicebuildResult 在接口中 FileStoreService<ID,INPUT_FILE,RESULT_FILE,TEMPLATE>Copyright © 2021. All Rights Reserved.