|
|
@ -2,7 +2,10 @@ package com.fanruan.boot.adaptation; |
|
|
|
|
|
|
|
|
|
|
|
import com.fanruan.carina.Carina; |
|
|
|
import com.fanruan.carina.Carina; |
|
|
|
import com.fanruan.carina.context.ContextListener; |
|
|
|
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.fanruan.portal.module.PortalModuleManager; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.third.guava.collect.Sets; |
|
|
|
import com.fr.third.guava.collect.Sets; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Optional; |
|
|
|
import java.util.Optional; |
|
|
@ -92,7 +95,8 @@ public class DesignServerSupportModule { |
|
|
|
Carina.getApplicationContext().addListener(new ContextListener() { |
|
|
|
Carina.getApplicationContext().addListener(new ContextListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onStart() { |
|
|
|
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)) |
|
|
|
.filter(m -> !SUPPORT_MODULE.contains(m)) |
|
|
|
.forEach(PortalModuleManager::unregister); |
|
|
|
.forEach(PortalModuleManager::unregister); |
|
|
|
} |
|
|
|
} |
|
|
|