Browse Source

Merge branch 'fbp/release' of ssh://code.fineres.com:7999/~anner/design into fbp/release

fbp/merge
Anner 5 months ago
parent
commit
3d8cf6c65e
  1. 10
      designer-realize/src/main/java/com/fanruan/boot/adaptation/DesignServerSupportModule.java

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

@ -37,7 +37,7 @@ import static com.fr.decision.authority.base.constant.ReportAuthorityItems.ENTER
* *
* @author Anner * @author Anner
* @since 11.0 * @since 11.0
* Created on 2024/10/15 * Created on 2024/10/15
*/ */
public class DesignServerSupportModule { public class DesignServerSupportModule {
private final static Set<String> SUPPORT_MODULE = Sets.newHashSet( private final static Set<String> SUPPORT_MODULE = Sets.newHashSet(
@ -70,8 +70,7 @@ public class DesignServerSupportModule {
// 安全管理 // 安全管理
SECURITY_ID, SECURITY_ID,
// 地图管理 // 地图管理
MAP_ID MAP_ID);
);
/** /**
* 注册一下支持展示的模块 * 注册一下支持展示的模块
@ -99,10 +98,11 @@ public class DesignServerSupportModule {
@Override @Override
public void onStart() { public void onStart() {
PortalModuleManager.allModules().values().stream() PortalModuleManager.allModules().values().stream()
.filter(m -> !StringUtils.equals(m.getParentID(), PortalAuthorityItems.PORTAL_ROOT_ID)).map(PortalModule::getId) .filter(m -> !StringUtils.equals(m.getParentID(), PortalAuthorityItems.PORTAL_ROOT_ID))
.map(PortalModule::getId)
.filter(m -> !SUPPORT_MODULE.contains(m)) .filter(m -> !SUPPORT_MODULE.contains(m))
.forEach(PortalModuleManager::unregister); .forEach(PortalModuleManager::unregister);
} }
}); });
} }
} }
Loading…
Cancel
Save