REQ-3540: 添加校验
This commit is contained in:
parent
235ed639a5
commit
c3cc138991
@ -150,6 +150,12 @@ public class IndexManager {
|
||||
return subtree;
|
||||
}
|
||||
|
||||
public CopiedOssFiles copySubtreeOssFiles(IndexNode srcNode) {
|
||||
BizAssertions.assertFalse(TransactionSynchronizationManager.isActualTransactionActive(), "不能在事务中使用");
|
||||
List<String> ossFileKeys = indexNodeDao.collectValidSubtreeFileOssKeys(srcNode);
|
||||
return new CopiedOssFiles(ossClient.copy(ossFileKeys));
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果destParent为空, 则拷贝到根目录下
|
||||
*/
|
||||
@ -168,12 +174,6 @@ public class IndexManager {
|
||||
});
|
||||
}
|
||||
|
||||
public CopiedOssFiles copySubtreeOssFiles(IndexNode srcNode) {
|
||||
BizAssertions.assertFalse(TransactionSynchronizationManager.isActualTransactionActive(), "不能在事务中使用");
|
||||
List<String> ossFileKeys = indexNodeDao.collectValidSubtreeFileOssKeys(srcNode);
|
||||
return new CopiedOssFiles(ossClient.copy(ossFileKeys));
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果destParent为空, 则移动到根目录下
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user