3
0
Fork 0
fsim/WebRoot/WEB-INF/fsim.xml

92 lines
3.2 KiB
XML
Raw Normal View History

2022-11-13 13:46:54 +00:00
<?xml version="1.0"?>
<fsimConfig name="WTH-SEARCH">
<pluginPage name="file_mirrors"
file="/fragments/searchers/files/file_mirrors.jsp"
/>
<pluginPage name="file_redirect"
file="/fragments/searchers/files/file_redirect.jsp"
/>
<pluginPage name="host_browse"
file="/fragments/searchers/files/host_browse.jsp"
/>
<pluginPage name="host_redirect"
file="/fragments/searchers/files/host_redirect.jsp"
/>
<pluginPage name="path_browse"
file="/fragments/searchers/files/path_browse.jsp"
/>
<pluginPage name="path_redirect"
file="/fragments/searchers/files/path_redirect.jsp"
/>
<!--
<database name="fsim_db"
driver="org.postgresql.Driver"
url="jdbc:postgresql://dbhost/fsim"
username="fsimdb"
password="bdmisf"
/>
-->
<listener class="com.idca.fsim.searchers.files.FilesListener"/>
<optionRenderer dataModel="com.idca.fsim.searchers.files.models.File"
optionRenderer="com.idca.fsim.searchers.files.renderers.options.FileDownloadOptionRenderer"
/>
<optionRenderer dataModel="com.idca.fsim.searchers.files.models.File"
optionRenderer="com.idca.fsim.searchers.files.renderers.options.FileDownloadOptionRenderer"
/>
<optionRenderer dataModel="com.idca.fsim.searchers.files.models.File"
optionRenderer="com.idca.fsim.searchers.files.renderers.options.FileDownloadOptionRenderer"
/>
<!-- this is really an DB saerchSource...maybe include others.(v2) -->
<searchSource name="fsim-files"
searchSource="com.idca.fsim.core.plugins.DBSearchSource"
dataModel="com.idca.fsim.searchers.generic.models.File"
indexer="com.idca.fsim.core.plugins.DBIndexer"
resultCollector="com.idca.fsim.searchers.files.collectors.FileResultCollector"
resultRenderer="com.idca.fsim.searchers.files.renderers.FileResultRenderer"
resultCacheResolver=""
dbName="fsim_dba"
tableName="file"
idColumnName="id"
searchColumnName="name"
>
<!--
<initParam name="DB_NAME" value="fsim_dba"/>
<initParam name="TABLE_NAME" value="fsim_file"/>
<initParam name="ID_COLUMN_NAME" value="file"/>
<initParam name="SEARCH_COLUMN_NAME" value="name"/>
<hitParamLong1 name="size"/>
<hitParamLong2 name="date"/>
-->
</searchSource>
<searchSource name="fsim-paths"
searchSource="com.idca.fsim.core.plugins.DBSearchSource"
dataModel="com.idca.fsim.searchers.generic.models.Path"
indexer="com.idca.fsim.core.plugins.DBIndexer"
dbName="fsim_dba"
tableName="path"
idColumnName="id"
searchColumnName="directory"
resultCollector="com.idca.fsim.searchers.files.collectors.PathResultCollector"
resultRenderer="com.idca.fsim.searchers.files.renderers.PathResultRenderer"
/>
<searchSource name="fsim-hosts"
searchSource="com.idca.fsim.core.plugins.DBSearchSource"
dataModel="com.idca.fsim.searchers.generic.models.Host"
indexer="com.idca.fsim.core.plugins.DBIndexer"
dbName="fsim_dba"
tableName="host"
idColumnName="id"
searchColumnName="hostname"
resultCollector="com.idca.fsim.searchers.files.collectors.HostResultCollector"
resultRenderer="com.idca.fsim.searchers.files.renderers.HostResultRenderer"
/>
</fsimConfig>