REQ-3540: misc
This commit is contained in:
parent
8638e855c9
commit
bd40d4c229
@ -165,22 +165,24 @@ public class IndexSupport {
|
||||
}
|
||||
|
||||
boolean isChildrenNameDuplicatable(IndexNodeParentScope parentScope) {
|
||||
switch (parentScope.nodeScope().context()) {
|
||||
IndexNodeScope nodeScope = parentScope.nodeScope();
|
||||
switch (nodeScope.context()) {
|
||||
case FILE_TEMPLATE:
|
||||
case TEMPLATE_DATABASE:
|
||||
return false;
|
||||
default:
|
||||
return parentScope.nodeScope().scope().getChildNameDuplicatable();
|
||||
return nodeScope.scope().getChildNameDuplicatable();
|
||||
}
|
||||
}
|
||||
|
||||
boolean isLimitChildrenCount(IndexNodeParentScope parentScope) {
|
||||
switch (parentScope.nodeScope().context()) {
|
||||
IndexNodeScope nodeScope = parentScope.nodeScope();
|
||||
switch (nodeScope.context()) {
|
||||
case FILE_TEMPLATE:
|
||||
case TEMPLATE_DATABASE:
|
||||
return true;
|
||||
default:
|
||||
return parentScope.nodeScope().scope().getLimitChildrenCount();
|
||||
return nodeScope.scope().getLimitChildrenCount();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user