#10.26iPortalWebHandler梳理
1.schedulableDataPreChecker(online独有,预检测:预先在后台发布,不能则提示用户,检测完需要清理数据) 2016/9/14 2017/8/29 在portal的代码里,portal没用
<bean id="schedulableDataPreChecker" class="com.supermap.iportal.web.components.impl.SchedulableDataPreChecker">
<property name="publisherCommandExecutorConfig" ref="publisherCommandExecutorConfiguration"/>
<property name="constructiveArgumentContextFactory" ref="constructiveArgumentContextFactory"/>
<property name="dataPublisherParamCreator" ref="dataPublisherParamCreator"/>
</bean>2.AlwaysValidDataCatalogRelationshipStore
package com.supermap.iportal.web.components.impl;
// iserver datacatalog valid接口缺陷,会随机返回true/false // 移除时同步修改ThirdDataHostdIT的配置修改
public class AlwaysValidDataCatalogRelationshipStore extends DataCatalogRelationshipStore {
@Override
public boolean isValid() {
return true;
}
}
这是个临死处理方案,坑
3.modifyCoordTypeCommandExecutorBuilderSetting (online独有,hosteddata-porta) 2016/11/4online添加到csv和excel数据托管的支持
1)在发布服务时添加
<property name="modifyCoordTypeCommandExecutorBuilderSetting" ref="modifyCoordTypeCommandExecutorBuilderSetting" />2)
<bean id="modifyCoordTypeCommandExecutorBuilderSetting"
class="com.supermap.iportal.web.utils.commandset.executor.CommandExecutorBuilderSetting">
<property name="commandSettings">
util:list
<ref bean="modifyPublishedDataPrjCommandSetting" />
<ref bean="modifyMapProviderSettingPrjCommandSetting" />
<ref bean="updateProviderSettingCommandSetting" />
/util:list
</property>
</bean>
v1) ModifyPublishedDataPrjCommand l(online独有,hosteddata-porta)
<bean id="modifyPublishedDataPrjCommandSetting"
class="com.supermap.iportal.web.utils.commandset.command.CommandSetting">
<property name="generatorSetting">
<bean class="com.supermap.iportal.web.utils.commandset.command.impl.ClassedCommandGeneratorSetting">
<property name="type"
value="com.supermap.iportal.web.components.publish.impl.ModifyPublishedDataPrjCommand" />
</bean>
</property>
</bean>v2)ModifyMapProviderSettingPrjCommand l(online独有,hosteddata-porta) 2016/8/17
<bean id="modifyMapProviderSettingPrjCommandSetting"
class="com.supermap.iportal.web.utils.commandset.command.CommandSetting">
<property name="generatorSetting">
<bean class="com.supermap.iportal.web.utils.commandset.command.impl.ClassedCommandGeneratorSetting">
<property name="type"
value="com.supermap.iportal.web.components.publish.impl.ModifyMapProviderSettingPrjCommand" />
</bean>
</property>
</bean>v3)updateProviderSettingCommandSetting 在portal也存在 服务更新功能 ,感觉是online在portal加的 2016/8/16
4.clearServiceCacheCommandSetting(online独有)
<ref bean="clearServiceCacheCommandSetting"/>
<!-- 清理RESTMAP服务缓存 -->
<bean id="clearServiceCacheCommandSetting"
class="com.supermap.iportal.web.utils.commandset.command.CommandSetting">
<property name="generatorSetting">
<bean class="com.supermap.iportal.web.utils.commandset.command.impl.ClassedCommandGeneratorSetting">
<property name="type"
value="com.supermap.iportal.web.components.impl.publish.ClearServiceCacheCommand" />
</bean>
</property>
</bean>- 清除地图服务缓存命令,相对于ClearMapCacheCommand,清理缓存的效率更高。
- 但由于iServer清除缓存的资源由online扩展定制的,所以该命令仅用于online。
5.remoteDownloadDataCommandSetting(online独有,hosteddata-portal) 2019/3/21 适配icn服务发布配置:不再使用,删掉了
<bean id="remoteDownloadDataCommandSetting"
class="com.supermap.iportal.web.utils.commandset.command.CommandSetting">
<property name="generatorSetting">
<bean class="com.supermap.iportal.web.utils.commandset.command.impl.ClassedCommandGeneratorSetting">
<property name="type"
value="com.supermap.iportal.web.components.publish.impl.RemoteDownloadDataCommand" />
</bean>
</property>
</bean>6.空间分析服务(portal独有,ol有这个服务) 2018/6/28 以前前端是自己写的,需要前端加空间分析,没加,不提供,所以后端没有添加check流程,现在新版portal有,也支持这个功能
<bean id="checkRestSpatialAnalystCommandSetting"
class="com.supermap.iportal.web.utils.commandset.command.CommandSetting">
<property name="generatorSetting">
<bean class="com.supermap.iportal.web.utils.commandset.command.impl.ClassedCommandGeneratorSetting">
<property name="type"
value="com.supermap.iportal.web.components.impl.publish.CheckRestSpatialAnalystCommand" />
</bean>
</property>
</bean>根据iportal整理online定制,并解决历史遗留问题 review by liuyayun
