📄 filedaointerface.java
字号:
package com.zte.webfile.dao;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;
import com.zte.webfile.dto.FileDTO;
public interface fileDAOInterface {
/**
* 文件上传
*
* @param fd
* @return 文件上传成功或失败信号
*/
public boolean up(List list);
/**
* 文件移动
*
* @param fileId
* @param fileAddr
* @return
*/
public boolean move(Integer[] fileId, Integer fileAddr);
/**
* 文件重命名
*
* @param fd
* 文件dto
* @return
*/
public boolean renew(FileDTO fd);
/**
* 文件删除操作
*
* @param fileId
* @return
*/
public boolean delete(Integer[] fileId);
/**
* 判断此文件名的文件在此文件夹下是否存在
*
* @param fileName
* 文件名
* @return true or false
*/
public boolean isExist(String fileName, Integer parentPath, String userName);
/**
* 通过文件夹名称获得文件夹的id
*
* @param fileName
* @return
*/
public Integer getFileIdByName(String fileName, String userName);
/**
* 获得现有文件数
*
* @return 文件数量
*/
public int getFileCount();
/**
* 创建新文件夹
*
* @param folderName
* @param parentPath
* @return
*/
public boolean createFolder(String folderName, Integer parentPath,
String userName);
/**
* 通过文件id查找文件信息
*
* @param id
* 文件id
* @return FileDTO
*/
public FileDTO getFileById(String id);
/**
* 打包一个文件或者文件夹
*
* @return boolean
*/
public boolean zipOneFile();
/**
* 打包多个文件或者文件夹
*
* @return boolean
*/
public boolean zipMultiFiles();
/**
* 共享文件,不共享文件夹
*
* @return
*/
public boolean share(Integer[] id);
/**
* 通过文件id判断此文件是文件夹还是文件
*
* @param id
* @return
*/
public int isFileOrFolder(String id);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -