REQ-3540: 备份
This commit is contained in:
parent
03a24f5f28
commit
d48841e2c7
@ -14,6 +14,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import cn.axzo.nanopart.doc.file.index.copy.SetScopeProcessor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.support.TransactionSynchronizationManager;
|
||||
@ -55,14 +56,13 @@ class IndexSupport {
|
||||
validateBeforeCreateChild(parent, create, nodeType);
|
||||
}
|
||||
IndexNode child = new IndexNode();
|
||||
new SetScopeProcessor(create.nodeScope()).accept(child);
|
||||
child.setCode(UUIDUtil.uuidString());
|
||||
child.setParentId(parent == null ? IndexNode.TREE_ROOT_NODE_ID : parent.getId());
|
||||
child.setParentCode(parent == null ? IndexNode.TREE_ROOT_NOE_CODE : parent.getCode());
|
||||
child.setRootCode(parent == null ? child.getCode() : parent.getRootCode());
|
||||
child.setName(create.name());
|
||||
child.setBizCode(create.bizCode());
|
||||
child.setContext(create.nodeScope().context());
|
||||
child.setScope(create.nodeScope().scope());
|
||||
child.setDescription(create.description());
|
||||
child.setIcon(create.icon());
|
||||
child.setState(IndexNodeState.VALID);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user