Browse Source

Pull request #15134: REPORT-138114 fix: 特殊处理一下虚拟根节点

Merge in DESIGN/design from ~ANNER/design:fbp/master to fbp/master

* commit '6e11366b155d4cdb88696d8140bd424b6cbb3047':
  REPORT-138114 fix: 特殊处理一下虚拟根节点
fbp/master
Anner-王敬松 2 months ago
parent
commit
56c7d79c51
  1. 6
      designer-realize/src/main/java/com/fanruan/boot/adaptation/DesignServerSupportModule.java

6
designer-realize/src/main/java/com/fanruan/boot/adaptation/DesignServerSupportModule.java

@ -2,7 +2,10 @@ package com.fanruan.boot.adaptation;
import com.fanruan.carina.Carina;
import com.fanruan.carina.context.ContextListener;
import com.fanruan.portal.authority.PortalAuthorityItems;
import com.fanruan.portal.module.PortalModule;
import com.fanruan.portal.module.PortalModuleManager;
import com.fr.stable.StringUtils;
import com.fr.third.guava.collect.Sets;
import java.util.Optional;
@ -92,7 +95,8 @@ public class DesignServerSupportModule {
Carina.getApplicationContext().addListener(new ContextListener() {
@Override
public void onStart() {
PortalModuleManager.allModules().keySet().stream()
PortalModuleManager.allModules().values().stream()
.filter(m -> !StringUtils.equals(m.getParentID(), PortalAuthorityItems.PORTAL_ROOT_ID)).map(PortalModule::getId)
.filter(m -> !SUPPORT_MODULE.contains(m))
.forEach(PortalModuleManager::unregister);
}

Loading…
Cancel
Save