
shz.resource.ResourceManager Maven / Gradle / Ivy
package shz.resource;
import java.io.File;
import java.util.Collection;
public interface ResourceManager {
/**
* 保存资源并返回资源id
*/
String save(ResourceDetail resource, byte[] data);
ResourceDetail getDetailById(String id);
File getFileById(String id);
/**
* 删除资源
*/
void deleteByIds(Collection ids);
/**
* 清除无效资源表(资源文件已删除,表中仍有数据的)
*/
void clearTable(Collection details);
/**
* 清除资源文件夹(表中已无数据,资源文件仍存在)
*/
void clearFolder(Collection types);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy