diff --git a/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/IndexSupport.java b/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/IndexSupport.java index da507207..42ec5bf9 100644 --- a/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/IndexSupport.java +++ b/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/IndexSupport.java @@ -101,26 +101,6 @@ public class IndexSupport { "节点深度超过限制{}, 无法再创建新节点", docProps.getIndexNodeMaxDepth()); } - boolean isChildrenNameDuplicatable(IndexNodeParentScope parentScope) { - switch (parentScope.nodeScope().context()) { - case FILE_TEMPLATE: - case TEMPLATE_DATABASE: - return false; - default: - return parentScope.nodeScope().scope().getChildNameDuplicatable(); - } - } - - boolean isLimitChildrenCount(IndexNodeParentScope parentScope) { - switch (parentScope.nodeScope().context()) { - case FILE_TEMPLATE: - case TEMPLATE_DATABASE: - return true; - default: - return parentScope.nodeScope().scope().getLimitChildrenCount(); - } - } - List collectValidSubtreeAsValueRoot(IndexNode srcNode) { List subtreeNodes = indexNodeDao.collectValidSubtreeNodes(srcNode); subtreeNodes.stream() // @@ -184,6 +164,26 @@ public class IndexSupport { .list(); } + boolean isChildrenNameDuplicatable(IndexNodeParentScope parentScope) { + switch (parentScope.nodeScope().context()) { + case FILE_TEMPLATE: + case TEMPLATE_DATABASE: + return false; + default: + return parentScope.nodeScope().scope().getChildNameDuplicatable(); + } + } + + boolean isLimitChildrenCount(IndexNodeParentScope parentScope) { + switch (parentScope.nodeScope().context()) { + case FILE_TEMPLATE: + case TEMPLATE_DATABASE: + return true; + default: + return parentScope.nodeScope().scope().getLimitChildrenCount(); + } + } + Future submit(Callable callable) { return executor.submit(() -> { try {