public interface I18nResourceManager
void resourceLoaded(Locale locale, String levelType, String filePath, String relativePath, String key, String value)
locale
- levelType
- filePath
- relativePath
- key
- value
- void loadFinished()
resMap
- FlipInfo findALLResource(FlipInfo userFlipInfo, Map params) throws IOException
userFlipInfo
- 翻页对象.params
- 查找参数条件.IOException
PageResult<ResourceInfo> listResourceInfo(Locale locale, String levelType, PageParameter parameter) throws BusinessException
locale
- 语言, 为空表示不作为过滤条件levelType
- 加载等级, 为空表示不作为过滤条件parameter
- BusinessException
List<ResourceInfo> listResourceInfos(Locale locale, String levelType) throws BusinessException
locale
- levelType
- BusinessException
PageResult<ResourceInfo> queryResourceInfoByKey(Locale locale, String key, PageParameter parameter) throws BusinessException
locale
- key
- parameter
- BusinessException
String queryResourceByKey(Locale locale, String key) throws BusinessException
locale
- key
- BusinessException
PageResult<ResourceInfo> queryResourceInfoByValue(Locale locale, String key, PageParameter parameter) throws BusinessException
locale
- value
- parameter
- BusinessException
Set<ResourceInfo> queryResourceByValue(Locale locale, String value) throws BusinessException
locale
- value
- BusinessException
PageResult<ResourceInfo> queryResourceInfoByPath(Locale locale, String relativePath, PageParameter parameter) throws BusinessException
locale
- relativePath
- parameter
- BusinessException
PageResult<ResourceInfo> queryResourceInfoByLevelType(Locale locale, String levelType, PageParameter parameter) throws BusinessException
locale
- relativePath
- parameter
- BusinessException
void saveResourceInfo(ResourceInfo info) throws BusinessException
info
- Exception
BusinessException
void resetResourceInfo(ResourceInfo info) throws BusinessException
List<ResourceInfo> getResourceInfoByKey(Locale locale, String key, PageParameter parameter) throws BusinessException
locale
- key
- parameter
- BusinessException
String fileToZip(String sourceFilePath, String zipFilePath, String fileName)
sourceFilePath
- zipFilePath
- fileName
- void importProperties(String srcFilePath, String copyFilePath) throws Exception
srcFilePath读取的文件未知
- copyFilePath导入后的位置
- Exception
void delFolder(String folderPath)
folderPath
- void clearFile(String filePath) throws IOException
filePath
- IOException
Copyright © 2016–2017. All rights reserved.