public interface PartitionManager
限定符和类型 | 方法和说明 |
---|---|
void |
create(Partition partition)
创建分区
|
void |
delete(long id)
删除分区
|
List<Partition> |
getAllPartitions()
所有分区
|
String |
getFolder(Date createDate,
boolean createWhenNoExist)
根据文件创建时间,获取文件上传目录,目录结构: 分区目录/yyyy/MM/dd
如: F:/upload/2006/05/09 |
String |
getFolderForUC(Date createDate,
boolean createWhenNoExist)
致信3.0中文件存在在V5端,针对致信存在有特殊处理
upload/zx/2017/07/12,为了避免对原来的接口产生变动添加针对致信的接口
|
Partition |
getPartition(Date createDate,
boolean isOnlyEnable)
根据文件创建时间,得到分区
|
List<Partition> |
getPartition(Date startDate,
Date endDate,
boolean isOnlyEnable)
取得符合时间段的所有的分区
|
Partition |
getPartition(Long id)
根据id,得到分区
|
String |
getPartitionPath(Date createDate,
boolean isOnlyEnable)
得到指定时间点的分区路径
|
boolean |
isPartitionNameDuple(String name)
判断分区名称是否重复
Administrator
Created on 2009-8-21
|
void |
splitPartition(Long originPartition,
String newPartitionName,
String newPartitionPath,
Date splitDate,
String newPartitionDescription)
拆分分区
|
void |
update(Partition partition)
修改分区信息
|
boolean |
validatePath(String path)
验证路径的正确性
|
Partition getPartition(Date createDate, boolean isOnlyEnable)
createDate
- isOnlyEnable
- 是否仅仅是可用的分区,true - 只取得可用的分区 false - 所有分区void splitPartition(Long originPartition, String newPartitionName, String newPartitionPath, Date splitDate, String newPartitionDescription) throws BusinessException
originPartition
- 被拆分的分区的idnewPartitionName
- 新分区名称newPartitionPath
- 新分区路径splitDate
- 拆分时间点newPartitionDescription
- BusinessException
void create(Partition partition)
partition
- void update(Partition partition) throws BusinessException
partition
- BusinessException
void delete(long id)
id
- List<Partition> getPartition(Date startDate, Date endDate, boolean isOnlyEnable)
startDate
- endDate
- isOnlyEnabled
- 是否仅仅是可用的分区,true - 只取得可用的分区 false - 所有分区boolean validatePath(String path)
path
- String getPartitionPath(Date createDate, boolean isOnlyEnable)
createDate
- 时间点isOnlyEnable
- 是否仅仅是可用的分区,true - 只取得可用的分区 false - 所有分区String getFolder(Date createDate, boolean createWhenNoExist) throws BusinessException
createDate
- 文件创建时间createWhenNoExist
- 当不存在该文件夹时创建之BusinessException
- 没有分区boolean isPartitionNameDuple(String name)
String getFolderForUC(Date createDate, boolean createWhenNoExist) throws BusinessException
createDate
- 文件创建时间createWhenNoExist
- 当不存在该文件夹时创建之BusinessException
Copyright © 2016–2017. All rights reserved.